First, install
- Download JMeter, the official website Download: http://jmeter.apache.org/download_jmeter.cgi
- Requires JDK 1.8 or more: JDK1.8 Download
- Installation and Configuration Guide: Reference here
- Start Jmeter, click bin \ jmeter.bat file started, start a good interface is as follows:
Second, Components Introduction
- Pre Processors preprocessor: modification request, the scripting language is JS
JS223 Preprocessor - test before the request is issued, the need to dynamically generate some data or make some changes, enhanced configuration, use the processor. The core is to use js code to call Jmeter built-in function to increase the test, to achieve some of the customized tests. - Post Processors postprocessor: modification response
CSS / Jquery Extractor - in response to pull data from the inside, only for html page
JSON Extractor - the data from the pull out json
Third, create an instance
1. 快捷键
ctrl+0 创建一个thread group
ctrl+1 创建一个http request
ctrl+9 创建一个view results tree
ctrl+s 保存
ctrl+e 清除测试结果
ctrl+r 运行
ctrl+t 注释
2. 创建实例
详见:https://blog.csdn.net/u011541946/article/details/71037251
线程组界面介绍:
http请求界面:
查看结果: