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?



write script for , launching fr window,login and create 5 elements array and store 5 order numbers i..

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

Post New Answer

More QTP Interview Questions

What is BPT?

2 Answers   Allied Group,


What is the synchronization point in qtp?

0 Answers  


What are the Mandatory Properties of WebTable Object and Link Object in Web testing using QTP

2 Answers   iLink,


How you can write contexts to text file in qtp?

0 Answers  


What is Cross browser testing? Does UFT support it?

0 Answers  






I want to create Excel object on another machine which is in network i written the code "Set se=createobject ("Excel.Application","\\ankur")"here \\ankur is the name of that machine but i m getting the error of permission denied create object can anybody help me

2 Answers  


How many types of parameters are available in quicktest professional?

0 Answers  


write progamming connecting QTP to database sql? this is question asked by interview? pls any answer this?

4 Answers   IBM,


Up to how much VB scripting knowledge and what type of VB script knowledge is required for a QTP test engineer for real time to work ?

3 Answers  


what is profile tool?

0 Answers   ITC Infotech, TCS,


How QTP support all types of applications (platforms)?

0 Answers  


1.what is the extension of action template? 2.what are the strengths and weaknesses of Keyword driven framework? 3.how qtp identify runtime objects?

1 Answers   Satyam,


Categories