I have an issue with my ExcelLibrary proof of concept. When I try to save some data into new Excel file it returns an error UnboundLocalError: local variable 'my_sheet_index' referenced before assignment on Put Number To Cell sheetname=${mySheetName} column=1 row=1 value=90
Do you know what can I do to prevent getting that please? Here is my easy test file:
*** Settings ***
Library ExcelLibrary
Library Collections
*** Variables ***
${Excel_File_Path} C:\\Python27\\ExcelRobotTest\\
${mySheetName} UserImport
*** Test Cases ***
Excel Test
Lubos Test
*** Keywords ***
Lubos Test
Create Excel Workbook newsheetname=${mySheetName}
Put Number To Cell sheetname=${mySheetName} column=1 row=1 value=90
Save Excel Current Directory filename=MyNewExcel.xls
UnboundLocalError: local variable 'my_sheet_index' referenced before assignmentbut Im now stumped with aIndexError: list index out of rangewhen adding a number... I can give you my current code if you like to get around the first error but Im still trying to get around this second issue :(