How to: Play Back an Action Recording

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

After you create an action recording, you can play it back while you run a test that contains the recording. This helps in circumstances where you might need to run the test multiple times because the action recording automatically plays back the steps.

NoteNote

For information about how to create an action recording, see How to: Create an Action Recording.

The action recording can also contain data that the tests steps use while the test runs, for example, logging on to an application or a Web site. As soon as the action recording finishes, you can continue to test manually at the point where the action recording stopped.

The following procedure describes how to play back an action recording, starting with how to load a test into Test Runner.

Replay an Action Recording from a Test Case in Microsoft Test and Lab Manager in Test Runner

To play an action recording, you must first load a test that contains an action recording into Test Runner from Microsoft Test and Lab Manager. For more information, see How to: Create an Action Recording.

Loading a test with an action recording

Selecting test to run in Test and Lab Manager

To load a test into Test Runner

  1. Open Microsoft Test and Lab Manager.

    NoteNote

    To display the Microsoft Test and Lab Manager window, click Start, and then click All Programs. Point to Microsoft Visual Studio 2010 and then click Microsoft Test and Lab Manager.

  2. On the center group switcher, click the down-arrow and then click Testing Center.

  3. On the center group menu bar, click Test.

  4. In the menu under the center group menu bar, click Run Tests if it is not already selected.

  5. In the left side pane, under Run Tests, select either the test plan or the test suite listed under the test plan that contains the test that you want to run.

    The right side pane displays the test cases within the selected test suite.

  6. In the right side pane, click a test case that contains an action recording and then click Run.

    The Test Runner opens.

    NoteNote

    Select Run with options to specify a build to run the test on, or to override the test settings and environment settings for the test plan.

Playing back an action recording from Microsoft Test and Lab Manager

Action recording playback in Test Runner

To replay an action recording from the test loaded from Microsoft Test and Lab Manager

  1. When you load a test from Microsoft Test and Lab Manager into Test Runner, you are prompted to Start Test with the option Create action recording. Leave Create action recording clear and click Start Test.

  2. In the toolbar, click the down-arrow next to Play and select Play all.

    -or-

    Select a specific step in the test to play back and in the toolbar, click the down-arrow next to Play and select Play.

    The action recording will display the steps in the Automation Playback in Progress dialog box and the steps will play as you conducted them during the recording.

    NoteNote

    You can preview the action recording steps before you run them by selecting the Preview option from the Play button in the toolbar. For more information, see How to: Preview Action Steps.

  3. After the action recording finishes, you can continue your testing with this manual test.

    NoteNote

    You can replay the action recording as described in the following procedure, "Replay an Action recording in an open test in Test Runner."

Replay an Action recording in an open test in Test Runner

To replay an action recording, you must first create an action recording with the currently loaded test or have a test that contains an action recording already loaded. For more information, see How to: Create an Action Recording.

Replay action in Test Runner

Action recording playback in Test Runner

To replay an action recording in a previously loaded test

  1. In the Test Steps pane, click the specific test step that you want to play back and then click Play in the toolbar.

    You can also select specific steps to play back by using combinations of CTRL + CLICK and SHIFT + CLICK.

    The action recording will display the steps in the Automation Playback in Progress dialog box and the steps will play as you conducted them during the recording.

    NoteNote

    You can also play back all the steps by choosing the arrow next to Play in the toolbar and then clicking Play all.

    -or-

  2. In the Test Steps pane, right-click the yellow action recording section indicator to the right of the test step you want play back and select Play.

    The action recording will display the steps in the Automation Playback in Progress dialog box and the steps will play as you conducted them during the recording.

  3. After the action recording finishes, you can continue your testing with this manual test.

See Also

Tasks

Concepts

Page view tracker