Quick Test
Professional
Basic Training
Presentation by:
Madhusudhan, J (I054537)
13th Sept 2010
SCM MII Automation
Agenda
Introduction to Quick Test Professional
How to Access QTP
Starting with QTP
1. Add-in in QTP
2. Expert View
3. Keyword View
4. Active Screen/Debug Viewer/Data Table
5. Commands on a Toolbar
Working with Object repository
Type of recording & Check points in QTP
Data Parameterization
Working with Actions
Recovery scenarios
Q&A
Introduction to Automation
Introduction to Quick Test Professional
The advanced solution for functional test and regression test automation. It uses the concept of Keyword
Driven Testing. In keyword driven testing you use the recorded object to generate operations on it.
As you add steps to your test, they are displayed in the table-based Keyword View, or in the VBScript-
based Expert View. Every step in your test includes automatically generated documentation that
provides a plain language textual description of what the step does.
QuickTest Professional recognizes and learns the objects in your application so that you can design
automated tests that perform the same types of operations and business processes that your customers
do. You can then run these tests to check that your application works as expected.
How to Access QTP
Starting Quick Test
Starting Quick Test
Expert View
Keyword View
Active Screen/Debug Viewer/Data Table
Clicking Commands on a Toolbar
Viewing Product Information
Viewing Product Information
Analyze the results
Result Settings
Analyze the results
Test result
Working with Object repository
How does QTP Identifies Objects..
Learns the object’s parent window and the object
properties
Recognizes the object type (“class”)
Assigns a “Logical Name” to the learned object
Working with Object repository
Object Identification works in the following manner
1. Search for the object on the page with the description present in OR. Use Mandatory and
Assistive Properties to identify the object.
2. If match is not found using Step 1, then invoke smart identification. Smart Identification
ignores the OR properties based recognition. Instead it uses its own set of properties
configured for the object class.
3. The Smart Identification mechanism makes use of Base Filter and Optional Properties.
4. QT creates a object identification list for objects which match the Base Filter properties.
5. Subsequently it takes the first optional property (as configured) and runs through the
objects matched in Step 4
6. If match(es) are found then it removes all other objects from the list created in Step 4. If
more than one match is found then it uses the second optional property to identify
matching objects in the new list.
7. It keeps following this mechanism till it uniquely identifies the object.
Working with Object repository
Object Identification
Working with Object repository
Smart Identification
No Object Matches the Recorded Description
Multiple Objects Match the Recorded Description
Types of recording
Deferent types of recording…
Standard recording
Low Level and analog recording
Analog recording
Standard windows recording
Check points available in QTP
Types of Check Point in QTP….
Text Check Point
Standard Check Point
Text Area Check Point
Database Check Point
Bitmap Check Point
Parameterization
Parameterization Applies to input and output Data
Quick test has Two types of Parameters.
Output parameter (or output value)
In this we can create an output parameter where in
the Quick Test retrieves the current value of the object and
enters it in the run-time Data Table as an output value.
Input Parameter (or input value)
With an input parameter, you can use a range of
input values instead of one Hard-coded value.
Parameterization
How Data Driven Test Works with
parameterization….
Working with Actions
Working with Actions
We will Learn how to…
How to Create Reusable Actions.
Call a Reusable Action from an external test.
How Reusable actions affect data and parameters.
Working with Actions
Types of Actions…
Actions can be classified into three types..
Non-Reusable Action – An action that can be used in the test
in which it is created.
Reusable Action – An action that can be called multiples
times by the test in which it was created as well as by other tests.
External Action – Similar to Reusable action created in another
test. These are in Read-Only format. The actions can be modified
from it’s Original Test.
Working with Actions
Action List with Reusable Action
Working with Actions
Call a Reusable Action
Select a Test with
Reusable action
Select from the list
of reusable action
Specify where the
Action to be
inserted
Recovery scenarios
Handling Unexpected Events and Errors
Unexpected events and errors during a test run can disturb testing
Unattended tests require an action to recover
QTP Recovery scenario Manager can…
Detect and Handle the appearance of a specific error dialog.
Recover from an error and continue to the next step.
Guide you through creating a recovery scenario using the
scenario Wizard.
QTP basic training
Q&A
Thank you