Search code examples
azure-devopscontinuous-integrationmstestmicrosoft-test-managervstest

How to run automation scripts in particular order in CI pipeline with Azure DevOps?


I'm trying to run my selenium automation scripts in CI pipeline using Azure DevOps. I have configured Visual Studio test task to run my automation scripts by selecting test plan option.

Now it runs all my automation scripts which associates with test cases. But it does not take the order define in the test case.

How do we define the order to run test cases? Currently it is not running according to test cases order.

For Example: I have test cases: Test A, test B, test C. I want to run test in order B,C,A.


Solution

  • You may create a main test and use any order, something similar was considered here: Controlling execution order of unit tests in Visual Studio