Execution of Test in QTPro

1.Create a Test
Objectives
1.Create a basic test from a manual test case.
2.Run a test and check for errors.
3.Store the test file.
4.Discuss the importance of initial and end conditions.

The QuickTest Professional user interface is broken up into a number of functional areas. You can choose to focus on one or more areas depending on the task you are performing.
2.Record a Test

1.Once the record button is pressed and test steps are performed , QuickTest listens and records the activities. This results in the recording and storing of each step of the business process. Each step consists of:
-The object
-The method (operation)
-The method property (a value for the action performed on the object)
2.QuickTest should be running before the application under test is invoked. For some environments, this is mandatory.
3.Saving a Test
Saving the test in Quality Center
-Only relevant when using QTP with QC
-A bulls-eye symbol in the header with “Open Test from Quality Center” appears
-A folder structure is listed under the parent directory “Subject”
-You have the option to click the File System button on the upper right corner
-Once you have logged into Quality Center:
1.Select your folder
2.Type in the test name
3.Save the file

Save a test in QuickTest Professional

-If you are using QuickTest Professional alone the file system you will save to is under the QuickTest Professional’s test directory.
-You have the option to save the test results along with the test.
4.Steps to Run a Test

-From the QTP Toolbar, click on the Run Button.
-A best practice is to use the temporary folder to hold the results while debugging your test.
-Press the OK button to execute the Run command.
5.Viewing the Test Run

-When you run a test, QuickTest performs each step as it was recorded.
-You can watch in the AUT as QuickTest performs each step. A yellow arrow in the left margin of the KEYWORD VIEW points out the step currently running.
-When QuickTest finishes running the test, you can open the Test Results window.
6.Steps to View the Results

1.Decide if results must be viewed.
2.If yes, select TEST->RESULTS from the QTP menu bar.
3.View the outcome of the test run.
4.Expand the results tree. From the Test Results menu bar, select
VIEW->EXPAND ALL
7.View Test Results

-Failure “roll-up” to the parent at the top level of the tree.
-Expand the Test Results tree to see the outcome of each step.
-Navigate to the child step that caused the failure.

No comments:

Post a Comment