gui-test-framework

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

White Automation framework throws an exception when using “White.Core.Desktop” Class

故事扮演 提交于 2019-12-11 11:40:45
问题 I am using White Framework for automation. when I trying to get desktop instance I got exception "The type initializer for 'White.Core.Desktop' threw an exception." My code looks like : var window = White.Core.Desktop.Instance.Windows().Find(obj => obj.Title.Contains("TestAppHome")); Is there any way to capture the window without exception that is without using White.Core.Desktop class? Any help would be greatly appreciated ! 回答1: Try this one: List<White.Core.UIItems.WindowItems.Window>