Description
The Return operation sets the result value of the keyword test and then exits the test.
Operation Result
The operation does not return any value.
Scripting Analogue
The operation is an analogue to the return
statement of programming languages like C++, JavaScript or C#.
Child Operations
The operation cannot have child operations.
Operation Parameters
The operation has one parameter:
Return Value
Specifies the exit value of the test. It can be any Variant-compatible value: integer, double, date, string, boolean or object reference.
Remarks
To check the result value of a test, you can use the If... Then operation. If you run the test from script code, then you can check the result with the If... Then
script statement.
To return values from tests, you can also use keyword test variables. For more information about this, see Getting Keyword Test Result.
See Also
Statements Category
Setting and Checking a Keyword Test Result
If... Then Operation