in flight reservation ex once u login, u go into next
window where we hav an option of new, open and help etc..
how to fetch those options and to go to respectiv tab
accordingly using qtp.. plz let me knw answer for tis as
early as possible. Thanks in advance... asha



in flight reservation ex once u login, u go into next window where we hav an option of new, open ..

Answer / ravi

hi comming to ur question i am not clear abt wht u want but
anyhow i am sending the solution as wht i have understood.

first login into the flight reservation table and then
start recording the process using standard checkpoint and
stop the process when u have finished of with the step.now
return to the proj base state and then run the proj.

i am sending u the steps of one task i.e open order.pls
check through tht and reply me whether u intend the same or
not.u can perform the same task using several methods for
eg descriptive prog also.

Window("Flight Reservation").Check CheckPoint("Flight
Reservation")
Window("Flight Reservation").WinMenu
("Menu").Select "File;Open Order..."
Window("Flight Reservation").Dialog("Open
Order").WinCheckBox("Order No.").Set "ON"
Window("Flight Reservation").Dialog("Open Order").WinEdit
("Edit").Set "5"
Window("Flight Reservation").Dialog("Open Order").WinEdit
("Edit").Type micReturn

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More QTP Interview Questions

can u Give Procedure to Handle Pop Window & write Code for that

2 Answers   CTS,


What is the syntax to call one action in another?

0 Answers  


In website, protocol has been changed http:to https what you will do? tell me your approach?

1 Answers  


There is a very good institute for Automation Testing using QTP.For more details please visit jbslearnings.com.

1 Answers  


Have you done batch testing in qtp? If yes how you are doing?

0 Answers  






What are the various automation frameworks available in qtp?

0 Answers  


Hi I have a doubt in qtp. Can you please clarify my doubt. If we are importing the data from excel sheet in qtp the the script is running the number of row times. I mean if there are 4 rows in excel sheet the script is running 4 times. cant we avoid this. suppose i have tis script: datatable.Import "C:\Documents and Settings\sailaja\My Documents\login1.xls" n = datatable.GetRowCount For i =1 to n systemutil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe" datatable.SetCurrentRow i Dialog("Login").WinEdit("Agent Name:").Set DataTable ("Username", dtGlobalSheet) Dialog("Login").WinEdit("Password:").Set DataTable ("Password", dtGlobalSheet) Dialog("Login").WinButton("OK").Click Window("Flight Reservation").ActiveX ("MaskEdBox").Type "020209" Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt" Window("Flight Reservation").WinComboBox("Fly To:").Select "Los Angeles" Window("Flight Reservation").WinButton("FLIGHT").Click Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click Window("Flight Reservation").WinEdit("Name:").Set "Sailaja" Window("Flight Reservation").WinButton("Insert Order").Click Window("Flight Reservation").WinMenu ("Menu").Select "File;New Order" window("Flight Reservation").Close next I created a excel sheet with 3 rows and 2 columns. (username and password). The script is running 9 times. I made the option run one itaration only . eventhough it is running 9 times .can u plaese clarify my doubt. Thankyou Sailaja.

3 Answers  


How to start recording using quicktest professional (qtp)?

0 Answers  


How to create basic scripts from a manual test case in QTP?

1 Answers  


Syntax for how to call one script from another? and Syntax to call one "Action" in another?

3 Answers  


Write a Script With descriptive programming(Without Repository) to update an Update an order in Flight App and verify whether it is done successfully.(Use ChildObjects method)

2 Answers  


What is the Diff between Image check-point and Bit map Check point?

3 Answers   Ordain Solutions,


Categories