What is data driven testing in QTP?

Answer Posted / guruprasad

Simple, the execution path is driven based on the data
residing outside the script.

You could script in such a way that the functionality that
need to be tested cane be decided outside the script, and
pass the appropriate data to drive the execution.

For example:

You can have a switch case in your script to test
1.Links
2.Login field
3.Pwd field
4.Login button

Now your data sheet will contain 2 fields with multiple
rows. One field for the option (1/2/3/4) and the other for
the data to be used.

Now in the beginning of the script you would load the excel
sheet retrieve the data iteratively pass it to the switch
case. Now, you have the ease of deciding what needs to be
tested with what data outside of the actual script.

Hope that helps...

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next

3272


descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button

1806


To which environments does quicktest professional (qtp) supports?

587


How do I lauch my test website using code from qtp in different environmet, uat and PPTE?

1456


Diff b/w test scenario's and test Procedures?

1626






What is use of object spy?

611


Describe function procedure in vbscript.

551


Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)

1622


any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in

3442


Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?

603


How to modify object property in qtp ?

559


write a script to verify links on any web page by using descriptive method by creating a description object (give a filter condition only link) ... need to verify expected like name by reading

1487


whare exactly we have to use functions and sub routain

1844


HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...

2397


What is the limitation to XML Checkpoints?

1601