Ordering of Tests in Azure Pipeline
Hello, I have a bunch of tests which are running OK from an Azure Pipeline.
The testcases for the tests are all included in a Test Suite within a Test Plan and work as I want in the order outlined in the TestSuite; however, I would really like to split the tests into different Test Suites in the Test Plan, when I have tried this I lose control over the order in which the tests are run.
For example, if my first Test Suite has two steps: Start, and Login in. My second Test Suite runs a load of tests on the application, and a third Test Suite closes the application. What happens is the first Test Case in the first Test Suite runs fine, then the first Test Case in the last Test Suite (which closes the application), then the Test Cases in the second Test Suite run against the application which has been closed.
I believe I have set things up correctly, as, Like I said, If I order the Test Cases within one Test Suite everything works OK.
Does anyone know if it is possible to ensure all the Test Cases within a Test Suite are run before the another one runs, and that Test Suites are run in a particular order?
Hi DanH,
The TestComplete test adapter has no control over the order in which Azure DevOps chooses to run the test suites, so the issue has to do with the Azure DevOps specifics. It might help if you add several VsTest tasks to the pipeline, one for each test suite - this way, they should be executed sequentially. If this setup gives the same result, I suggest you post a question to the Azure DevOps Developer Community.