通过命令提示符VSTest.Console.exe进行编码的UI测试 [英] Coded UI test through command prompt VSTest.Console.exe
问题描述
我正在尝试通过VSTest.Console.exe运行编码的UI测试.使用以下命令-
I am trying to run coded UI test through VSTest.Console.exe. Using below command -
VSTest.Console.exe C:\ Users \ v0x4499 \ Desktop \ project \ testproject \ bin \ Debug \ testproject.dll
VSTest.Console.exe C:\Users\v0x4499\Desktop\project\testproject\bin\Debug\testproject.dll
我收到以下错误消息-
I am getting below error message -
在解决方案项目中添加了Microsoft.VisualStudio.TestPlatform.Common,版本= 11.0.0.0,但仍然出现相同的错误.
Added Microsoft.VisualStudio.TestPlatform.Common, Version=11.0.0.0 in solution project but still getting the same error.
任何帮助建议都会有所帮助.我正在使用Visual Studio 2012
Any help suggestion will be helpful. I am using Visual Studio 2012
谢谢
安库什
推荐答案
安库什,
感谢您的信息.
如何直接在Visual Studio 2012中而不是使用VSTEST运行代码ui测试?
How about running the code ui test in Visual Studio 2012 directly instead of using VSTEST?
顺便说一句,请使用以下命令行来运行新创建的代码ui测试:
By the way, please use the following command line to run a new created code ui test :
例如 vstest.console.exe"C:\ Users \ Administrator \ Desktop \ UnitTestProject1 \ UnitTestProject1 \ bin \ Debug \ CodeUITestProject1.dll"
For example vstest.console.exe "C:\Users\Administrator\Desktop\UnitTestProject1\UnitTestProject1\bin\Debug\CodeUITestProject1.dll"
1.如果它对于新创建的Code UI测试项目运行良好.我认为问题可能出在您的代码ui测试项目本身中.请清洁溶液并重新构建.或创建一个新的ui测试项目代码,然后将代码复制到其中.然后再试一次.
1.If it works well for the new created Code UI test project. I think the problem is probably in your code ui test project itself. Please clean the solution and rebuild it. Or create a new code ui test project then copy the code into it. Then try it again.
2.如果它为新创建的代码ui测试项目给出了相同的错误消息.在这种情况下,我想您的VS2012或命令行工具可能有问题.
2.If it gives the same error message for the new created code ui test project. In this case, I suppose there might be something wrong with your VS2012 or your command line tool.
在这种情况下,建议您最好修复VS2012或安装VS2012的最新更新,VS2012更新5,然后再试一次.
In this case, I suggest you'd better repair your VS2012 or install the latest update of VS2012, VS2012 Update 5 then try it again.
最好的问候,
肖湖
这篇关于通过命令提示符VSTest.Console.exe进行编码的UI测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!