Adding Error Handling Logic to a Visual Test

This topic describes how you can use the Test Logic Designer to add error handling logic to a visual test.
  1. Open the visual test.
  2. Right-click on the test steps to which you want to add error handling logic.
  3. Choose Insert > Test Logic > Error Handling. The Test Logic Designer opens.
  4. Click Next. The Select a Logic Type page opens.
  5. Click Next. The Build the Error Handler page opens.
  6. Select one of the following items from the list to specify the error-handler logic to use when an error occurs.
    Show default playback error dialog
    Displays 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.
    End playback of current visual test
    Ends 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.
    Retry playback of the step on which the error occurred
    Plays 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.
    Resume playback at the next step
    Plays 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 to a label
    Plays 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.
    First playback another visual test
    Plays back a different visual test, which you specify, and then you specify what action happens next. To determine what occurs after the alternate test runs, choose to end the test, retry the step where the error occurred, go to a label, or resume the original test where the error occurred.
  7. Click Next. The Summary page displays the test logic that you have defined. Uncheck the check box at the bottom of the page to prevent the Summary page from appearing on subsequent uses of the Test Logic Designer wizard. Checking or un-checking this check box updates the Show Test Logic Designer summary screen general option. For more information, see Modifying General Options.
  8. Click Finish to insert the test logic into the test steps of your visual test. To modify the test logic, click Back and make the desired changes. The test logic is added to the visual test.