Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Importdata and Export results
#1
Not Solved
hi,
i want to import excelsheet into my script for which i used the below code;
Datatable.Importsheet "C:\Documents and Settings\Desktop\Excel testdata\Create.xls",1,"Results"
Now problem is my script consists of different functions like
launch browser
login
create retailer
if retailer exist then go to next
elseif retailer does not exist then create
end if
logout
here i want to import the excel and want to take no of iterations like for
i=1 to rowcount in this case where i have to place "next".also i want to create a excel function for importdata and export results so that i can use it for all tests

thanks
Reply
#2
Not Solved
It is all dependent on your Excel Content.

I am hoping the Excel sheet contains "Retailer" information in your case, you have to follow below approach.
Code:
Datatable.Importsheet "C:\Documents and Settings\Desktop\Excel testdata\Create.xls",1,"Results"
Datatable.getSheet("Results")
RowCount=DataTable.getrowcount

launch browser
login
for i=1 to RowCount
Datatable.setCurrentRow(i)
Now write your logic to create retailer etcc...
next
Regards,
Uday
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Export data shayk1985 3 3,227 05-18-2013, 09:40 AM
Last Post: venugqtp
  export function is not working diya 1 2,425 12-18-2012, 11:07 AM
Last Post: Ankesh
  Export verification QAVA 1 2,649 11-05-2012, 10:25 AM
Last Post: sshukla12
  Export WebElement value to Excel sssidana 2 4,580 07-13-2012, 09:03 PM
Last Post: sssidana
  Export Results ravigudapati 1 2,400 05-14-2012, 05:01 PM
Last Post: Jyobtech

Forum Jump:


Users browsing this thread: 1 Guest(s)