write script for , launching fr window,login and create 5 elements array and store 5 order numbers inthat array?
and open order by using order no.s in array and find out maximum tickets booked by which order?
Answer / yamini
Tried to display the no. of tickets for each order but work out the solution to retrieve the maximum number of tkts booked. Thanks
Dim Arr, Tktcount
Arr=Array("1","2","3","4","5")
For Each Element in Arr
systemutil.Run "C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe"
Dialog("Login").WinEdit("Agent Name:").Set "John"
Dialog("Login").WinEdit("Password:").Set "mercury"
Dialog("Login").WinButton("OK").Click
Wait(4)
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 Element
Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click
Tktcount = Window("Flight Reservation").WinEdit("Tickets:").GetROProperty("text")
msgbox Tktcount
wait(2)
Window("Flight Reservation").Close
Next
| Is This Answer Correct ? | 0 Yes | 4 No |
Does QTP support flat files? If yes what are those?
how to test Web application using QTP software
hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)
waht is the diff b/w Environment variable and Global variable in qtp?? explain types of variable in qtp??
How you can decide which type of object repository you have to use?
what is test data
Does QTP support Java Script also. Which is one is preferrable for QTP, VB script or Java script
what is automation(qtp)bug pls giv me one ex?
Hoe can we do retesting using functions please give the code for it using login page
i this is balaji from chennai i have 4 yrs exp in testing and my qualification is bsc computers i completed in correspondace in which companiies accept the correspondace plz let me know
What is test object?
Where virtual objects stores results?