简体   繁体   English

Visual Studio UI测试

[英]Visual Studio UI Testing

I have done some extravagant web searching for a solution to no avail. 我做了一些奢侈的网络搜索,无济于事。

I am working with a UI tester written by a man who is no longer with the company. 我正在与由不再在公司工作的人编写的UI测试器一起工作。

Currently it is hanging up on opening the browser for testing the website. 目前,它正在打开浏览器以测试网站。

I have no idea what I'm doing. 我不知道我在做什么。

BrowserWindow.CurrentBrowser = "ie";

"An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Microsoft.VisualStudio.TestTools.UITesting.dll “ Microsoft.VisualStudio.TestTools.UITesting.dll中发生了'System.IO.FileNotFoundException类型的未处理的异常

Additional information: Could not load file or assembly 'Microsoft.VisualStudio.TestTools.UITest.WindowsStoreUtility, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 附加信息:无法加载文件或程序集“ Microsoft.VisualStudio.TestTools.UITest.WindowsStoreUtility,版本= 14.0.0.0,区域性=中性,PublicKeyToken = b03f5f7f11d50a3a”或其依赖项之一。 The system cannot find the file specified." 该系统找不到指定的文件。”

Figured out what the issue is. 找出问题所在。 I can't run it directly. 我不能直接运行它。 I have to pass it to MSTest.exe with arguments. 我必须将其传递给带有参数的MSTest.exe。

If you don't know where MSTest.exe is, here is where mine is, and most likely yours. 如果您不知道MSTest.exe在哪里,这里是我的位置,很可能是您的位置。

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\MSTest.exe

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM