04-24-2011, 01:31 AM
Hi friends,
can you explain me what is 1,2 in import sheet and what is Action 1 and datatable.getsheet.
Thanks,
Shyam
can you explain me what is 1,2 in import sheet and what is Action 1 and datatable.getsheet.
Code:
systemutil.Run"C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe"
datatable.ImportSheet "E:\Test1.xls",1,2
d=datatable.GetSheet("Action1").getrowcount
For i=1 to d
DataTable.GetSheet("Action1").SetCurrentRow(i)
username=datatable.Value("u","Action1")
password=datatable.Value("p","Action1")
d1=datatable.Value("d1","Action1")
dialog("Login").WinEdit("Agent Name:").Type username
dialog("Login").Winedit("Password:").Type password
dialog("Login").WinButton("OK").Click
window("text:=Flight Reservation").winobject("text:=__/__/__").Type d1
Next
Thanks,
Shyam