【发布时间】:2016-10-19 07:35:47
【问题描述】:
我正在尝试运行部署在虚拟机上的自动化测试用例,并尝试在 Octopus 部署工具的帮助下触发它。我在我的机器上安装了测试代理和 Octopus Tentacle。 Octopus 很好地触发了自动测试用例的 DLL。但是,当 Octopus 尝试运行测试用例时,它给了我一个错误,如下所示:-
Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: To run tests that interact with the desktop, you must set up the test agent to run as an interactive process. For more information, see "How to: Set Up Your Test Agent to Run Tests That Interact with the Desktop" (http://go.microsoft.com/fwlink/?LinkId=255012)
Error 01:59:38
If you are running the tests as part of your team build, you must also set up the build agent to run as an interactive process. For more information, see "How to: Configure and Run Scheduled Tests After Building Your Application" (http://go.microsoft.com/fwlink/?LinkId=254735)
我在测试代理中设置了我的密码并将其设置为有吸引力的过程,但我仍然面临同样的问题。
我正在通过 Octopus 触发我的 DLL,如下所示。
& "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" "C:\MyWebaPP\Automated_test\Automated_test.dll"
我尝试了所有找到的方法。请帮助我。
提前致谢!!
【问题讨论】:
标签: automated-tests coded-ui-tests vstest.console.exe vstest.console