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 can i initiate the objects to find uniquely in OR

0 Answers   IBM, Livetek,


If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?

0 Answers   Ordain Solutions,


-->IF two TextBOxes are there in a "Form". -->A table contains some records which contains usernames & password.. -->What is the script we need to write using Descriptive programming concept...in QTP (simply DATA DRIVEN TEST SCRIPT OF QTP)?

3 Answers   CTS,


For Passing Parameters from one Action to another Action we will use Input & Output parameters. Can any one tell how to use this Input & Output parameters with Example ?

2 Answers   TCS,


WHAT ARE THE DISADVANTAGES OF SHARED REPOSITORY?

9 Answers   BirlaSoft,






What are FAST and NORMAL modes in qtp ? Why r these modes intended for ?

3 Answers   IBM,


What are the limitations in using Virtual objects?

1 Answers   ITC Infotech,


who will distribute the project modules for testing in testing team ?

2 Answers  


1)Difference Between Value & RawValue?

2 Answers   Wipro, Zensar,


What is diff. between ordinal identifier INDEX and Location?

3 Answers  


how can we group that these test cases only should be automated and in which order you execute that test cases

3 Answers   Maveric, Satyam,


difference Between LowLevel and Normal Recording Modes?

4 Answers  


Categories