0

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.

3
  • Have you clicked the Find button? If you didn't trigger the find, no builds will be displayed there. Commented Mar 7, 2018 at 6:57
  • yes I did click on find button. Commented Mar 7, 2018 at 7:31
  • The xmal build controller is not supported now. You need to Migrate from XAML builds to new builds (vNext builds), I can see the vNext builds on my side. Commented Mar 7, 2018 at 7:38

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

13 Comments

@Pankaj Devrani Have you resolved the issue? Is that helpful for you? any update?
Yes It was helpful but not totally. I have a coded UI test Solution in my TFS server and I want to run test cases using that solution. Can you tell how can I trigger my test cases from the test plans online using agent pool(name= abc).
but if I add test task to my build. will this will run all the test during the build queue? if yes then I don't want to do that because there are more then 100 test cases are there in my solution if one test fail it will fail the build.
@PankajDevrani Have you checked the link I provided above? Choose the Test Plan from which you want to run your tests. You can then select one or more test suites from a Tree view control followed by a Test Configuration. So you can manage the tests by the test plan.
I did checked your link. What I am trying to do is create build first and then test later. Is it possible that I build first and then I can run my test case by going to testhub > test plan > test suite and then choose whatever test case I want and right click and go to run option and choose the build and environment then run. The way I used to do in MTM.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.