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
Answer / hari
var=datatable.getsheet(3).getrowcount
for i=1 to var
datatable.setcurrentrow(i)
| Is This Answer Correct ? | 3 Yes | 0 No |
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 |
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 |
In qtp, how you can use xpath to identify objects?
What is a runtime datatable ?
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?
How will you compare keyword and expert view?
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
What is an environment variable?
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..
What is API
How to create runtime property for an object?
How to measure transaction time through VBScript without using start and end transaction points?
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
Can I record on netscape browser does it require any special settings ?