write a qtp script to verify that the business price is twice
the economy price in flight reservation window
Answer Posted / 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 View All Answers
what is the diff b/w assistive and mandatary rules of object repository in QTP???
What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?
What is the file extension of the code file and object repository file in QTP?
Hi, While recording a Jave based web application, its recording all my actions and the objects.And I have 5 WebEdit objects on the page and all are recorded. But while execution, at the 2 WebEdit object, its entering the value into the object (Its making a call to the AJAX, matching the value), when the control get out of this object the value is erased or cleared. Could anyone please help. I have recoreded 5 more scenarios where WebEdit is in the picture on different webpages and all are working fine. Here is my Script: Browser("Sign In").Page("Matching Workbench_3").WebEdit ("locationLookup").Set "0320 - SEATTLE-KM" Browser("Sign In").Page("Matching Workbench_3").WebEdit ("supplierNameLookup").Set "TRAMMO PETROLEUM INC" *** SupplierNameLookup is the object, which is haing an issue. And also I was using the SendString function, but it didnt work.
Where to use function or action?
How does QTP identify an object?
Hi Friends this is kumar i would like to request to all of you ,please help me to explain real time project with using qtp scripts i know basics of qtp but it won't workout on interviews,pls help awating to reply.
Which scripting language used by quicktest professional?
Explain types of descriptive programming?
How can you give wait up to 10 seconds in qtp?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
Explain different type of event trigger option.
Can we run test with out adding object in object repository? How it is possible?
Explain the concept of how quicktest professional identifies object?
how u will evaluate the tool for test automation?