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 |
can anybody give me the links for vb script material
give one example where you have used regular expression?
I want to do QTP Certification what is the pattern of Question paper.
Given a string variable contain a full name (last name, first name), using vbscripting, how can you extract first and last name and save them into two different variables.
hi radhaka plz tell me clearly to handle the earrors with out isng recovery scnerio this is sreenivas from delhi
If there r 1000 test scripts that were written. If a change to any functionality is to be made then how can we know in which script is this functionality existing.
how can we do the frame work in qtp
How can I replace all the text from the QTP script with some other text.
What is Unicode Compatibility?
What is Active Screen in QTP?
when there is a task that gets repeated in multiple scripts what do you do in QTP?
How to create Userdefined Function.Please write the steps ans also provide example where exatcly we use it.