Default Error Handling

If a test case fails, for example if the expected value doesn’t match the actual value in a verification statement, by default Silk Test Classic calls its built-in recovery system, which:

These runtime errors are called exceptions. They indicate that something did not go as expected in a script. They can be generated automatically by Silk Test Classic, such as when a verification fails, when there is a division by zero in a script, or when an invalid function is called.

You can also generate exceptions explicitly in a script.

However, if you do not want Silk Test Classic to transfer control to the recovery system when an exception is generated, but instead want to trap the exception and handle it yourself, use the 4Test do...except statement.