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

Explain the concept of how QTP identifies object.

5 Answers   Ordain Solutions,


What are the key elements available in test result window?

0 Answers  


How will u integrate oracel with QTP?

2 Answers   Microsoft,


What are the properties you would use for identifying a browser & page when using descriptive programming ?

2 Answers  


1>why parameterization is necessary in qtp? 2>if we give constant value then what problem?

5 Answers   Wipro,






I recorded a Web App with a Oracle backend using QTP 9.5 and for some reason the scripts don't play back> What am I missing at this point. I recorded the same Apps under Sybase and they work great. This is Oracle 10g. Why won't my scripts play back.

0 Answers  


what is the syntax for regular expression in QTP? how to create user defined functions in QTP?

6 Answers   CTS, MBT, TCS,


what is recovery manager and recovey scenerio?

2 Answers   BirlaSoft,


How many types of trigger events are there in qtp?

0 Answers  


Hi, I have 50 test cases for automation, Based on which criteria we can decide for these test cases we have to use Descriptive programming and remaining for general coding? Thanks In Advance..Kavitha

2 Answers  


What is the difference between "Call to copy of action", "Call to existing action" & "Call to winrunner action"?

5 Answers  


What scripting language QTP of?

4 Answers  


Categories