Study Notes: Jmeter Performance Test-Quick Start

Featured blogs:

1 Overview

JMeter is an open source Java application. It is a project of the Apache Software Foundation. Its full name is Apache JMeter. JMeter is mainly used for performance testing and load testing. It can simulate a large number of users accessing a network application at the same time to evaluate the performance and stability of the application.

Official website: Apache JMeter - Apache JMeter™

image-20230730201708473

2. Installation and startup

premise:

Jmeter depends on JDK, so you must ensure that JDK is installed on the current computer and environment variables are configured.

Step 1: Download

illustrate:

​ Download link: Apache JMeter - Download Apache JMeter

  • Download arrow pointing to zipfile

image-20230730201834857

Step 2: Unzip

  • Enter bindirectory

image-20230730201938981

illustrate:

The bin directory usually stores core files, including startup scripts

Step 3: Start

  • Double click jmeter.batthe file

image-20230730202132826

illustrate:

The startup speed is relatively slow, please wait patiently.

Notice:

​ The black window cannot be closed after startup, otherwise Jmeter will also be closed.

Description: View results

image-20230730202327948

3.Set Chinese language

Step 1: Set optionoptions

The default Jmeter language is English, which needs to be set:

image-20210715193838719

Notice:

The above configuration can only ensure that this run is in Chinese. If you want permanent Chinese, you need to modify the Jmeter configuration file.

Step 2: Modify jmeterthe configuration file

  • Open the jmeter folder, find jmeter.properties in the bin directory , and add the following configuration:
language=zh_CN

Description: result

image-20210715194137982

Notice:

Do not use # in front of it, # represents a comment, and it is an underline, not a dash.

4.General usePlease add image description

Step 1: Add thread group

image-20230730202649063

illustrate:

​ Right-click the test plan and select Add > Thread (User) > Thread Group

Step 2: Add thread group information

image-20210715195053807

illustrate:

​ In the newly added thread group, fill in the thread information

Step 3: Add Httprequest sampler

image-20230730202829482

illustrate:

​ Right-click the thread group and add http sampler

Step 4: Add sampler information

image-20210715195410764

illustrate:

​ The sampler clearly sends the request protocol, IP, port, path and other information

Step 5: Add monitoring report

image-20230730202934220

illustrate:

In the monitoring report, it is convenient to view the request duration and exception information after the request is executed.

Replenish:

  • Monitoring report results

image-20210715200243194

Step 6: Add monitoring result tree

image-20230730203221545

illustrate:

​ In the result number, it is convenient to view the request response and other information after the request is executed.

Replenish:

  • Results report
    Insert image description here

Guess you like

Origin blog.csdn.net/D_boj/article/details/132011181