Share via


Walkthrough: Playing Back Manual Tests Using Firefox

You can create manual test cases to test your application. In a manual test case, you can document all the required test steps for a specific scenario and any other information that you must have to run the manual test. This might include attaching files to the manual test case. To be able to run manual test cases using Test Runner, you must add your manual test cases to a test plan. By adding your manual test cases to a plan, you can save the results every time that you run your test. Using the Microsoft Visual Studio 2010 Feature Pack 2, you can create steps on a website or on a Web-based application for your manual tests using Microsoft Internet Explorer and then play back the tests using the Mozilla Firefox browser.

For more information about manual tests, see Creating Manual Test Cases and Running Manual Tests Using Test Runner.

Warning

After you have completed the installation of Microsoft Visual Studio 2010 Feature Pack 2, if you want to use the Test Package for Mozilla Firefox, you must install and configure the Test Helper Extension for Mozilla Firefox. For more information, see How to: Install the Test Helper Extension for Mozilla Firefox.

Warning

You can use the Firefox browser to play back only manual tests. Recording manual tests on websites and Web-based applications by using the Firefox browser is not supported. If you need to run a manual test that uses Mozilla Firefox, use a test settings that has action log and action recording turned off.

You can only use the Mozilla Firefox browser to play back the manual tests. Recording manual tests on websites and Web applications by using the Mozilla Firefox browser is not supported.

Prerequisites

For this walkthrough you will need:

  • Visual Studio 2010 Ultimate, Visual Studio 2010 Premium or Test Professional 2010.

  • Mozilla Firefox Web browser versions 3.5 or 3.6.

  • Verify that you have installed Microsoft Visual Studio 2010 Feature Pack 2 and the Test Helper Extension for Mozilla Firefox. Information about installation is included in the introduction.

Create a Simple Manual Test that Uses Internet Explorer

To create a manual test case

  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. From the Testing Center, click Plan and then click Contents.

    The Contents pane is displayed.

  3. Select the test suite in the test suite hierarchy pane that you want to add test cases to, and then in the toolbar, click New.

    The New Test Case dialog box is displayed.

  4. In the Title textbox, type SimpleWebTest.

    You use this title to identify the test case and search for it if you have to.

  5. From the list of tabs, select the Steps.

  6. Under Action, select Click here to add a step and type Open Internet browser. Press Enter.

    The cursor will automatically move to the next step.

  7. For step two, type Enter https://www.microsoft.com in the browser’s address box. Press Enter.

  8. For step three, type Close the Internet browser. Press Enter.

    Adding steps to the manual test

  9. Save the test case by clicking Save in the toolbar.

    For more information about how to create manual test cases, see Creating Manual Test Cases.

Creating an Action Recording for the Manual Test Using Internet Explorer

To create an action recording on the manual test

  1. In Microsoft Test Manager, in the center group menu bar, click Test.

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

  3. Under the Title column, select the new test case SimpleWebTest and then click Run.

    Test Runner opens.

    Note

    If this is the first time that you have tried to run a test after you installed Microsoft Test Manager and you have not restarted your machine after you complete the installation, you will be prompted to restart your computer and start your test again.

  4. In Test Runner, you are prompted to Start Test with the option to Create action recording. Select the Create action recording and click Start Test.

    Start recording

  5. Open Internet Explorer.

  6. On the drop-down list to the right of the first step Open Internet browser, select Pass.

  7. In Internet Explorer’s address bar, type https://www.microsoft.com and press Enter.

  8. On the drop-down list to the right of the second step Navigate to https://www.microsoft.com, select Pass.

  9. Close Internet Explorer.

  10. On the drop-down list to the right of the third step Close Internet browser, select Pass.

  11. Click End Test.

    For more information, see How to: Create an Action Recording.

Play Back the Action Recording Using Mozilla Firefox

To play back the action recording

  1. In Test Runner, click the drop-down list next to Play in the toolbar and select Change browser for playback.

    The Change browser for playback dialog is displayed.

    Change browser

  2. Click the drop-down list for Browser for playback and select the Firefox browser, as shown in the previous illustration. Click Save.

    Tip

    If you have various version of Firefox installed, they will be included in the drop-down list for Browser for playback. However, only Mozilla Firefox versions 3.5 and 3.6 are supported. For more information, see Recording Tests Using Windows Internet Explorer and Playing Back Using Mozilla Firefox.

    Tip

    You can optionally select Save this setting for all future action recordings if most of your testing is for Mozilla Firefox.

  3. In Test Runner, click the drop-down list next to Play in the toolbar and select Play all.

    The action recording should play back using Mozilla Firefox.

See Also

Tasks

Walkthrough: Playing Back Coded UI Tests Using Firefox

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

Concepts

Creating Manual Test Cases

Running Manual Tests Using Test Runner

Other Resources

Recording Tests Using Windows Internet Explorer and Playing Back Using Mozilla Firefox