Mstest Run one test on a remote test controller/agent

  • 2 Replies
  • 1120 Views
Mstest Run one test on a remote test controller/agent
« on: April 27, 2016, 16:42:00 pm »
I wrote a few unit tests that are set to run on a build server. I have added a CodedUI test which isn't running because I have yet to set the controller to run in interactive mode. Our build controller could not be modified, so we resorted to setting up another machine with its own controller and agent.

Is it possible in Visual Studio to tell one test (the CodedUI one) to run with another agent ? (The other tests should run with the first agent)

*

Ruhit

  • *
  • 22
Re: Mstest Run one test on a remote test controller/agent
« Reply #1 on: April 27, 2016, 17:40:32 pm »
Configure your controller to run with Visual Studio.
Open the controller configuration tool and verify that 'Register with Team Project Collection' is  unselected.

In Visual Studio:

Right click on solution name, select 'add new item'. Add a new Test Setting file.
In the Test Settings window go to Roles tab, Select 'Remote Execution', add the controller's IP  or machine name in 'Controller' field.

Save the settings, select 'Test' --> 'Test Settings' ---> Select Test Settings File and select your new settings.

Re: Mstest Run one test on a remote test controller/agent
« Reply #2 on: April 28, 2016, 20:06:15 pm »
Thanks for all the help Ruhit!

 

Sitemap 1 2 3 4 5 6 7 8