Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
export function is not working
#1
Solved: 10 Years, 9 Months ago
Code:
Function Export ()
'exporting the results to an excel sheet
Datatable.ExportSheet "C:\NewSheet.xls",2
Datatable.Value (1,2)= Browser
Datatable.Value (2,2)= Login
Datatable.Value (3,2)= Location
Datatable.Value (4,2)= name
Datatable.Value (5,2)= Results
Datatable.Value (6,2)= Record
End Function

Please help as how to export the values at the end of the script as this is not happening
Reply
#2
Solved: 10 Years, 9 Months ago
Use Datatable.Export "<FileName>" at the end.

Code:
Datatable.Value (1,2)= Browser
Datatable.Value (2,2)= Login
Datatable.Value (3,2)= Location
Datatable.Value (4,2)= name
Datatable.Value (5,2)= Results
Datatable.Value (6,2)= Record
'Now export the values
Datatable.Export "C:\TestExport.xls"
Regards,
Ankesh
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Calling a function in a Test Script from a function library anupam4j 3 5,905 06-26-2015, 12:31 AM
Last Post: babu123
  Export data shayk1985 3 3,102 05-18-2013, 09:40 AM
Last Post: venugqtp
  Importdata and Export results shayk1985 1 2,160 12-17-2012, 12:26 PM
Last Post: udayanem
  Export verification QAVA 1 2,474 11-05-2012, 10:25 AM
Last Post: sshukla12
  Export WebElement value to Excel sssidana 2 4,446 07-13-2012, 09:03 PM
Last Post: sssidana

Forum Jump:


Users browsing this thread: 1 Guest(s)