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

We stored into the objects OR and then write the scripting

0 Answers   L&T, Wipro,


Which object repository we use in real time and can we merge 2 object repostiory and how?

6 Answers   HCL, Satyam,


How is GC reddy online program Will i get placed How are the placements.

1 Answers  


Where you can store check point results?

3 Answers  


What is a Run-Time Data Table? Where can I find and view this table?

4 Answers  


What is the Limitations of Testing ?

4 Answers   TCS,


Whenever we use GETROPROPERTY function.

7 Answers   NIIT,


in which situation u will use recording and in which situation u will used to write script manually

1 Answers  


Can you expect major bugs in Net banking Application?

1 Answers  


Hi, It is HR question. What are the qualities you like and dislike in your Project Manager?

2 Answers   TCS,


Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?

3 Answers  


Can any one give me some basic VB script used in QTP ?As i am new in QTP.Give sample VB script used in QTP? PLZ

3 Answers  


Categories