Scenario:2 combo boxes.1st combo contains a,b,c,d.2nd combo
contains
10..20,20..30,30..40,.Selecting 'a' shld display
10...20,'b' shld
display 20..30.. and so on.tell d script?
2.Random testing of 500 test cases in qtp?

Answer Posted / jaganmohan reddy

Let me explain the answer for the First question:

Write one function for Combo1

n=datatable.value("selectStr",dtlocalsheet)'this statement
will send parameter to the first combo for selection of
a,b,c,d etc

Public function combo1Selection(n)
Browser().page()....select n
'put standard checkpoint on Second combo and select table
i=Browser().page()....webtable().getROproperty("value")
if i="expected" then
'write statements
else
'write statemets
end if
end fucntion



*****Random testing of 500 test cases in qtp*****

Hi u can use excel sheet for testing this....
u can use parameter in the excel as "Run" and in the "Run"
field just specify as "Yes" whichever testcases u want to
run.
this has big procedure....if u want ..just send mail to
djagan2000@yahoo.com

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance

1421


How to save your test using quicktest professional?

521


What is the purpose of loading qtp add-ins?

617


how to prepared for first for the first interview?

1789


1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.

1663






Explain different types of checkpoints?

553


How to handle the exceptions using recovery secnario manager in quicktest professional?

620


Hi All, I need code for how to execute qtp scripts from excell sheet

1455


Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution

1658


How to create runtime property for an object?

1440


what is vmodel?advantages and disadvantages of vmodel?

1610


Can any one tell me how to write a script for selecting open option in File menu of A word document.here you have to add objects to OR.try like that and give me the ans.i asked this question to so many but no one knows.if any one know the answer plz let me know

1395


How will you handle java tree in qtp?

620


can u please explain what is the exact difference between qtp8.2 and 9.0

1675


How are actions and functions different in QTP?

647