Recording the Test

As you know how to record the new test. Eventhough i explained below how to record the test for creating new actions:

Start QuickTest and open a new test.
For more information, see step 1 of Recording a Test.

Start recording on the Mercury Tours Web site.
In the coming steps, you will record a test similar to the one recorded in the Recording Tests lesson. However, this test is designed slightly differently to optimize the test for a multi-action test.

Confirm that all Web browsers are closed. Choose Automation > Record or click the Record button . The Record and Run Settings dialog box opens.

In the Web tab, select Open the following address when a record or run session begins.
Confirm that the URL in the first box is http://newtours.mercury.com and in the second box, choose a browser on which to run your test session.

Confirm that the Do not record and run on browsers that are already open and Close the browser when the test closes options are selected.

In the Windows Applications tab, confirm that Record and run only on is selected, and that all three check boxes are cleared.
Click OK.

QuickTest begins recording, and your browser opens to the Mercury Tours Web site.

Sign in to the Mercury Tours Web site.
In the User Name and Password boxes, type the name and password you registered with Mercury Tours.

Click Sign-In.

The Flight Finder page opens.

Enter flight details.
Make the following selections:

Departing From: New York
On: Dec 29
Arriving In: San Francisco
Returning: Dec 31
Note: For the purposes of this tutorial, you must select each of the above options, even if one or more option is already selected.

Click CONTINUE to accept the other default selections. The Select Flight page opens.

Select a flight.
Click CONTINUE to accept the default flight selections. The Book a Flight page opens.

Enter required passenger and purchase information.
Enter the required information (fields with red text labels) in the Passengers and Credit Card sections.

At the bottom of the page, click SECURE PURCHASE. The Flight Confirmation page opens.

Return the browser to the Flight Finder page.
At the bottom of the Flight Confirmation page, click BACK TO FLIGHTS button. The Flight Finder page opens.

Ending the recording on the Flight Finder page enables you to create an action that starts and ends on the same page, so that you can call the action multiple times if you wish.

Stop Recording.

In QuickTest, click Stop to stop the recording process.

Save the test as ActionA.Choose File > Save. Save the test as ActionA.

Comments

Popular posts from this blog

2.Areas of Deployment

Setting Actions as Reusable Actions

Sample QA/Testing Resume