网站首页 > 开源技术 正文
使用RF框架做mysql数据库的测试,首先要安装下面两个库:
1.pip install robotframework-databaselibrary
2.pip install PyMySQL
然后开始编写case脚本
*** Settings *** Library DatabaseLibrary *** Test Cases *** mysql Connect To Database Using Custom Params pymysql database='jmeter', user='root', password='123456', host='127.0.0.1', port=3306,charset='utf8' ${b} Query select tps from jmeter01 where time<218 ${c} Row Count select tps from jmeter01 where time<218 ${d} Evaluate random.randint(0, ${c}-1) random log ${b[${d}][0]}
运行下,看结果:
猜你喜欢
- 2024-09-16 Robot Framework实现多平台自动化测试框架搭建
- 2024-09-16 RobotFramework环境配置:项目预置条件配置
- 2024-09-16 robotframework-appiumLibrary 应用 - 实现 app 自动化
- 2024-09-16 RobotFramework+Pycharm2021都不会装?来,我教你
- 2024-09-16 Robot framework(RF)数据驱动之Template模板
- 2024-09-16 Robotframework-RED-oracle数据库的自动化测试
- 2024-09-16 RobotFramework之使用DatabaseLibrary库操作mysql数据库(十一)
- 2024-09-16 Robot Framework环境搭建技巧之Python2.7
- 2024-09-16 RobotFramework 4.0 自动化测试系列教程 (一) 环境搭建
- 2024-09-16 Robot Framework实战演练之框架的选择
你 发表评论:
欢迎- 最近发表
- 标签列表
-
- jdk (81)
- putty (66)
- rufus (78)
- 内网穿透 (89)
- okhttp (70)
- powertoys (74)
- windowsterminal (81)
- netcat (65)
- ghostscript (65)
- veracrypt (65)
- asp.netcore (70)
- wrk (67)
- aspose.words (80)
- itk (80)
- ajaxfileupload.js (66)
- sqlhelper (67)
- express.js (67)
- phpmailer (67)
- xjar (70)
- redisclient (78)
- wakeonlan (66)
- tinygo (85)
- startbbs (72)
- webftp (82)
- vsvim (79)
本文暂时没有评论,来添加一个吧(●'◡'●)