步骤:
- 将PostgreSQL的驱动放在JMeter lib 目录下
- 创建线程组创建线程组
- 配置元件中配置JDBC Connection Configuration
- sampler中添加JDBC Request
- 添加一个图形结果
- 执行
JDBC Connection Configuration的配置
| Databases URL | jdbc:postgresql://IP:Port/Databases |
|---|---|
| JDBC Driver class | org.postgresql.Driver |
JDBC Request
结果
详细说明:https://www.cnblogs.com/abcd19880817/p/7210047.html