Export (0) Print
Expand All

How to: Play Back an Action Recording Using a Third-Party Web Browser

After you create an action recording, you can play it back when you run a test that contains the recording. This helps in circumstances where you might want 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 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 when the test runs, for example, logging on to an application or a website. As soon as the action recording finishes, you can continue to test manually at the point where the action recording stopped.

You can also play back your test using a different browser. This enables you to record your test with one browser and use the action recording to check it works correctly with a different browser.

Requirements

  • Visual Studio Ultimate, Visual Studio Premium, Visual Studio Test Professional

Note Note

For a list of browsers supported for recording and playback, see Supported Configurations and Platforms for Coded UI Tests and Action Recordings. Coded UI tests use the same underlying technology as action recordings.

The following procedure describes how to play back an action recording with a different browser, starting with how to load a test into 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 Note

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

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

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

  4. In the menu under the center group menu bar, choose 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 in the selected test suite.

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

    The Test Runner opens.

    Note 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.

To use a different browser to play back an action recording

  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 choose Start Test.

  2. In the toolbar, choose the down-arrow next to Play and select Change Browser for Playback.

    The Change browser for playback dialog box is displayed.

  3. Select the browser you want to use from Browser for playback.

    Note Note

    For a list of browsers supported for playback, see Supported Configurations and Platforms for Coded UI Tests and Action Recordings. Coded UI tests use the same underlying technology as action recordings.

  4. (Optional) If you want to always play back the action recordings with this browser for all tests, select Save this setting for all future action recordings.

  5. Choose Save.

    Your action recording will now be played back with the selected browser if it is available on your computer.

  6. To play your action recording with this browser, choose 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 choose 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 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.

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

Show:
© 2014 Microsoft