Running a Test by Name

Applies to TestComplete 14.10, last modified on June 5, 2019

A test project contains tests of different 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. You can run tests as test items, or you can run them from other tests. This topic provide detailed information about this.

Running a Test as a Test Item

  • Select your project in the Project Explorer panel and then select View | Organize Tests from the TestComplete main menu. This will open the Test Items page of the project editor.

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

  • 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 the test will be run when you run the project.

Running Tests From Keyword Tests

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

  • Open your keyword test for editing.

  • Place the cursor somewhere within the Test Steps page in the Keyword Test editor and select Run Keyword Test from the context menu.

  • 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 the specified test will be run when you run your keyword test.

Running Tests From Scripts

You can run tests from scripts. The way you do this depends on the test type.

See Also

Running Tests - Tips
How to Run a Group of Tests

Highlight search results