How to Run a Group of Tests

Applies to TestComplete 14.40, last modified on April 22, 2021

In a specific order

It may be useful to run tests one after another. For example, the first test will initialize the tested application, the second one will check data loading, the third one will test the dialogs that modify the loaded data, and so on. A complete sequence will make up a comprehensive test of the application.

To specify a sequence of tests, you can do any of the following:

  • Specify the needed test sequence on the Test Items page of your project.

  • Run all the needed tests from a keyword test using the Run Keyword Test, Run Script Routine, and Run Test operations.

  • Write a script routine that will run all the tests in the needed order.

Grouped by criteria

You can assign tags to your script and keyword tests, as well as to BDD scenarios to organize them by various criteria, for example, by testing environments, tested applications or components. To run tests that match a tag or several tags, you can do one of the following:

  • On the Test Items page of your project, create a test item and assign a tag or a tag expression to it.

  • In a keyword test, use the Run Test operation to run tests that match a tag or a tag expression.

Note: TestComplete will execute such tests in an arbitrary order. If the test run order matters, specify the test sequence as described above.

See Also

Tests, Test Items, and Test Cases
How to Create or Delete a Script Routine
About Script Tests
Keyword Tests

Highlight search results