Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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.



Login to flight app, in window flight reservation set the date field and select flyfrom as Frankfu..

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

Post New Answer

More QTP Interview Questions

If the objects hierarchy is changing from build to build, then how you will handle that condition?

0 Answers  


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?

1 Answers  


Please explain the role of Regular expression in QTP

0 Answers  


What is TOM in QTP?

0 Answers  


What is the process for creating an automated test script using QTP assuming you have reviewed the manual test case and understand the requirements?

1 Answers   Infosys,


What are the enhancements u did after recording ur script?

3 Answers  


Can we use index on view?

0 Answers   Wipro,


HoW to open QTP in Real time.after getting the qtp window how to log in .pl answer real time people

3 Answers   GE,


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

0 Answers   HCL,


how to prepared for first for the first interview?

0 Answers   Collabera,


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?

0 Answers   Infosys,


Categories