CALL

C++ Test Script Language

Purpose

The CALL instruction calls a procedure defined with a PROC statement.

Syntax

CALL <procedure name> [ ( <actual parameter> [ ( , <actual parameter> ) ] ) ] ;

Arguments

<procedure_name> is a valid procedure name, defined within a test class or test suite, or in an inherited test class.

<actual_parameter> is an optional list of parameters that must conform to the expected procedure parameter list.

Description

A CALL instruction can be located within a TEST CASE or PROC block.

Example

TEST CLASS TestA {

       PROC InitArray (array, length)

       {

              #{

              for (int i = 0; i<length; i++)

                           array[i].init ();

              }#

       }

       TEST CASE tc1 {

              #Array<int> ia (50);

              CALL InitArray (ia, 49);
       
}

}