I want to create an Excel file and add input data into it using Robot Framework. So I added the Excel Library. Here's the code I use, I got an error message saying
IndexError: list index out of range
So I commented the 3rd line and got the column and row count which are 0.
Create Excel Workbook NewExcelSheet
Save Excel NewExcel.xls default=True
Open Excel NewExcel.xls default=True
Put Number To Cell NewExcelSheet 1 1 90
${Col}= Get Column Count NewExcelSheet
${Row}= Get Row Count NewExcelSheet
Log ${Col}
Log ${Row}
Why am I getting 0 as values for the columns and rows and why am I not able to add values in it?
From the documentation it appears as though no function in ExcelLibrary creates an excel sheet with any rows or columns. That's why you are getting a row count and column count of 0. It's also why you are unable to change [1,1] to 90.
The raised exception (use the robot framework argument --loglevel=DEBUG) indicates that "Put Number To Cell" does not dynamically create the needed rows and columns.
I would recommend looking into a python library and creating your own excel adapter module.
For example using OpenPyXl:
make_excel.py:
make_excel.robot: