Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Jmeter for performance testing

Shulou Source: shulou.com Published: 2022-06-03 06:35:55 11月23日 Update

Jmeter Basic Usage

Jmeter General Testing Lightweight Interface Testing: The simple steps are as follows:

1. Download jmeter, the jmeter package under linux and window generic

http://jmeter.apache.org/download_jmeter.cgi

This file can be used without installation and direct decompression

2. Enter the jmeter placement location:

I put it on disk D:

D:\javatools\apache-jmeter-2.9\bin Enter the directory windows click bat file

3. Click Start Project

cmd.exe below will pop up, do not close

Start up the interface:

4. Create a new project:

The steps for establishing a test project are as follows:

For example, interface: mo.ali.net:8080/gens? ee=90

Path: /gens

Server name: domain name mo.ali.net/Ip:10.11.21.11

Port number: port number of the link

Parameters are: parameters required by the interface, for example, ee is the parameter above

The project was established:

5. Add timer: absolute concurrency for loadrunner 10

Add Result Tracking:

6. View results

Aggregate report: specific meaning baidu, actual scenario application

View the result tree:

Jmeter Distributed Deployment:

Multiple load machines are used.

jmeter distributed pressure measurement in use

Three loaders and one controller;

The distributed implementation is in bin/jmeter.propertites of the controller

remotehosts=101.111.23.12,101.12.12.234

Click Run, remote start, your configuration 101.111.23.12 appears on the right

101.12.12.234 multiple loaders

Click on each one to execute separately, if all start click remote all start

2. Load Machine Deployment Start

Each load machine is installed on the same jmeter of the control machine, and the jmx scripts deployed on each machine are consistent; start each load machine: enter bin/jmeter. sh or jmeter.bat

Tags: Project distributed parameter interface control test slogan multiple controller file step result run same consistent location example right name meaning Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Microsoft MySQL MariaDB Linux