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 |
Give me diffrent script in QTP for Webpage(Java and .Net),WindowsBased Applications,Java application,.Net application...
Which Databases supports for QTP?
where the log files stored when using QTP? plz send answer to me ........
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
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.
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 ?
can we create recorset with out using database connection in vbscript?
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
How can we do Data driven testing Using For loop in QTP?
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.
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
Will QTP Support Japanese Language?
3 Answers Cap Gemini, Infosys,