Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Hi All
Below is my script which i made for lgin into Flight.exe.

SystemUtil.Run "C:\Program Files\Mercury
Interactive\QuickTest
Professional\samples\flight\app\flight4a.exe","","C:\Program
Files\Mercury Interactive\QuickTest
Professional\samples\flight\app\","open"

Dialog("Login").WinEdit("Agent Name:").Set DataTable
("p_Text", dtGlobalSheet)

Dialog("Login").WinEdit("Agent Name:").Type micTab

Dialog("Login").WinEdit("Password:").SetSecure DataTable
("p_Text1", dtGlobalSheet)

Dialog("Login").WinButton("OK").Click

If Dialog("Login").Dialog("Flight Reservations").WinButton
("OK").exist Then

Dialog("Login").Dialog("Flight Reservations").WinButton
("OK").Click

datatable.Value(3)= "Incorrect password. Please
try again"

Dialog("Login").WinButton("CANCEL").Click

elseif Dialog("Login").Dialog("Flight
Reservations").WinButton("OK").exist Then

Dialog("Login").Dialog("Flight
Reservations").WinButton("OK").Click

datatable.Value(3)="Please enter agent
name"

Dialog
("Login").WinButton("CANCEL").Click

elseif Dialog("Login").Dialog("Flight
Reservations").WinButton("OK").exist then

Dialog("Login").Dialog("Flight
Reservations").WinButton("OK").Click

datatable.Value(3)= "Please
enter password"

Dialog("Login").WinButton
("CANCEL").Click

else Window("Flight Reservation").Move 309,146


datatable.ExportSheet "C:\Raj\Result.xls" ,1

Window("Flight
Reservation").Close

End If


I want to capture the Message string from
Dialog("Login").Dialog("Flight Reservations"

Also pls let me know if this is the right way to do the
script for login. Pls provide some script for login
Flight.exe

Thanks in advance

Raj Dhiman



Hi All Below is my script which i made for lgin into Flight.exe. SystemUtil.Run "C:\Program..

Answer / raju

R u thinking is Good.

U will follow few steps:

1). u will store all the object information in object
repository.
2). u will give wrong password and click on "OK" Button
3). after that u got one dialog window that window also
stored into the object repository.
4). u will give valid username, password and click on "OK"
button.
5). u got window flight reservation window. This window
also stored into the object repository. After that u
Generate the script.

if not dialog("Login").exist(2) then
invokeapplication "Path of Flight Reservation"
End if

dialog("Login").winedit("Agent Name").set datatable(1,1)
dialog("Login").winedit("Password").set datatable(2,1)
dialog("Login").winbutton("OK").click

if dialog("Login").dialog("Flight Reservation").exist(2)
then
dialog("Login").dialog("Flight REservation").winbutton
("OK"). click
dialog("Login").winbutton("Cancel").click
datatable(3,1)="Fail"
else
window("Flight Reservation").close
datatable(3,1)="Pass"
end IF

datatable.exportsheet "Path",1

i think this is working properly
if u have any quarries please mail me raju.ippali@gmail.com
my no is 9823257761

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Error handling

3 Answers   Wipro,


I am trying to read the rediffmail usign the below code. But facing problem, while i user to get the link of the mail, i am getting all the link of the page, While i just want to get only mail name - link (not all the link of an page) so that i able to read the mail message by clcking on them in qtp. Dim Lnk,Webcheckbox Set Lnk= Description. Create '********* To count and display the webcheckbox Lnk("micclass" ).value=" Link" set LinkName= Browser("Welcome to Rediffmail:" ).Page("Welcome to Rediffmail:" ).ChildObjects( Lnk) LinkCount=LinkName. Count msgbox LinkCount For i=1-1 to LinkCount-1 DataTable.SetCurren tRow(i) DataTable.Value( "Name",1) =LinkName( i).GetRoProperty ("name") Next Waiting for the reply Praveen Saini

1 Answers  


What's QuickTest Window?

1 Answers  


I have a library function , with that function 100 scripts are being called. The library function is changed(something is added) . how do i update all the scripts.

1 Answers   IBM,


can any body pls mail me latest FAQ's in QTP to my mailid btrintra@gmail.com....Thanks in advance

0 Answers  


Iam doing automation in Oracle App's using QTP? In App's because of some functional setup, keep on changing my script flow. for this how can i use the recovery sceanrio?? Please help me?

1 Answers  


Can we directly automate test script according to requirements?

1 Answers  


What is Description Object?

1 Answers  


In QTP how to interact tool and application build?

2 Answers  


we are submitting data one form to another form.defaultly it is time period set as 5sec. but it is taken 15sec what to do

5 Answers   Covansys,


In QTP what is the difference between Step-in, Step-out, Step-over ?

3 Answers   CTS,


How to connect to data base?

2 Answers  


Categories