【发布时间】:2014-03-11 21:41:02
【问题描述】:
在我的代码下方连接 Mysql 数据库,但是当我运行代码时,它显示“FAIL : NoSectionError: No section: 'default'”。我想知道如何从 Robot 框架连接 Mysql。我已经安装了数据库库,它的代码很好但有问题。
*** Setting ***
Library Selenium2Library
Library DatabaseLibrary
Resource LoginRes.txt
*** Variables ***
#${PythonPath} c:\Python26
#${url} http://localhost/dt_qa/
*** Test Cases ***
DT Login
[Tags] Iteration-3 Smoke
dbConn
Connect to Database
Check if not exists in database select * from services
【问题讨论】:
标签: python mysql selenium-webdriver robotframework