Pankaj Devrani
Pankaj Devrani

Reputation: 511

Setting up remote execution of Coded UI Tests Via Visual studio online

I have a coded UI test Solution. Till now I used to run test cases on agent machine via MTM. Now I want to run test cases on agent via visual studio online. When I am trying to run through visual studio online, I am not able to see any build as you can see in the screeshot below.

enter image description here

I used to create XAML build for my test execution via MTM. I don't know what I have to do. Please Can anyone help.

Additional Info : When I go to builds tab in visual studio online I do see XAML build definitions under XAML tab.

Upvotes: 0

Views: 440

Answers (1)

Andy Li-MSFT
Andy Li-MSFT

Reputation: 30362

The xmal build controller is not supported now. You need to configure your own build controller and agent to build your xaml build definitions. For more details, please refer to this blog. I'd recommend migrating to the new builds system (vNext builds). See Migrate from XAML builds to new builds.

To run the Coded UI Tests Via Visual studio online, you have to configure the private test agent to interact with the Desktop and build agent running as interactive Mode. See Deploy an agent on Windows.

Then you can use Run Functional Tests task to run Automated Test on agent machine. See Running Automated Test on agent machine using vNext Build for details.

Related thread: https://developercommunity.visualstudio.com/content/problem/148614/we-deprecated-the-hosted-xaml-build-controller.html


UPDATE:

To run test cases using solution, you need to build the test solution first (Add a build step), then run test with Run Functional Tests task. See Run unit tests with your builds for details. With Run Functional Tests task, you can execute Automated tests in Build vNext using Test Plan, Test Suites. Please refer to below link for details. https://blogs.msdn.microsoft.com/visualstudioalm/2016/03/31/executing-automated-tests-in-build-vnext-using-test-plan-test-suites/

If you mean Test Case work item, then you need to link test cases to test methods with MTM or Visual Studio.Then run the test in Test Hub. See Associate automated tests with test cases.

You may also want to Run automated tests from test plans in the Test hub.

Upvotes: 1

Related Questions