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
what is the difference between development and testing
ACTUALLY I AM WORKING IN THE DISTRIBUTION DOMAIN.MY COMPANY IS PROVIDING DISTRIBUTION SOFTWARE FOR PHARMA AND FMCG DISTRIBUTORS.HERE I AM USING QTP 9.2.HERE IN MY APPLICATION WHILE RECORDING ONE WINDOW APPEARS.IN THAT I CAN SELECT THE ITEM OR NO NEED TO SELECT.BUT WHILE RUNNING THE SAME SCRIPT THE WINDOW MAY NOT APPEAR OR APPEAR.HOW TO WRITE SCRIPT FOR THIS
how to convert 100 into hundred repees only and viceversa
What is Cross browser testing? Does UFT support it?
can u please explain what is the exact difference between qtp8.2 and 9.0
What is the differences between image check point and bit map check point?
I need to obtain the parent of an object programatically, so if I have: winButton("aButton") I need to obtain the parent part: window("Window1").Dialog("Dialog1") so I can programatically create a string of the full name of the object to call it with an execute statement in QTP I would like to use something like: part[1] = "window(""Window1"")" part[2] = "dialog(""Dialog1"")" so I can do: exeLine = part[1]&"."&part[2]&"."&"winButton(""aButton"")" Execute exeLine Apart from keeping a record of the window/dialog hierarchy is there a parent or path function/ command Thanks Adrian
Explain how you can find the absolute value of the number in qtp?
How you can find the absolute value of the number in qtp?
Explain the use of action split in qtp?
Approach for Installation,comaptibility,system testing
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..
what could go wrong with test automation?
How does qtp identify gui object?
What is checkpoints for qtp?