Share via


How to: Play Back an Action Recording

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 have to run the test multiple times because the action recording automatically plays back the steps. Alternatively, you can fast forward through the test steps until you reach the correct test step to verify a bug.

Note

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 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 Manager. For more information, see How to: Create an Action Recording.

Loading a test with an action recording

Selecting test to run in Microsoft Test Manager

To load a test into Test Runner

  1. Open Microsoft Test Manager.

    Note

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

  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.

    Note

    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. For more information, see How to: Override Settings in Your Test Plan For Test Runs.

Playing back an action recording from Microsoft Test Manager

Action recording playback in Test Runner

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

  1. When you load a test from Microsoft Test 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 or multiple steps 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.

    Note

    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.

    Note

    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 or test steps 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.

    Note

    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 that 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

How to: Create an Action Recording

How to: Preview Action Steps

Concepts

Recording and Playing Back Manual Tests