On Error Go To Properties

The On error go to property category includes the following properties:
Action to take
Sets the action to take when an error occurs during playback of a visual test. Select one of the following options from the list:
  • Show default playback error dialogDisplays the Playback Error dialog box when a playback error occurs, which is used to determine a playback action to take when an error occurs. Use the Playback Error dialog box to enter debug mode to diagnose errors in a visual test.

    Displaying the Playback Error dialog box is the default behavior when playback encounters an error.

  • End playbackEnds visual test playback when an error occurs. No other steps in the visual test play back. When playback ends, the Playback Complete dialog box appears, which determines the action to take when playback completes.

  • End testPlays back the visual test specified in the Asset property, then ends at the step where the error occurred. When playback ends, the Playback Complete dialog box appears, which determines the action to take when playback completes.

  • Retry stepPlays back the visual test specified in the Asset property, then attempts to execute the step that caused the error. If no visual test is specified in the Asset property, then playback simply attempts to re-execute the step that caused the error. You can specify the number of replay attempts in the Number of retries property. The default number is 5. If the step execution is not successful when the specified number of retries is reached, a playback error is generated.
    Note: Silk Test Workbench does not generate a playback error while attempting to re-execute a step. If you set the Number of retries property to 0, the step is retried forever. This could cause Silk Test Workbench to appear to not be responding during a playback while continually retrying a failed step.

    The Retry step action is useful for projects that have visual tests that reliably handle errors or fix potential errors to anticipated test issues. For example, if a visual test accesses a page in a browser application that may not reliably load, a 'fail to attach' error may occur. The Retry step action can direct the visual test to another visual test that reliably loads the page before attempting to interact with it, thereby resolving the playback error.

  • Resume nextPlays back the visual test specified in the Asset property, then attempts to execute the step immediately after the step that caused the error. The step that caused the error is not re-executed.

  • Go toPlays back the visual test specified in the Asset property, then navigates to the predefined Label step specified in the Label property and continues playback. Using Go to allows that visual test to skip steps that could potentially contain failures similar to the one that occurred during playback, and navigate to another section of the test.

    Note: If a specified label step used for error handling is placed before the step where the error occurs, the error continues to occur because the affected step continues to be played back in a loop.
Asset
Specifies the visual test to run when an error occurs during playback of a visual test. To select a different visual test, click Browse for Visual tests, and then select a visual test.
Tip: Once you have specified the asset and created the step, another action can be selected in the Action to take property to change the behavior of the step. For example, if the Action to take property is set to End test and an asset selected for the Asset property, the step text is as follows:
On error playback '[visual test]' and then 'End test'

The Action to take property value can now be changed to change the behavior of the step. Changing that to value to Retry step changes the step as follows:

On error playback '[visual test]' and then 'Retry step'
Label
Contains a list of available label steps the visual test can navigate to if an error occurs. Select a label step name from the list.

This property only appears when Action to take property is set to Go to.