robot framework 操作Excel需要安裝庫 ExcelLibrary
pip install robotframework-ExcelLibrary
將ExcelLibrary 導入到robot framework中
使用例子:
遇到問題:
FAIL : NotImplementedError: formatting_info=True not yet implemented 原因是因為 xlrd只能操作.xls格式,文件直接改后綴名會報錯,需要重新保存為.xls文件
FAIL : UnboundLocalError: local variable 'cellValue' referenced before assignment 原因是操作錯誤 使用2 無法讀取excel行列值,應使用A1、A2、B1、B2...