Login to flight app, in window flight reservation set the
date field and select flyfrom as Frankfurt and verify
whether flyto list box has the item FrankFurt, log the
results.
Answer Posted / raju
Hi,
If u select "FrankFurt" in FlyFrom, u don't find it again
in FlyTo drop down.
If u want to verify that ...
First generate the script statemnt to select FrankFurt in
FlyFrom fileld.
FlyFromcount= Dialog("Login").window("Flight
Reservation").wincombobox("FlyFrom").getitemscount()
For example if count returns 8, after selecting Frankfurt
from FlyFrom dropdown, now find the items count from FlyTo
dropdown, it will be (count-1), it will be 7 now.
Dialog("Login").window("Flight Reservation").wincombobox
("FlyFrom").select "FrankFurt"
FlyTocount= Dialog("Login").window("Flight
Reservation").wincombobox("FlyTo").getitemscount()
now if u want to verify if FrankFurt is still there or not
for i=o to FlyTocount-1
value = Dialog("Login").window("Flight
Reservation").wincombobox("FlyTo").getitem(i)
If value = "FrankFurt"
msgbox "FrankFurt exists in FlyTo dropdown"
else
msgbox "FrankFurt doesn't exist in FlyTo dropdown"
End If
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the different ways to invoke an application using QTP?
What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.
What VBScript operators, functions, and statements do you use in QuickTest Professional?
What are table and db checkpoints?
how to evalute defects in QTP script?
How does QTP identify an object?
What are the major/ important methods, functions in QTP we use realtime testing
What is meant by Output Value in UFT?
what testplan contents and what test strategy contents,what is the diff b/w them
What are the advantages of parameterization ?
what is description object?
How many types of recording facility are available in quicktest professional (qtp)?
Which environments are supported by hp qtp?
How will internal and external links be validated and updated? how often?
I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",