Suspending Visual Test Playback at Selected Points

You can configure visual tests to suspend at set points during playback and enter debug mode. The points at which you set a visual test to suspend on playback are called breakpoints. Breakpoints let you manage playback to facilitate debugging, and can help isolate where a visual test fails. Breakpoints help to analyze how a visual test plays back even if there are no errors in the visual test. When you set a breakpoint, playback suspends before executing the step where the breakpoint is set and enters debug mode.

Setting breakpoints allows a visual test to play back to any specific point of interest. Place breakpoints at specific steps where you want to suspend playback, such as any point where you want to see the state of data contained in variables in the Local Variables window. Playback executes to the first breakpoint and suspends until you tell the visual test to proceed.

  1. Open the visual test in which you want to set a breakpoint.
  2. Select the step where playback is to be suspended.
  3. Choose Debug > Set/Clear Breakpoint. A breakpoint icon appears in the column next to the step number. Playback executes to the set breakpoint. When playback suspends at a breakpoint, the visual test highlights the breakpoint step in yellow with a yellow arrow pointing to the step.
The visual test displays in debug mode where you can step through the playback execution, control the step playback execution, or playback to/from certain points in the visual test.
Tip: Select a step with a breakpoint and press F9 to delete the breakpoint from the selected step. Press Ctrl+Shift+F9 to delete all breakpoints from all open visual tests and VB .NET scripts.