The test test in Jenkins, however, works on the msbuild command line

Coded interface tests run successfully in MSTest or vstest.console.exe.

However, when executing the same command in Jenkins, the tests do not throw below error (using vstest.console.exe).

Error calling initialization method for test class MyServiceTestSuite: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: To run tests that interact with the desktop, you must configure the test agent to run as an interactive process. For more information, see "How to Configure the Test Agent to Run Tests That Interact with the Desktop" ( http://go.microsoft.com/fwlink/?LinkId=255012 ) If you run tests as part of your team build, you also must configure the build agent to run as an interactive process. For more information, see How to Configure and Run Scheduled Tests After Your Application Is Built ( http://go.microsoft.com/fwlink/?LinkId=254735 )

Is there a way to run tests successfully in Jenkins without installing a test agent.

+3


source to share





All Articles