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

What are the different types of recording modes in qtp? Which will be used when?

572


How many types of recording modes are there?

598


What is the recovery scenario in qtp?

576


What is the expert view?

556


Difference between action & Reusable action?

689






What are the advantages of a Hybrid framework?

603


how to test Web application using QTP software

1333


In order to select an automation tool for automating ur application, what r the things u need to consider? For eg i will go for automation; 1) When there is a lot of retesting and regression testing. 2) Return on investments. 3) Whether the tool supports the appln. 4)--------------, etc. Pls give me more number of points because my answer did not satisfy the interviewer. Very urgent pls

1447


Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)

3224


Explain the qtp test phases.

619


To which environments does quicktest professional (qtp) supports?

592


How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?

3058


Explain more about the Test Fusion Report of QTP?

607


What is the difference in the global and action sheet in qtp?

571


Is qtp supports uni-code?

618