Running a single test on a remote test controller / agent

I have unit tests configured to work on the build server. I just added the codedUI test, which does not work, because I need to configure the controller to run interactively. Since we could not modify the existing assembly controller, we configured the machine with our own controller / agent.

How can I tell in Visual Studio one of the tests (encoded user interface) to run under this controller / agent, while preserving the rest? I looked through the settings files, but it is not clear how I can do this.

Controllers / Agents - 2010, I'm on vs2012.

+4
source share
1 answer

First you need to configure your controller to work with Visual Studio. So, open the Test Controller Configuration tool and make sure that the Register with Team Project Collection option is not selected.

Then from visual studio (2012):

  • Right-click on the solution and select add new item . Add a new Test Setting file.
  • In the Test Settings window, click the Roles tab. Select Remote Execution and add the name of the controller or device in the Controller field.
  • After saving the settings, select TestTest Settings ---> Select Test Settings File and select the new settings.
+1
source

Source: https://habr.com/ru/post/1481438/


All Articles