当我尝试从VSTS运行Coded UI Test(Orderedtest1.orderedtest)时,我在VsTest步骤中收到以下错误:
***Error Message:
Error calling Initialization method for test class
CodedUITestProject1.CodedUITest1:
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)
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)
Stack Trace:
at Microsoft.VisualStudio.TestTools.UITesting.Playback.Initialize()
at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestExtensionExecution.Before
TestInitialize(Object sender, BeforeTestInitializeEventArgs e)
at Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestExecution.RaiseBeforeTestInitialize(BeforeTestInitializeEventArgs args)
at Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestExecuter.RunInitializeMethod()
Skipped 2- CodedUITestMethodB (OrderedTest1)***
OS(测试机):Windows 10 Pro(64位操作系统,基于x64的处理器) VS:使用Update 3的Visual Studio Enterprise 2015
构建定义详细信息如下所示:
我是否错过了上述任何步骤?请帮我解决构建失败问题。