NOTICE: Our Community is moving. Get more information. Updated information on a New Login Process
In Silk Test Workbench, when using the ‘On Error’ test step, error handling does not fire when an error is encountered, the script continues to execute. What can I do to resolve this?
Please ensure that the ‘On Error’ test step is placed before the test step which is likely to cause an error else the ‘On Error’ method will not catch the error message and the associated actions to take will not be executed.
Please see the screenshot above which demonstrates the use of the On Error test step and that it is placed before step 4 which is will invoke an error. The sample application can be found at http://demo.borland.com/InsuranceWebExtJS/index.jsf
In the example, the first recorded step was to click the error labels that are displayed when the login button is clicked without entering a valid username or password. Please see the screenshot below which shows the labels in question.
For more information on the ‘On Error’ test step please see the ‘On Error Go To Properties’ topic within the Silk Test Workbench Help.