Jmeter download

Go to the official website: jmeter.apache.org/

1. The first step is to enter the official website as shown below

2. Download the package and decompress it.

3. I downloaded jmeter4.0, corresponding to jdk1.8. And then decompress.

2. Jmeter environment variable configuration

1.) computer desktop, “” computer” icon – “the right mouse button to select” properties “- > click advanced system Settings – > advanced – > environment variables page

2) Start to configure environment variables. In the system Variables box, click “New” and create a variable: JMETER_HOME, which is the jMeter installation path you extracted. My installation path is in disk E. The installation path is based on the actual installation path. Then click OK to save

3) Configure the classpath variable. If you do not have the classpath variable, follow the above steps to create it. If you do have the classpath variable, select it and click Edit. The variable value is fixed to: %JMETER_HOME%\lib\ext\ apacheJmeter_core.jar; %JMETER_HOME%\lib\jorphan.jar; % JMETER_HOME % \ lib/logkit – 2.0. Jar; When you’re done, save it. If you’re not sure, click ok until you’re back to my computer

4) The basic configuration is complete, and then verify whether the configuration is correct, whether it is available.

First go to your JMeter installation path, find the bin folder, click in, find jmeter.bat, right mouse to run in administrator mode, or directly double-click to open, this will pop up two interfaces: 1. The command window cannot be closed when using JMeter. You can zoom to the taskbar on your computer. 2. Another interface is the JMeter working page, where you can perform related operations. Concrete as shown in figure

5) To check whether the installation is successful, double-click jmeter.bat or run it as an administrator.

6) The working area of JMeter is as follows: Every time we use JMeter, the first way to open jmeter is to enter the bin file and double-click the jmeter.bat. If it is troublesome, we can send it to the computer desktop by right mouse shortcut, which will be much more convenient.

7. Installation is complete ~

Three, Jmeter test case practice

1, Add this test plan (right-click – > Add – >Threads (Users) – >Thread Group)

2. Set the number of threads (i.e. the number of concurrent users)

3. Add protocols and related configuration information

4. Add listeners to the thread

5. Start the test

6. Review the report

View the result tree

Aggregated report

Graphic results

At this point, the test tutorial is basically complete!