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 |
regular expression
Explain how you can replace string in qtp?
Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?
We are using the QTP version 9.0 where we want to call objects from global repository for a particular function at runtime for increasing the performance of framework.We are actually looking for loading the objects under test (OAT) dynamically when script runs and would like to unload the same once the execution of the script is completed.
What is qtp window?
I have to pass all the test cases into gmail userid and password using functions please give me code thanks have anice and greate day
Hi Friends, I worked with 8.2 not with 9.2. Please help me in this prob. I created one script and recorded some think and save as Test 1 then I opened process--open the object repository manager. Switch to file->save->give some name->save as Objectrepo1.tsr file. (This is the global repository file.) Then I went to object repository->tools-> associate repository ->click + icon ->open the previously saved Objectrepo1.tsr file. This is the global repository Now I created one more script and save as Test 2. In this script I am calling script with the Help of "Call of existing action" and I executed but QTP is not able to execute B’cos it is QTP is not able to read the Object Repository of Test 1. Please let me know why? Once I made Script 1 as a shared Obj. Repository so it would not give any Problem. Right?
what is descriptive programming in QTP? How can be done?
How will you report the bug and explain the defect tracking sheet you handled?
How to execute a winrunner script in quicktest professional (qtp)?
What does it mean when a check point is in red color? what do u do?
Explain different recording modes?