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.
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.
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.
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.
To create a manual test case
Open Microsoft Test Manager.
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.
From the Testing Center, click Plan and then click Contents.
The Contents pane is displayed.
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.
In the Title textbox, type SimpleWebTest.
You use this title to identify the test case and search for it if you have to.
From the list of tabs, select the Steps.
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.
For step two, type Enter http://www.microsoft.com in the browser’s address box. Press Enter.
For step three, type Close the Internet browser. Press Enter.
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.
To create an action recording on the manual test
In Microsoft Test Manager, in the center group menu bar, click Test.
In the menu under the center group menu bar, click Run Tests if it is not already selected.
Under the Title column, select the new test case SimpleWebTest and then click Run.
Test Runner opens.
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.
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.
Open Internet Explorer.
On the drop-down list to the right of the first step Open Internet browser, select Pass.
In Internet Explorer’s address bar, type http://www.microsoft.com and press Enter.
On the drop-down list to the right of the second step Navigate to http://www.microsoft.com, select Pass.
Close Internet Explorer.
On the drop-down list to the right of the third step Close Internet browser, select Pass.
Click End Test.
For more information, see How to: Create an Action Recording.
To play back the action recording
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.
Click the drop-down list for Browser for playback and select the Firefox browser, as shown in the previous illustration. Click Save.
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.
You can optionally select Save this setting for all future action recordings if most of your testing is for Mozilla Firefox.
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.