CALL
System Testing Test Script Language.
Syntax
CALL <identifier> ( <arguments> ) [ @ [<expected_expr>] @ [<return_var>] ]
Description
The CALL instruction lets you call a specific interface routine. This routine may be a function or a procedure.
You can check a function's return values for interface routine calls.
The @ character is a separator.
<expected_expr> gives the expected return value of the function.
<return_var> gives the variable in which the return value of the function is stored.
If <return_var> is specified, the return value is stored in <return_var>.
The CALL instruction can be used in a PROC, SCENARIO, INITIALIZATION, TERMINATION, or EXCEPTION blocks.
Example
#int return_val;
#int V_in;
#int V1_out, V2_out;
SCENARIO TEST_1
FAMILY nominal
...
CALL API_function(V_in, REF(@0@V1_out),&1@0@V2_out)@1@return_val
...
Related Topics