Writing message in Coded UI HtmlLogger output file

2.5k views Asked by At

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

There are 1 answers

0
S.Roshanth On

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