How does jmeter test a get request

Use jmeter to test an http get request example.

1. Configure the test plan

1.1. Create a thread group

打开jmeter - 测试计划右键 - 添加 - 线程(用户) - 线程组
insert image description here

Configure the basic parameters of the thread group (mainly 3)

insert image description here

1.2. Create HTTP request sampler for GET (simulate GET request)

线程组右键 - 添加 - 取样器 - HTTP请求
insert image description here

Supplementary parameters related to GET request

insert image description here

1.3. Add View Result Tree and Aggregate Report

线程组右键 - 添加 - 监听器 - 查看结果树/聚合报告

insert image description here

After adding a test model as shown below:

insert image description here

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.

线程组右键 - 验证
insert image description here

View verification results

insert image description here

2.2. Executing stress tests

线程组右键 - 启动

insert image description here

Wait until the run is finished to view the aggregated report

insert image description here

Guess you like

Origin blog.csdn.net/csdn_avatar_2019/article/details/130614608
Recommended