Description
Use the Run Test operation to launch any test defined in your projects from the given keyword test.
Operation Result
The operation returns the same value that the called test returns. For information on how to obtain the result value, see Checking Operation Result.
Scripting Analogue
The operation is analogue to running a test from a script.
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.
You can also change the test and parameters by double-clicking the operation in the Test Steps page. TestComplete will repeat the same steps as if you added the operation to the keyword test: select the test and specify its parameters (if needed).
Remarks
-
You can also create the Run Test operation from the Project Explorer. To do this, drag the needed project item (a low-level procedure, network suite job or unit test) from the Project Explorer to the desired location in a keyword test that is open in the Keyword Test Editor.
-
Using the Run Test operation you can execute tests recursively. This may cause the Stack Overflow error. To avoid the error, plan the sequence of test runs carefully 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 Keyword Test Operation
Run Script Routine Operation