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

How to attach a file to TD?

0 Answers  


Diff b/w Health care domain and Banking Domain?

0 Answers  


What are the points to be taken into consideration while doing desktop testing?

1 Answers   Cap Gemini,


Define Canvas view of UFT?

0 Answers  


How many actions we can write in a test?

7 Answers   TCS,


How many types of recording modes are there?

0 Answers  


Why to use descriptive programming?

0 Answers  


In qtp,how to interact tool & application build?

1 Answers   Polaris,


What is the XML file architecture ?

0 Answers  


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?

4 Answers  


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.

1 Answers  


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!!!

0 Answers  


Categories