software testing genius

Tutorial-10 How to parameterize our tests using Data-Driver in QTP

Welcome to “Software Testing Genius”. Subscribe to my RSS feed for latest content on Software Testing.

Tutorial-10 How to parameterize our tests using Data-Driver in QTP

How to parameterize our tests using Data-Driver in QTP


With the help of Data Driver utility of QTP, we can easily parameterize all or many test objects or methods, or checkpoints having same constant value in a particular action. The operation here is similar to the �Find & Replace All� process as against time consuming one-by-one �Find & Replace� process. We can replace all instances of a particular constant with a parameter. We can see each & every instance of that constant, by which we can decide whether to parameterize the particular value or not.

This short tutorial guides you to parameterize a value using data driver in QTP.

style="font-family: Verdana,Arial,Helvetica,sans-serif;">Step � 1: Display the concerned action desired to be parameterized.

Step � 2:

Choose "Tools" > "Data Driver". The Data Driver does internal scanning of the test looking for various constants for some time and opens the Data Driver.

The list of Constants for the action gets displayed by the Data Driver. Here we can see how many times a particular constant value gets repeated in the action.

By default, we see two types of constants like: 1) The argument value of each Set method 2) The argument value of each Select method

Step � 3:

If we want to parameterize a value that is not currently displayed in the list (like an object property value), click "Add Value" to open the "Add Value" dialog box.

Click "OK" after entering a constant value in the dialog box. This will add the constant to the list.

Step � 4:

Select the type of parameterization desired to be performed:

a) Step-by-step parameterization:

Enables us to view the current values of each step containing the selected value. For each step, we can choose whether or not to parameterize the value and if so, which parameterization options is required to be used.

b) Parameterize all:

Enables us to parameterize all occurrences of the selected value throughout the action. We set our parameterization preferences one time and the same options are applied to all occurrences of the value.

Step � 5:

If we had selected "Step-by-step parameterization" option in step-4, click "Next". This will open the e "Parameterize the Selected Step" screen.

Had we selected "Parameterize all" option in step-4, the "Parameter details" area gets enabled in the main screen of Data Driver. We can choose the preferences for parameterization in a way similar to the process used for an individual step.

Step � 6:

In the "Step to parameterize area", the first step with an object property, method argument, or checkpoint value containing the selected value is displayed in the test tree on the left. The parameterization options for the step are displayed on the right.

By default, the value is parameterized as a Data Table variable. Accept the default parameterization settings or set the parameterization options you want to apply to this step.

a) Click "Next" to parameterize the selected step and view the next step containing the selected value.

b) Click "Skip" if we don�t want to parameterize the selected step.

c) Click "Finish" to apply the parameterization settings of the current step to all remaining steps containing the selected value.


Step � 7:

If we clicked "Next" in Step-6, and steps remain that contain the selected value, the "Parameterize the Selected Step" screen opens displaying the next relevant step. Repeat step previous for each relevant step.

If there are no remaining steps containing the selected value, the Finished screen opens.

Step � 8:

Click "Finish". This will close the "Data Driver Wizard" & the Data Driver main screen shows how many occurrences we selected to parameterize and how many remain as constants.

Many More Tutorials on HP QTP 11.0

Study Material - HP QTP & QC Certification Exam

Study Material - HP LoadRunner Certification Exam

Study Material - IBM RFT Certification Exam

What Successful Testers say about the Quality of this website

If you want to keep track of further articles on Software Testing,
I suggest you to subscribe my
RSS feed


You can also Subscribe by E-mail
and get All New articles delivered directly to your Inbox.

Full Study Material for Popular Certification Exams:

Largest Database of Sample Papers - 1000+ Unique Questions for ISTQB Foundation Exam

ISTQB Foundation Exam - Full Crash Course for Download

ISTQB Advanced CTAL Test Analysts Exam - Full Crash Course for Download

ISTQB Advanced CTAL Test Manager Exam - Full Crash Course for Download

Study Material - ISTQB Certification Exam

Consolidated Study Material - Testing & QA

Most Popular Topics in Demand:

Practical Roadmap to QTP Certification

Practical Roadmap to CSTE Certification

General HR Interview Questions Common For All 

Tricky HR Interview Questions Common For All

Rehearsal of QTP in 1 Hr. -  Interview Questions


Comments :


# 1 Karan Bala on 2011-08-06 03:11:35

Can anyone tell me if I can run RFT scripts on QTP or if there is any tell which can do this conversion for me. Any help in this regard will be highly appreciated.

Karan Bala Subramaniam

# 2 Yoginderanath on 2011-08-10 12:30:17
Hi Karan,

Can you please tell me why would you want to run RFT scripts inside QTP? Do you want to migrate your scripts from RFT to QTP?

# 3 Karan on 2011-08-11 10:49:17
Its my company decision they want to use QTP in place of RFT, that is the reason.

Can you please tell me what are all the possibilities?

1. Is it possible to run RFT Script using QTP without RFT software?
2. Is it possible to convert RFT Scripts to QTP using any other converter?


Leave Your Comments: (*) Marked Fields are Mandatory

You can apply basic formatting to the text

Name *
Email Address *
Speak your mind
sex hikayeleri