ERROR

System Testing Test Script Language.

Syntax

ERROR

Description

When an unexpected output value for a function or a WAITTIL causes a problem, the current scenario halts as a result. You may terminate the scenario deliberately with the ERROR instruction.

After an ERROR instruction, the EXCEPTION block is executed on the next scenario at the same level, if there is one.

Example

#int sock;

...

SCENARIO Main

SCENARIO Test1

...

IF (sock==-1) THEN

ERROR

END IF

...

END SCENARIO

SCENARIO Test2

...

CALL ...

...

END SCENARIO

END SCENARIO

In the above example, you can stop the Test1 scenario with the ERROR instruction. The virtual tester then proceeds to Test2 scenario.

Related Topics

EXIT