i am using axlsx for the first time and not sure what its capabilities are. I am trying to write my watir results to an excel sheet.I found axlsx to be interesting so i'm trying to use it. I am stuck at a point and not able to move forward.I hope i get help from here,
My scenario is i need a heading for each column in my excel sheet and from the 2nd row my results keep appending in a new row everytime, i have tried the below code so far,
p = Axlsx::Package.new
p.workbook.add_worksheet(:name => "firefox") do |sheet|
sheet.add_row ["url", "projectname", "scenarioname","value","execution time"],:b=>true
sheet.add_row ["#{$url}","#{dirname}","#{scenario_name}","Pass","#{Time.now}"]
end
p.serialize('../../Results'+day+'.xlsx')
Thanks in advance.