为使用DatabaseLibrary库做准备


为使用DatabaseLibrary库做准备

安装数据库驱动

pip install pymysql

安装DatabaseLibrary

pip install -U robotframework-databaselibrary

测试

*** Settings ***
Library    DatabaseLibrary    
*** Test Cases ***
case01
    Connect To Database      dbapiModuleName=pymysql  dbName=rf_db    dbUsername=root
    ...    dbPassword=123456    dbHost=localhost    dbPort=3306