Playing Back a Visual Test

When you play back a visual test, it performs each of the actions that you recorded or added.

  1. Perform one of the following steps:
    • In the Assets section of the Start Screen, click Playback Visual test 'Project name - Test name' for the appropriate visual test in the Recent list.
    • In the Asset Browser, right-click the appropriate visual test and click Playback.
    • From the Visual Navigator, choose Actions > Playback to play back the active visual test.
    The Playback dialog box opens.
  2. Optional: Type a description for the test result into the Result description field.
  3. From the Result options list, select how you want to save the results of this test. Select one of the following options:
    Save results with a new run number
    Results from the playback of a visual test or script are saved with a new incremental run number. For example, a new result is saved with a run number of 1. Subsequent results for the same visual test or script are saved with run numbers of 2, 3, 4, and so on. This is the default selection.
    Append results to current run number
    Results from the current playback are appended to the results of the most recent existing run number. A new run number is not created. This option only appears with an existing result.
    Overwrite existing run number with new results
    Results from the current playback overwrite the results of the latest existing run number. A new run number is not created. This option only appears with an existing result.
    Do not save this result
    A result is not created when playing back a visual test or script.
  4. Optional: Click Options to change the result options. For additional information, see Setting Playback Result Options
  5. Optional: Check the Show Local Variables window check box to display the Local Variables window during playback. Silk Test Workbench hides the Local Variables window when the playback is finished.
  6. Click OK.
  7. If you are testing a web application, the Select Browser dialog box opens. Select the browser and click Run.
  8. Optional: To stop playback, click Actions > Stop, click Stop on the toolbar, or press both Shift keys. To pause playback at the current step, click Actions > Pause, click Pause on the toolbar, or press Alt+F11.
    As the visual test plays back, you can see each action executed against the test application.

    If the visual test contains passed in variables without assigned values, the Passed in Variables dialog box opens, where you can assign values to these variables.

    If an error occurs during playback, the Playback Error dialog box opens.

  9. Once playback completes, use the Playback Complete dialog box to determine the action to take.
    Note: If an error occurs during playback, an error message appears.
    Hide the Playback dialog box during the playback process by checking the Do not show this dialog again check box. This overrides the Show Playback dialog option setting in General Options. Use that setting to show the Playback dialog box.