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

What is FRAME WORK? How many Frameworks can QTP supports?

4 Answers  


How to write business scripts using object repository with different scenarios

0 Answers  


How to handle Recovery scenario in QTP. give detailed explanation about recovery scenario.

1 Answers  


What is Automation frame work.How we will prepare in real time.

9 Answers   AppLabs,


how to get childobject from .net application. i tried but its showing child object count zero. but window has child objects.the following script i written... pls help me how to get. set parent=SwfWindow("winodw name") CheckObjectDescription parent, SwfButton Public Function CheckObjectDescription(parent, oDesc) Set oDesc = Description.Create() oDesc("micClass:").Value ="Swfbutton" Set children = parent.ChildObjects(oDesc) cntObj=children.count msgbox(cntObj) End function

1 Answers  






what is Defect density, defect leakage, defect age,latentbed,yasid testing, interface

4 Answers   Syntel,


HOW TO AUTOMATE CAPCHA IMAGES while creating Gmail account

2 Answers   TCS,


what testing activities u may want to automate in a project?

2 Answers  


Any one knows about descriptive programming to identify objects in a page? Kindly drop me mail prasanna.sabat@gmail.com

3 Answers  


Suppose u write test case in Excel sheet . how u open that test case in Test Director?

4 Answers   Ordain Solutions,


what is the Debug view?

1 Answers  


What is the Command used to start the QTP

0 Answers   HCL,


Categories