机器人框架硒数据库库

时间:2019-12-06 22:18:20

标签: mysql database selenium robotframework

我想将.Robot-Testcase连接到我的MySQL数据库,但是当我开始测试时,我的数据库连接不起作用,我什至没有收到错误消息,只是失败了。

依赖性:

<dependency>
            <groupId>com.github.hi-fi</groupId>
            <artifactId>robotframework-dblibrary</artifactId>
            <version>3.1.3</version>
</dependency>

            <groupId>com.github.hi-fi</groupId>
            <artifactId>robotframework-seleniumlibrary</artifactId>
            <version>3.7.1.2</version>
            <scope>test</scope>
</dependency>

代码:

Library             SeleniumLibrary
Library             DatabaseLibrary
.
.
.
${DB_Connection}    Connect To Database     pymysql    world   root     ABCDE   127.0.0.1:3310

我在phyton文件夹中安装了pymysql,但没有任何效果。

通常在错误消息出现的地方,我只是得到一个'pymysql'...仅此而已。

如果您有任何建议,我将非常感谢。

0 个答案:

没有答案