write a qtp script to verify that the business price is twice
the economy price in flight reservation window



write a qtp script to verify that the business price is twice the economy price in flight reservat..

Answer / mudaseer

window("flight reservation").winradiobutton("economy").set
eprice=window("flight reservation").winedit("price").getropro
perty("text")
ev=2*eprice
window("flight reservation").winradiobutton("business")
.set
bprice=window("flight reservation").winedit("price").getroprop
erty("text")
av=cdbl(bprice)
if av=ev then
res="pass"
else
res="fail"
end if
msgbox res

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More QTP Interview Questions

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

6 Answers   Wipro,


I m new to QTP? Is it necessary to know VB for learning QTP for Automation? Can I understand QTP excellently Without practical automation?

3 Answers  


How can we test existence of a particular word in scentence using QTP tool. Thanks in Advance!!!!!

4 Answers  


How to add multiple values in rows, under a single column of a run time datatable?

3 Answers   NIIT,


anyone can explian about types of "Triggere Events" in QTP

1 Answers  






What is the descriptive programming?

0 Answers  


What is the script for database check point, bitmapchek point, regular expression ?

0 Answers  


How to convert manual test cases to automated testcases

1 Answers   TCS,


hai there..this is chandu..i have a txt file which containing 1000 lines but at a time i want to retrieve 50 lines..after 50 lines i required to retrieve 51-100..like that i want...so could anybody help me in this...thanks in Advance..

3 Answers  


I am using descriptive programming for my project.when QTP deosn't identity or recognize a object by record and playback method,is it possible to make QTP identify that object using descriptive programming? Note: The object doesn't have unique properties and same properties used in Record and playback are only available, no extra properties are defined.

3 Answers  


When Recovery scenario actually starts while testing the application?

0 Answers   SAP Labs,


How to add synchronisation points in qtp?

0 Answers  


Categories