give me descriptive programing code sample flight
application in qtp?

Answers were Sorted based on User's Feedback



give me descriptive programing code sample flight application in qtp?..

Answer / chandu.myne

Systemutilrun " Path of the Application "
Dialog("text:=Login").WinEdit("name:=Agent name").set "Chandu"
Dialog("text:=Login").WinEdit("name:=Password").set "mercury"
Dialog("text:=Login").WinButton("name:=OK").click
If Window("text:=Flight Reservation") Exists
Then
Window("text:=Flight Reservation").close
Else
Dialog("text:=Login").Winbutton("name:=CANCEL").click

Regards,
Chandu
Correct me if i was wrong

Is This Answer Correct ?    15 Yes 5 No

give me descriptive programing code sample flight application in qtp?..

Answer / k

Dialog("text:=Login").Activate
Dialog("text:=Login").WinEdit("attached text:=Agent Name:").Set "kasi"
Dialog("text:=Login").WinEdit("attached text:=Password:").Set "mercury"
dialog("text:=Login").WinButton("text:=OK").Click

Is This Answer Correct ?    5 Yes 0 No

give me descriptive programing code sample flight application in qtp?..

Answer / chandrasekaran

Systemutil.Run "Give the Path"
Dialog("Login").WinEdit("Agent Name:").Set Chandru
Dialog("Login").WinEdit("Password").SetSecure "Mercury"
Dialog("Login").WinButton("OK").Click
If(Window("Flight Reservation").Exist) Then
Reporter.ReportEven Micpass, "Login into the
Application","Successful"
Else
Reporter.ReportEven MicFail, "Login into the
Application","UnSuccessful"
End If

Is This Answer Correct ?    5 Yes 3 No

give me descriptive programing code sample flight application in qtp?..

Answer / saket j

As in Answer 5:
I have ran that script but getting error that object not
found in Object reposotory.

Is This Answer Correct ?    3 Yes 1 No

give me descriptive programing code sample flight application in qtp?..

Answer / srikanth

Dialog("text:=Login").WinEdit("name:=Agent
name").set "srikanth"
Dialog("text:=Login").WinEdit
("name:=Password").set "mercury"
Dialog("text:=Login").WinButton("name:=OK").click
If Window("text:=Flight Reservation") Exists
Then
Window("text:=Flight Reservation").close
Else
Dialog("text:=Login").Dialog("text:=Flight
Reservation").Winbutton("name:=OK").click
Dialog("text:=Login").Winbutton("name:=CANCEL").click

Is This Answer Correct ?    7 Yes 6 No

give me descriptive programing code sample flight application in qtp?..

Answer / vrvs

Browser("name:=Mercury \|FlightApplications").Page
("title:=FlightApplications").Exist
Dialog("text:=Login").WinEdit("name:=Agent
name").set "srikanth"
Dialog("text:=Login").WinEdit
("name:=Password").set "mercury"
Dialog("text:=Login").WinButton("name:=OK").click
If Window("text:=Flight Reservation") Exists
Then
Window("text:=Flight Reservation").close
Else
Dialog("text:=Login").Dialog("text:=Flight
Reservation").Winbutton("name:=OK").click
Dialog("text:=Login").Winbutton("name:=CANCEL").click

Is This Answer Correct ?    2 Yes 3 No

give me descriptive programing code sample flight application in qtp?..

Answer / chandan

Systemutil.Run "C:\Program Files\HP\QuickTest
Professional\samples\flight\app\flight3a.exe"

str=Dialog("nativeclass:=#32770","text:=Login.").Exist(2)


Dialog("nativeclass:=#32770","text:=Login").WinEdit
("attached text:=Agent Name.*").set "mercury"



Dialog("nativeclass:=#32770","text:=Login").WinEdit
("attached text:=Password.*").set "mercury"

Dialog("nativeclass:=#32770","text:=Login").WinButton
("nativeclass:=Button","text:=OK").Click

Is This Answer Correct ?    1 Yes 3 No

give me descriptive programing code sample flight application in qtp?..

Answer / ashok reddy

Browser(name:=Mercury \|FlightApplications).Page
(title:=FlightApplications).Exist

Is This Answer Correct ?    5 Yes 13 No

Post New Answer

More QTP Interview Questions

Give me diffrent script in QTP for Webpage(Java and .Net),WindowsBased Applications,Java application,.Net application...

2 Answers   TCS, Virtusa,


Which Databases supports for QTP?

2 Answers  


where the log files stored when using QTP? plz send answer to me ........

1 Answers  


I have thousands of links are there, i want check each and every funtionality of link by using descriptive programme, retrive link name from excelsheet then operate in application. Please anybody send me model script

1 Answers   Oracle,


HI Everybody, I am using QTP 9.2, I have a problem and hope everybody help me solve it. Now I need to use mouse wheel event to zoom in or zoom out in web client, but QTP can't catch this event. I look forward helping of everybody. Thank you very much.

0 Answers  






For Passing Parameters from one Action to another Action we will use Input & Output parameters. Can any one tell how to use this Input & Output parameters with Example ?

2 Answers   TCS,


can we create recorset with out using database connection in vbscript?

1 Answers   CSS, CSS Corp,


hi, i was adding the two numbers in qtp scripts but i didn't get the answer. see my below script, i dont know wht is the problem. i passed the value a=3 b= 2, i got the ans 32 instead of 5. i thing the problem is to be c = a+b my mail id karthis4u@gmail.com Dim a, b, c a = inputbox("enter the a ") b = inputbox("enter the b ") c = a + b print c

8 Answers  


How can we do Data driven testing Using For loop in QTP?

2 Answers  


Is it possible to check the Run time value property of a field through a Database Checkpoint ? Further, is it possible to localize and mention a particular cell , in the database dynamically. My requirement is that I would need to check the status of a particular field , that would change from an "Active" state to a "Stopped" state dynamically.

1 Answers   CTS,


please clarify the question ................. i know how to open the notepad file ? but i don't know how to enter the data into opened notepad ? Ex: set a=createobject("wscript.shell") a.run "Notepad.exe" please give the replay. my mail id is raju.ippali@gmial.com, 9823257761

6 Answers  


Will QTP Support Japanese Language?

3 Answers   Cap Gemini, Infosys,


Categories