Use the Run Test operation to run any test (or several tests) in your project from the given keyword test.
If the operation runs a test specified by the test name, it returns the same value that the called test returns. For information on how to obtain the result value, see Checking Operation Result.
If the operation runs a test or several tests by tags, it does not return any value.
The operation is analogue to running a test from a script.
The operation cannot have child operations.
Specify operation parameters when adding the operation
If the selected test has parameters or if you have selected [Tag expression], TestComplete then shows the Operation Properties dialog, in which you can specify parameter values or the tag expression.
@before tag names, that is, use
To combine tags, use the
notoperations, for example:
@tag1 or @tag2
@tag1 and not @tag3
@tag1 and not @tag2 ← Correct!
@tag1 && !@tag1 ← Incorrect!
If needed, you can use braces to group tags, for example:
@tag1 and (@tag2 or @tag3)
(@tag1 or not @tag2) and (not @tag3 or @tag4)
To change the test (or tag) to run, click the ellipsis button in the Operation column and select another test or tag in the resulting dialog.
To change the parameters of the called test (if any) or to change the tag expression, click the ellipsis button in the Value column and set the needed values.
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 implement recursive test execution. However, the recursive test execution may cause a stack overflow error. If the recursive test execution is part of your test plan, to avoid the error, think through your test run sequence ahead and use the If Then operation to allow or forbid recursive runs.