Return
Step In-Place Editing
To edit a Return script step:
Select the step in the Script Steps table. Edit the step parameters as follows:
- Session: This column displays no session at all.
- Return Variable: This step does not use a return variable.
- Command String: Displays the numeric value or the TestComposer variable specifying the script pass/fail status (a non-zero value for a success status, `0' for a fail status), and a message string that is displayed in the application logs.
Click into the column and edit in-place a numeric value or a variable, and the message string.
Alternatively, click the
button and define the return value and the message in the drop-down window that appears.
A constant non-zero value or a variable that evaluates to a non-zero value denominates a script success status, whereas a value of `0' or a variable that evaluates to `0' denominates a script failure status.
Example:
If $result == "pass"
TclEval puts "execution successful!"
Return 1 "test passed"
EndIf
Assign status 1
Return $status "test passed"
IxLoad TestComposer │ User Guide |