Stepping Through a Visual Test in Debug Mode

You can play back visual tests one step at a time while in debug mode. Known as stepping, this allows you to trace through steps during playback to see the order in which the test steps execute, any data returned by a specific step, and if a step executes successfully.

In debug mode, control playback execution by using the following commands:
Step Into (F8)
Executes playback one step at a time. Step Into is useful to trace through each step, and steps into other visual tests or scripts that are inserted into the visual test being played back. Each inserted visual test or script is also executed one step or line at a time.

Step Into is useful for detailed analysis of a test, and lets you see the effect of each step on variable usage and test application interaction.

Step Over (Shift + F8)
Executes an entire visual test or script inserted into another visual test as if it were a single step. Use Step Over when playback is in debug mode for a step that plays back a visual test or script. This plays back the inserted visual test or script in its entirety. Once the inserted visual test or script plays back in its entirety, playback suspends in debug mode at the next step in the original visual test.

Using Step Over at a step other than one that plays back another visual test or script has the same effect as using Step Into. Only the next step executes before playback suspends and re-enters debug mode.

Step Out (Ctrl + Shift + F8)
Executes all remaining steps in a visual test or script being played back from another visual test, then suspends playback at the next step in the original visual test.

Use Step Out when playback is suspended at a step in a visual test or code line that has been inserted in another visual test, and you want to playback the remaining visual test or script and return to the original visual test. When playback executes the remainder of the inserted script or visual test, it suspends and re-enters debug mode at the next sequential line in the original visual test.

Run To Cursor (Ctrl + F8)
Allows you to select a step where you want playback suspended. This allows you to "step over" selected sections of a visual test or script.

Use Run To Cursor to playback the visual test or script and stop playback at a point just before a run-time error occurs. This lets you stop playback at a specific line or statement without having to insert breakpoints. Once playback stops, you can continue using one of the other debug options.

Run From Cursor
Plays back the visual test from the currently selected test step.

Stepping commands are accessed from the Debug menu.