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

Shared Object Repository is preferable while dealing with dynamic objects ok? descriptive prog also same? ok but why descriptive?(only for w/o application)

2 Answers   IBM,


Explain advantages and disadvantages of ddf?

0 Answers  


Hi, actually I completed Btech(CS). But i Will go to admin (Facility) interview. So, If Interviewer asking like " Why You choose this field". What we say? pLZ PLZ PLZ PLZ >............................................Send me.....

2 Answers  


Hi All, I am a beginner in QTP and have understood the basics of QTP by going through tutorial. I am trying to Automate a HRMIS application, What is the right approach to Automate this application. Kindly answer. Thanks in advance

1 Answers  


Whether qtp 9.0 supports Test director8.0

0 Answers   TCS,






pls dont join MIndq nageshwar rao...Nageshwar rao sir didnt teach QTP indepth...he teach basics only...atleast he dont know about INSTR concept...this concept take min 30 min...buthe teach 3 min only...like this so many concepts are missing in class. IN CLASS ROOM NAGESHWAR RAO SIR HIPNATIZE THE STUDENTS....WITH OTHER ISSUES.. dont join... look other institutes...this is my personal openion share your comments thank u

1 Answers   Mind Q Systems,


write the vb script for call to new action in qtp?

0 Answers  


What is the use of "Registeruserfunc" when should we use it? Note:Please do not copy paste the date from QTP help. I tryed it.But I don't Understand where should we use exactly.

5 Answers   Livetek,


What is output value in QTP? Why do we use the output value in QTP?How many types of output values are there in QTP? what are their respective usage in QTP?

14 Answers   IBM,


what is the difference between DP and keyword driven framework?

1 Answers  


In QTP I have a parameter in a datatable that is a sentence. I need to take the last word from the sentence and enter it into a field in a web application. How can I setup a parameter to enter in just a portion of the parameter (last word of the sentence) instead of the entire paramater (whole sentence).

2 Answers  


What is ObjectParamater?

0 Answers   CTS,


Categories