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 |
How to attach a file to TD?
Diff b/w Health care domain and Banking Domain?
What are the points to be taken into consideration while doing desktop testing?
Define Canvas view of UFT?
How many actions we can write in a test?
How many types of recording modes are there?
Why to use descriptive programming?
In qtp,how to interact tool & application build?
What is the XML file architecture ?
I'm quite new at QTP. Im doing a web-based app testing. I create something new item and a new link is created in the home page. This link is dynamic as it changes every 3 seconds. Obviously the new link is not in my Object Repo and I am trying to find a way how can I do a check or get the propery of the link I created. I can do it on keyword, but I need to do a check on expert mode, vbscript. I always get an error that is not identified whenever i try to check it (browser(b),page(p).link(newlink). Any idea?
Can you write a script for to insert array elements in an excel A to Z columns only. if the number oe elements in the array is greater than the number of columns (A to Z), come to next row and proceed furthur. eah cell should contain only one array value.
In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!