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 / 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 |
If the objects hierarchy is changing from build to build, then how you will handle that condition?
I have multiple radio buttons i need to select a radio buton and i dont want to hard code i have a generic function for it there i have used select#0 so it selects first radio button but for other script i want to select the 4th radio button how i can make it still more generic
4 Answers Accenture, Acentia, LM,
What’s the QTP testing process?
Please explain the role of Regular expression in QTP
What is TOM in QTP?
What is the process for creating an automated test script using QTP assuming you have reviewed the manual test case and understand the requirements?
What are the enhancements u did after recording ur script?
Can we use index on view?
HoW to open QTP in Real time.after getting the qtp window how to log in .pl answer real time people
When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti
how to prepared for first for the first interview?
iam working in QTP for 2+ of exp if i attend the interview what r questions asked in perfomence testing{loadrunner} ? pls any one can say answer to this question?