Table of contents
Use jmeter to test an http get request example.
1. Configure the test plan
1.1. Create a thread group
打开jmeter - 测试计划右键 - 添加 - 线程(用户) - 线程组
Configure the basic parameters of the thread group (mainly 3)
1.2. Create HTTP request sampler for GET (simulate GET request)
线程组右键 - 添加 - 取样器 - HTTP请求
Supplementary parameters related to GET request
1.3. Add View Result Tree and Aggregate Report
线程组右键 - 添加 - 监听器 - 查看结果树/聚合报告
After adding a test model as shown below:
2. Execute pressure test and view the result
2.1. Verification interface
The stress test can only be performed after the verification is passed. In fact, it is to send a request to try, and the result can be viewed under the View Results Tree menu.
线程组右键 - 验证
View verification results
2.2. Executing stress tests
线程组右键 - 启动
Wait until the run is finished to view the aggregated report