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?



Scenario:2 combo boxes.1st combo contains a,b,c,d.2nd combo contains 10..20,20..30,30..40,.Select..

Answer / 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

More QTP Interview Questions

c language is thre but what is the purpose of c++, java is there but what is the purpose of Advanced java ....why these are all versions are coming...whta is the problem?

2 Answers   Accenture,


what r the main attributes of test automation?

0 Answers  


Any one knows about descriptive programming to identify objects in a page? Kindly drop me mail prasanna.sabat@gmail.com

3 Answers  


Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?

0 Answers  


what is the use of descripting programming?

8 Answers   Ordain Solutions,






What does ".mst" stands for? (abc.mst)

3 Answers   Infosys,


How to get line numbers in your editor in expert view?

1 Answers  


What is the difference between Call to Action and Copy Action?

2 Answers   Satyam,


How to invoke QTP through VBscript?Send me full code along with description of the code.Thanks in Advance

1 Answers   Capco,


How to load a object repository(using VBScript) ... very urgent....

4 Answers  


What is the condition or scenario that leads the use of object spy in qtp? (while recording we can get all the properties) then wat leads to use this?

2 Answers   iSoft,


What is the difference between run time object and test object?

0 Answers  


Categories