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 Posted / 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 |
Post New Answer View All Answers
I want to grow as a Automation Engineer,Kindly help me in clearing my interview that what interviewer looks for as a Automation Engineer. I am having three years of experience in testing.
in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded
How to give a call to another action from one action?
What is Unicode Compatibility?
Have you used xml check point in your project? How?
Hi frens! I am testing VB project with MS Access database. At add button click my record is storing in data table and it is shown in datagrid. So at Delete button click i want to check datagrid rows 9before and after delete). so how can i do it using descriptive programming?
What is test object model in quicktest professional?
Is it possible to use two instances of UFT on the same machine? If not why?
what is output value in QTP and how it can be used in automation testing
what is the structure for the data driven framework
write the vb script for call to new action in qtp?
What is difference between run time object and test object?
What are the types of object repositories? Which one is you using?
hi nani my doubt is how does qtp process metrix related to software process.
How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined