title: Testcase failing in Jenkins however running in msbuild command line
body: <p>The Coded UI tests are running successfully in the MSTest or vstest.console.exe.</p>
  
  <p>However when running the same command in Jenkins the tests are failing giving the below error(using vstest.console.exe).</p>
  
  <p>Error calling Initialization method for test class MyServiceTestSuite: 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" (<a href="http://go.microsoft.com/fwlink/?LinkId=255012" rel="nofollow">http://go.microsoft.com/fwlink/?LinkId=255012</a>)
  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" (<a href="http://go.microsoft.com/fwlink/?LinkId=254735" rel="nofollow">http://go.microsoft.com/fwlink/?LinkId=254735</a>)</p>
  
  <p>Is there any way to run the tests successfully in Jenkins without installing Test Agent.</p>