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

Output values? i want a practical example

0 Answers  


Can I import a excel sheet in Action1 datatable? How?

2 Answers   IBM,


What is keyword driven framework?

0 Answers  


what is the diffrence between script and Language ? (Chandana)

6 Answers   Cognizant, Wipro,


Need one Urgent help please,for ex: first time i created Local reposory and convert that local to shared Rep and save in some where(by using Export local objetcs), unfortunately that saved repository is missed, now i want same repository,but iam not able to export the same repository second time?? i need that Repository only how to get???

2 Answers   TCS,






What is the difference between keyword driven frameworkd and Modularisation framework?(Chandana)

5 Answers   Wipro,


What are the steps involved in the recovery scenario wizard?

0 Answers  


Diff b/w WEB TESTING AND Client server testing?

3 Answers   Ordain Solutions,


How to handle recovery scenario for a application crash.write script for this.

2 Answers   Polaris, TCS,


We are using the QTP version 9.0 where we want to call objects from global repository for a particular function at runtime for increasing the performance of framework.We are actually looking for loading the objects under test (OAT) dynamically when script runs and would like to unload the same once the execution of the script is completed.

2 Answers  


How to analyzing Test Results using QTP?

1 Answers  


can we call a test in another test?

3 Answers   iFocus,


Categories