Distributed Coded UI Tests

Coded UI Tests can be run in a distributed fashion. It leverages the existing Load Test architecture.  Read the Load Test Team blog for more information.

 

Since Coded UI Tests always interact with the UI, the Test Agent has to be run as interactive process.

See How to: Set Up Your Test Agent to Run Tests That Interact with the Desktop

 

In the Coded UI Test Project, double click on the testsettings file.

image image

 

In the Roles section, choose Remote Execution.

Select the name of the controller to use for remote test execution.

If there are multiple agents associated with the controller, we can filter the agents on which the test has to be run based on properties. In the screenshot above, I have added a role named ‘Client” and  added an attribute “CodedUITest” and set its value to “True”. You can click on "Preview matching test agents” to detect how many agents match the selected attribute.

I will set this property to true for the agent on which I want to run the Coded UI Test. Remember this agent has to be run as an interactive process. (This dialog is invoked from Test –>  “Manage Test Controller” menu)

image image

 

In the screenshot above, see how i have set the attribute “CodedUITest” to “True” for my agent.