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

Hi, Can any body please tell me how to create framework in qtp & where i can get some material to learn about it. regards, rahulT

1 Answers  


can we enable smart identification for test object

3 Answers  


What is the limitation to XML Checkpoints?

4 Answers   CTS,


On the website, the protocol has been changed https: to https what you will do? Tell me your approach?

0 Answers  


Hi What are re-usable actions in QTP? -Thank You

5 Answers   Siemens,






How can i count the list box elements in QTP ?using script plz explain me (Chandana)

6 Answers   Wipro,


In an interview what r the questions asked in qtp related project? pls any answer this question?

3 Answers  


How software automation specialist enter steps in the Expert View?

0 Answers  


How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?

0 Answers  


hi i am working with vbwindow on qtp.first i am openning qtp whenever open qtp my application not open that time generated error like "Runtime error 0" and fatal error:automation error how to solve this problem pls tell me

0 Answers   TCS,


How to check the URL using Automation tool QTP

2 Answers  


How to use conditional loops in qtp ?

0 Answers  


Categories