give me descriptive programing code sample flight
application in qtp?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
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 |
Answer / ashok reddy
Browser(name:=Mercury \|FlightApplications).Page
(title:=FlightApplications).Exist
Is This Answer Correct ? | 5 Yes | 13 No |
Explain the concept of how QTP identifies object.
What are the key elements available in test result window?
How will u integrate oracel with QTP?
What are the properties you would use for identifying a browser & page when using descriptive programming ?
1>why parameterization is necessary in qtp? 2>if we give constant value then what problem?
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.
what is the syntax for regular expression in QTP? how to create user defined functions in QTP?
what is recovery manager and recovey scenerio?
How many types of trigger events are there in qtp?
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
What is the difference between "Call to copy of action", "Call to existing action" & "Call to winrunner action"?
What scripting language QTP of?