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 features of quick test pro(qtp)?
I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.
How to add synchronisation points in qtp?
Explain in brief about the quicktest professional (qtp) automation object model?
In qtp is it possible to check broken links of a page?
How you calling actions in qtp?
What is the difference between run time object and test object in QTP?
what is supply chain management?
How Can I find the least value in a bunch of variables using qtp.. E.g.:- A = 210, B = 212, C = 60, D = 111 I don’t want to write bunch of lines for this…. Is there a way to get the result in one line…..
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?
When should I use smart identification?
How to capture all the data of a webtable, weblist and combolist using QTP?
An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?
How to handle dynamic objects in quicktest professional (qtp)?
How can we import into Excel "Details" ,"Result" ,"Time" parameters from within a Results Report which is generated after a Run error when a script is executed in QTP? Refer E.g below Status Functionality Description RunDate Fail Login User should be able to Login 12/3/2007 StartTime EndTime Details* 1:31:58 PM 1:32:29 PM (this one i want)