02-18-2009, 02:35 PM
Hi All
Please help me to get data from external XLsheet to datatable (runtime) and use that data in to my applications
...
..
Some one please explain the complete flow please
How the data entering in to the (run time) datatable
When the data assigned to variables, how the data input to the application and all other ways to do this with different ways.
Some time working and some time don't work.
I would like to know which way and How many ways we can use external XL sheet data import in to runtime datatable and how we can use that data for Application test data.
Please give some brief description along with example code please.
It should be really appreciated your effort and thanks in advance
Cheers
Please help me to get data from external XLsheet to datatable (runtime) and use that data in to my applications
Code:
Using Datatable.getsheet
Dim rcount,i, Fdate, Cname, etc...
Datatable.AddSheet("Dtsheet")
datatable.importsheet("C\...\data.xls","sheet1","Dtsheet"
rcount = datatable.getsheet("Dtsheet").getrowcount
for i = 1 to rcount step 1
datatable.setcurrentrow(i)
Fdate = datatable.value("flydate","Dtsheet")
.
.
.
Cnmae = datatable.value("cname","Dtsheet")
,
,
window("flightReservation").active
window("flightReservation").ActiveX("MaskEdBox").type "Fdate"
..
Some one please explain the complete flow please
How the data entering in to the (run time) datatable
When the data assigned to variables, how the data input to the application and all other ways to do this with different ways.
Some time working and some time don't work.
I would like to know which way and How many ways we can use external XL sheet data import in to runtime datatable and how we can use that data for Application test data.
Please give some brief description along with example code please.
It should be really appreciated your effort and thanks in advance
Cheers