Running a Test by Name

Applies to TestComplete 15.62, last modified on March 19, 2024

A test project contains tests of various types: scripts, keyword tests, low-level procedures and so on. Each test has a name. For script routines, this is the routine’s name, for keyword tests, low-level procedures and other types of tests this is the name of the appropriate project element in the Project Explorer panel. This topic describes how to run tests by their name.

Run as a test item

  1. Select your project in the Project Explorer panel and then select View > Organize Tests from the TestComplete main menu. This will open the Execution Plan editor of the project.

  2. Click New Item to add a new test item to the project.

  3. Click the ellipsis button within the Test cell of the new test item and choose the test to be run from the resulting Select Test dialog.

Now, when you run your project, the test item will run the specified tests.

Run from keyword tests

From a keyword test, you can run script routines, low-level procedures and even other keyword tests:

  1. Open your keyword test for editing.

  2. Add the Run Test, Run Script Routine or Run Keyword Test operation to the test.

    TestComplete will display the Operation Parameters dialog where you can specify the name of the desired test and the test’s parameters (if any).

Now, when you run your project, the test item will run the specified tests.

Run from scripts

The way you run tests from scripts depends on the test type:

See Also

Running Tests - Tips
How to Run a Group of Tests

Highlight search results