问题
I am using Coded UI for Automation testing. I have already enabled HtmlLogger in QTAgent32.exe.config file. I am getting the html output file. but I am considering to write some messages in that html output file. I used this.TestContext.WriteLine("Message");
to write output in result file (.trx) but it is not writing in output html output file. Is there any solutions to write in html file while test is running?
Any help would be highly appreciated !
回答1:
I found that there is no direct way to write into UITestActionLog.html but we can hand code in UITestActionLog.html file by getting the file path and write using HtmlTextWriter class. Please refer to the link. MSDN Answer
来源:https://stackoverflow.com/questions/23951320/writing-message-in-coded-ui-htmllogger-output-file