END TEST-CASE Command

Description:

The END TEST-CASE command terminates a section of the Script that starts with a START TEST-CASE command, to create an individual test case.

If the END TEST-CASE command is reached during execution of the Script, the test case is considered to have succeeded, and the message specified in the test definition is sent to the report log.

Test cases cannot be nested. However, there is no restriction on calling another Script that contains test cases, from within a test case section.

Format:

 END TEST-CASE

Parameters:

None

Example:

 START TEST-CASE "Checking distribution rate"
     IF (dist_rate < minimum) THEN
         FAIL TEST-CASE
     ENDIF
 END TEST-CASE

See also:

Formal Test Control Commands