开源性能测试工具Jmeter使用介绍
目录 .............................................................................................................................. 1
一、Jmeter简介: .............................................................................................................. 3
1、Jmeter体系结构 ........................................................................................................ 3
1.1、元件..................................................................................................................... 3
1.2、组件..................................................................................................................... 3
1.3、Jmeter体系结构图 ............................................................................................. 3
2、Jmeter测试计划要素 ................................................................................................ 5
2.1、测试计划只能有一个 .......................................................................................... 5
2.2、测试计划至少有一个线程组 .............................................................................. 5
2.3、至少有一个取样器.............................................................................................. 5
2.4、至少一个监听器 ................................................................................................. 5
3、Jmeter环境介绍 ........................................................................................................ 6
3.1、Java安装(java7以上最好) .......................................................................... 6
3.2、下载Jmeter ........................................................................................................ 6
二、Jmeter脚本开发 .......................................................................................................... 6
1、脚本录制 .................................................................................................................... 6
2、脚本调试 .................................................................................................................... 9
2.1、Jmeter关联 ........................................................................................................ 9
2.2、Jmeter参数化 .................................................................................................. 11
2.3、Jmeter检查点 .................................................................................................. 13
2.4、Jmeter事务 ...................................................................................................... 14
2.5、Jmeter集合点 .................................................................................................. 15
2.6、Jmeter元件运行顺序 ....................................................................................... 15
2.7、Jmeter连接数据库—JDBC ............................................................................... 15
三、Jmeter场景 ................................................................................................................ 16
1、场景设计 .................................................................................................................. 16
1.1、基本组成 ........................................................................................................... 16
1.2、场景时间设计 ................................................................................................... 17
1.3、场景实现LR中的init,Action,End部分 ................................................... 18
2、场景运行方式 ........................................................................................................... 18
2.1、非GUI方式(GUI省略) ................................................................................. 18
2.2、小工具运行 ....................................................................................................... 20
2.3、jmeter参数 ...................................................................................................... 20
3、Jmeter结果 .............................................................................................................. 21
3.1、响应结果监听和报告 ........................................................................................ 21
3.2、服务器监控 ....................................................................................................... 24
四、ToolsForJmeter ......................................................................................................... 25
1、IP替换.................................................................................................................. 25
2、DBID替换 ................................................................................................................. 26
3、一键关联 .................................................................................................................. 26
4、场景运行 .................................................................................................................. 28
开源性能测试工具Jmeter使用介绍
本文2024-09-23 04:25:34发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-165225.html