Run Keyword Test Operation

Applies to TestComplete 15.47, last modified on January 20, 2023

Description

Use the Run Keyword Test operation to launch a keyword test from another keyword test. The action which the operation performs is very similar to calling one script routine from another script routine.

Operation Result

The operation returns the same value that the called test returns. For information on how to obtain the result value, see Getting Keyword Test Result.

Scripting Analogue

The operation is analogue to the script statement that launch keyword tests. For detailed information, see Running Keyword Tests.

Child Operations

The operation cannot have child operations.

Operation Parameters

When you add the operation to the keyword test, TestComplete displays the Select Test dialog, in which you can choose the test to be executed by the operation. If this test has parameters, TestComplete then displays the Operation Properties dialog in which you can specify the parameters’ values.

After the operation was added to your keyword test, you can change the name of the test to be run by pressing the ellipsis button of the Operation column on the Test Steps page of the Keyword Test editor. This will invoke the Select Test dialog in which you can choose another test.

To modify the parameters of the called test, click the ellipsis button of the Value column. This will display the Operation Parameters dialog where you can set the desired values. For more information on setting the values in the dialog, see Specifying Operation Parameters.

Remarks

  • You can also create the Run Keyword Test operation from the Project Explorer. To do this, drag the needed keyword test item from the Project Explorer to the desired location in a keyword test that is open in the Keyword Test Editor.

  • Using the Run Keyword Test operation you can call a keyword test from the same keyword test. This cause the recursive execution of the test and may cause the Stack Overflow error. To avoid the error, plan carefully the sequence of test runs and use the If... Then operation to allow or forbid the recursive runs.

See Also

Test Actions Category
Specifying Operation Parameters
Checking Operation Result
Run Test Operation
Running Keyword Tests

Highlight search results