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

How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..

0 Answers  


when u script reveiwing in which area u more concentrates?

0 Answers   IBM,


what is the code in QTP to take screen shot?

4 Answers   TCS,


what is meant by automation tool?

1 Answers  


I am in need of some set of QTP FAQ @ interview. Also recently in one of interview portal they asked me how you write the script for Login application which it is web -based and using Descriptive Programming? Without associating the shared object repository?Please i do need this answer very soon? Please respond me soon @ vaisu72@yahoo.com

2 Answers  


How can you identify the browser and its information using the qtp script?

0 Answers  


What is the default add-ins in qtp?

0 Answers  


How many types of Recordings are there in QTP and what are they?

7 Answers   Dangote, First Indian Corporation,


A webPage has a ComboBox with 10 values in it. Write a script to select 4 vales from it using CTRL key

3 Answers   Virtusa,


Hi we are running tests remotely from quality center and pushing tests into qtp boxes remotely, and it does execution but while uploading results back into quality center it hangs in qtp box.If any one come across similar problem, please send me details how to handle this. Thanks kris

0 Answers  


how can we test load time of an page in webtesting?

3 Answers   Ordain Solutions,


In an interview what r the questions asked in qtp related project? pls any answer this question?

3 Answers  


Categories