Excel 我们如何使用熊猫机器人框架
使用“机器人框架”和“熊猫”,我需要读取excel文件Excel 我们如何使用熊猫机器人框架,excel,pandas,automated-tests,robotframework,Excel,Pandas,Automated Tests,Robotframework,使用“机器人框架”和“熊猫”,我需要读取excel文件 我已经使用“pip安装熊猫”在我的项目中安装了熊猫,熊猫在我的项目路径“…venv\Lib\site packages\pandas”中可见 现在,我不知道如何将Pandas库引用到test.robot文件中 以下是我的代码: *** Settings *** Library SeleniumLibrary Library BuiltIn Library DatabaseLibrary Library Exc
*** Settings ***
Library SeleniumLibrary
Library BuiltIn
Library DatabaseLibrary
Library ExcelLibrary
Library pandas
Library numpy
*** Variables ***
${resetSurveyURL} https://my-domain/resettestids.aspx
${SurveyURL} https://my-domain/Default.aspx?sid=100
${BROWSER} Chrome
#${num1} 4
#${num2} 4
*** Keywords ***
AccessSurvey
Open Browser ${SurveyURL} ${BROWSER}
maximize browser window
PerformAdditionOperation
${a}= evaluate ${num1}+${num2}
log to console ${a}
ReadTestCaseFromExcelFile
pandas.read_excel()
如果要从excel文件中读取测试用例以执行数据驱动测试, 您应该看看robotframework数据驱动程序 这是一个使用pandas从excel数据创建测试用例的库 如果这不是您想要的: 熊猫不是用来作为机器人图书馆的。 您应该创建一个使用熊猫的小型库