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 |
How to find Total no of Text Fields in the Page..Anybody please answer me..Thanks in Advance
Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...
How do you move objects from local object repository to shared object repository???What are methods?
Could you suggest me best coaching for automation in Delhi or nearby area?
Whether qtp 9.0 supports Test director8.0
Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar
With help of object repository,we can able to write the descriptive program manually?
Generic function to search for the unique link in webtable and click on it
how can we group that these test cases only should be automated and in which order you execute that test cases
how to add a runtime parameter to a data sheet?
What are the different recording modes?
for example u can take ebay or plifcart online shoping web application--------- write acode in vbscript in qtp---- search box and write (iphone6)and click on go button then opened diff prise iphones in next page but u can select 30,000 to 90,000 list pls write code?
2 Answers FFASVA, Genpact, Wipro,