Commands: do command
do
exception raised here
except
statements
....
control passes
....
Example:
testcase except1(STRING sExpectedVal STRING sActualVal)
do
Verify(sExpectedVal sActualVal)
Print( Verification succeeded )
except
Print( Verification Failed )
Raise Command
In addition to use buil-in exceptions you can define your own exceptions and generate them using the raise statement
Reraise Command
You can also use do...except to perform some custom error handling then use the reraise statement to pass control to te recovery system as usual