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.

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


Please Help Members By Posting Answers For Below Questions

Hi we are running tests remotely from quality center and pushing tests into qtp boxes remotely, and it does execution but while uploading results back into quality center it hangs in qtp box.If any one come across similar problem, please send me details how to handle this. Thanks kris

2208


what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”

1955


What is quicktest professional (qtp)?

1041


what are the mandatory properties for a tex boxc (scenario?)

2005


Is QTP supports Unix. If yes, then how the test automation is done?

2187


What does it mean when a check point is in red color? What do you do?

1077


hai, i completed my b.tech in 2010 with 62.3%. i having knowledge on manual testing and Qtp. i want Relavent experience in testing.watever may be d salary i dont bother..I just want to gain knowledge. i dont have good communication skills.

1859


How can i check items sorted or not in a weblist ? Give me the script for this...

2036


What is regular expression?

1070


what is the difference between IE & Netscape in web testing on a log in page

2314


Explain how you can find the absolute value of the number in qtp?

1090


Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?

1934


What is the short cut keys for the following?

1122


Why is Client side image is preferred over server side image?

1898


please any one can explain the keyword driven framework. with gmail example.

2100