Writing message in Coded UI HtmlLogger output file

ぐ巨炮叔叔 提交于 2019-12-12 13:13:21

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!