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


In an Excel sheet take two fields as agentname and password
and type some valid agentname and password.call that excel
sheet in qtp so that qtp opens the flightreservation window
taking into consideration how many records are entered in
the excel sheet.For example if 3 records are entered today
it will open 3 FR windows,if in near future the records are
more than 3 then it will open that number of times.

Answers were Sorted based on User's Feedback



In an Excel sheet take two fields as agentname and password and type some valid agentname and pass..

Answer / hari

var=datatable.getsheet(3).getrowcount

for i=1 to var
datatable.setcurrentrow(i)

Is This Answer Correct ?    3 Yes 0 No

In an Excel sheet take two fields as agentname and password and type some valid agentname and pass..

Answer / nagesh

let take a excel sheet with two feilds agentname and
password , in the first sheet of C:\testdata.xls , and
enter any number of users as you want , this simple example
will help you


DataTable.ImportSheet "C:\testdata.xls",1,1
rowcount=DataTable.GetSheet(1).GetRowCount

For i=1 to rowcount step 1
DataTable.GetSheet(1).SetCurrentRow(i)
SystemUtil.Run "C:\Program Files\HP\QuickTest
Professional\samples\flight\app\flight4a.exe"
Dialog("Login").Activate
Dialog("Login").WinEdit("Agent Name:").Set DataTable.Value
("agentname",1)
Dialog("Login").WinEdit("Password:").SetSecure
DataTable.Value("password",1)
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").Activate
Window("Flight Reservation").Close
Next

Is This Answer Correct ?    1 Yes 0 No

In an Excel sheet take two fields as agentname and password and type some valid agentname and pass..

Answer / ganesh

I am getting error for
Dialog("Login").Activate

Error: Login Object not found in Object Repository

Could you please tell me how to over come this.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

In qtp, how you can use xpath to identify objects?

0 Answers  


What is a runtime datatable ?

2 Answers   Ordain Solutions,


I have 5 no.of Action in my Test. Out off which i should make 3rd action as my start-up action. How should i make it?

5 Answers  


How will you compare keyword and expert view?

0 Answers  


What is the logic for reading(exporting)the data from flat files to QTP?Can anyone explain me with an example? I appreciate it!!! Thanks!!! Prasanna

1 Answers  


What is an environment variable?

1 Answers  


Without QTP (or any Testing tool) can we able to test the GUI part of the Applications. for Example generating the Scripts in Notepad and Executing them Using VB. Is it Possible to do so..

2 Answers  


What is API

2 Answers   Satyam,


How to create runtime property for an object?

7 Answers  


How to measure transaction time through VBScript without using start and end transaction points?

0 Answers  


in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded

0 Answers  


Can I record on netscape browser does it require any special settings ?

2 Answers  


Categories