使用jmeter创建MySQL数据库测试

今天看到了这个http://www.testtao.cn/?p=1838使用jmeter创建数据库测试的文章就试了一下,为加深印象记录一下,中间遇到了两个问题也都解决了

步骤:

1.intellij idea连接数据库

2.打开jmeter,测试计划->浏览->添加驱动


3.添加线程组

4.添加配置元件JDBC Connection Configuration


5.设置参数


其中: Database URL后添加?serverTimezone=GMT%2B8是为了解决

出现The server time zone value 异常

Cannot create PoolableConnectionFactory (The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.)

 JDBC Driver class填写com.mysql.jdbc.Driver是为了解决JMeter 连接mysql时运行报“Cannot load JDBC driver class 'org.git.mm.mysql.Driver'

6.添加JDBC Request


填写查询语句,添加断言及监视器即可运行查看结果

参考:https://blog.csdn.net/u013258415/article/details/77005951

https://www.cnblogs.com/jilu1219/p/6661790.html

猜你喜欢

转载自blog.csdn.net/weixin_40704964/article/details/80737094