大家好,用Coded UI实现网页自动化测试,出师不利,打开网页这步过不去...
代码:
BrowserWindow myWindow = BrowserWindow.Launch(new System.Uri("http://www.google.com"));
异常:
Test method ReportingCodedUITest.ReportingCodedUITest.CodedUITestMethod1 threw exception:
System.ComponentModel.Win32Exception: The system cannot find the file specified
错误堆栈:
System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
System.Diagnostics.Process.Start()
Microsoft.VisualStudio.TestTools.UITesting.IEBrowserService.LaunchIEWindow(String[] arguments)
Microsoft.VisualStudio.TestTools.UITesting.IEBrowserService.Launch(String[] arguments)
Microsoft.VisualStudio.TestTools.UITesting.IEBrowserFactory.Launch(String[] arguments)
Microsoft.VisualStudio.TestTools.UITesting.IEBrowserFactory.Launch(Uri uri)
Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow.Launch(Uri uri)
请大家给指点下,困扰我很久了,谢谢大家。
--
FROM 207.46.92.*