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 |
how do u copy object repository?
How to load a object repository(using VBScript) ... very urgent....
Why you have to add the specific add in in QTP? My answer is to recognize the specific objects we have to add the add-in in QTP...but he asked again after adding addin how qtp recognize the objects successfully? what is there in the add-in ?
Is it mandatory to know abt regular expression in descriptive programming
Explain how you can find the absolute value of the number in qtp?
How to handle the exceptions using recovery secnario manager in quicktest professional?
how to compare two excell sheets by using vbscript??
What is the registration process and examination fees?
can u explain about QTP Frameworks? what are the framework types are available? and How to set or create frame work for a application? Explain briefly?(Also give me one example)
How to differentiate the webedit field like user name and password? Please tell any other best answer is ther
how to select the work for complete automation and one more thing when u are going to choose automation
what is the framework followed by ur company in qtp