Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing message in Coded UI HtmlLogger output file

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 !

like image 856
S.Roshanth Avatar asked Jan 25 '26 01:01

S.Roshanth


1 Answers

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

like image 129
S.Roshanth Avatar answered Jan 26 '26 21:01

S.Roshanth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!