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

How to read a text file from QC using QTP. I would like to do something like this. But instead read a file from QC and NOT from my local drive. Set fso = CreateObject("Scripting.FileSystemObject") Set InputFile = fso.OpenTextFile("C:\test.txt", ForReading) Thanks

0 Answers  


write the code to reverse a string without using Strrev built in function.

14 Answers   ADP,


Hi Recently I Attend one interview .The intervier ask on Question in QC 9.2 . The Qus was while ruuning the Batch RUNS scripts in test lab if defect will comes .The defect automaticly wants to genate . How to Configure in QC . Thank You Balaji

0 Answers  


Where the text version of script file located in file system?

1 Answers  


Hi All I am installing QTP 8.0/8.2 in my office desktop (WIN XP) but it is not working. Inspite Installion is succesfully done but when i open qtp from programs it opens only first screen of add-in and after that it disappears. But in my other computer at home (winxp) it is working fine. Can you please give the reason, why it is not working in office desktop. DEEPAK SINGH

4 Answers   Satyam,


what is the difference between link and hyperlink?

10 Answers   Infosys,


What's QuickTest Window?

1 Answers  


Hi Friends, Every one is posting the Answers for the existing questions.Try to post the questions that are asked in Recent Interviews.It will be useful to the other Job seekers.

1 Answers  


1.what is test automation life cycle?

1 Answers   IBM,


A dialog is diplays " Transaction 254689 has been successfully completed" How to get the transaction ID from the message ?

6 Answers   Virtusa,


Hi All, issue is related to handling pop up script generated in IE, and run on mozilla. In App Under Test, when we get the alert pop ups, we just click ok button. if we need to run the same code on mozilla it will not identify . so we will check browser if browser(*).dialog(IE object).exits browser(*).dialog(IE object).winbutton(OK).click else 'by default mozilla browser(*).dialog(mozilla object).page(*).webbutton(OK).CLICK END IF But my qustion is. Do we write the above piece of code where ever we get such kind of pop ups from the application like alert pop up, confirmation pop up.... OR do we have any other alternative way to do this by using any functions in Recovery Scebarios? If Any of u know idea please do help me in this regard. or send answer to kravimb@gmail.com

0 Answers  


whaht is the difference between CLASS & OBJECT?

3 Answers   Accenture,


Categories