Jmeter pressure test simulation

1. Introduction

Apache JMeter is a pure Java written load functional testing and performance testing open source tools. Small and light, free.

Apache JMeter – Download Apache JMeter

[baidu network backup] (link: https://pan.baidu.com/s/1CGvzyJ64zSGEQTATf6CoYg extraction code: WSKM – share from baidu network backup super member V4)


2. Use

This simulation tests HTTP requests

2.1 installation

image-20210705124447749

The download directory is as follows:

image-20210705124702339

GUI interface:

image-20210705124744836

2.2 configuration

  1. Creating a Test plan

    image-20210705124954663
  2. Add a thread (user) group


  1. The thread is set

    image-20210705125235826
  2. Adding mock tests

    image-20210705125327865
  3. The request is set

  4. Set the request header. Generally, set content-type: application/json

    image-20210705125715756
  5. Add summary reports if you want to see test results

    image-20210705125902390
  6. Add response Assertion

    image-20210705125959825
    image-20210705130030067
  7. If you save the test configuration, you will be prompted to select a location to save it


3. Start the test

Go to the Jmeter directory, enter CMD in the file address bar, open the command line, run jmeter.bat -n -t [configuration file path in 2], and press Enter to start the test

image-20210705130403507
image-20210705130644460