background image
<< Exceptions - Prerequisite | Adding Data to a Testplan >>
Exceptions - Turn on fault trapping
<< Exceptions - Prerequisite | Adding Data to a Testplan >>
User's Guide
219
9 H
ANDLING
E
XCEPTIONS
Enabling fault trapping
2
Turn on fault trapping:
Agent.SetOption (OPT_TRAP_FAULTS, TRUE)
Note that in some instances, when an exception in an application occurs
during the last action of a testcase, that fault is not considered part of the
testcase, and therefore the recovery system terminates the script in the usual
manner. In order to ensure continuation of the script, add a Sleep (1)
statement after the action that precipitated the fault, thereby trapping the fault
within the testcase.