当前位置:网站首页>Only by learning these JMeter plug-ins can we design complex performance test scenarios
Only by learning these JMeter plug-ins can we design complex performance test scenarios
2022-07-24 23:36:00 【Code classmate software test】
Why use jmeter What about thread group plug-ins ?
jmeter The built-in thread group plug-in simulates very limited pressure testing scenarios , When it is necessary to simulate complex pressure measurement scenarios , I recommend you to use jmeter Thread group plug-in .
How to download jmeter What about thread group plug-ins ?
Early versions of jmeter We can expand the functions we need , Directly provide the download address to download ,
But the latest jmeter Version no longer supports downloading plug-in packages directly , Instead, , We need to download a download Plug-in management tool to help us download plug-ins .
The download address of the plug-in management tool's official website is as follows ,
ttps://jmeter-plugins.org/downloads/all/

Click on “plugins-manager.jar” link , Wait for plug-in management jar After downloading the package , copy to jmeter In the catalog \lib\ext Next ,
If jmeter At this time, it is in the startup state , Need to restart jmeter, By the way ,jmeter The download address of the official website is http://navo.top/yIBzqe.
stay jmeter Window , Click the menu item in turn Option Options -》Plugins Manager, In the pop-up plug-in download window JMeter Plugins Manager in ,
Select tab “Installed Plugins”,
Type in the search box “Custom Thread Groups”
Check “Custom Thread Groups”, single click 【Apply Changes and Restart JMeter】, Wait for the thread group plug-in to download and restart jmeter.

Next is how to use the thread group plug-in ? The commonly used thread group plug-ins are Ultimate Thread Group Plug ins and Custom Thread Groups plug-in unit . The two thread group plug-ins are introduced below .
01
Ultimate Thread Group plug-in unit
How to open Ultimate Thread Group plug-in unit ? stay jmeter Window , Click the menu item in turn : test plan -> Right click -> add to ->

Thread group ->[email protected] - Ultimate Thread Group, This opens Ultimate Thread Group plug-in unit .
The meanings of the columns in the following thread group execution schedule are as follows :
Start Threads Count: The total number of threads started by the current line
Initial Delay/sec: Delay starting the thread of the current line , Company : second
Startup Time/sec: The time required to start all threads of the current line to peak , Company : second

Hold Load For/sec: The stable load time after the current row thread reaches its peak , Company : second Shutdown Time: Time required to stop all threads in the current line , Company : second
Use Ultimate Thread Group It can simulate simple concurrent scenarios 、2^n Step scene 、 Surge scenario 、 Jagged scene **. The following describes how to set these scenarios .
(1) Simple concurrent scenario settings
single click 【Add Row】, stay Start Threads Counts Column settings 100 Concurrent , Slow pressurization Startup Time The column value is 30sec complete , Keep running Hold Load For The column value is 60 second , Slow and reduce pressure Shutdown The column value is 10sec complete .

(2) Surge scene settings **
Surge scene setting features :
The first 1 Secondary load 100 Concurrent , load 30sec, The relief 10sec, continued 60sec;
The first 2 Secondary load 200 Concurrent , Delay 100sec(=30sec+10sec+60sec), load 30sec, The relief 10sec, continued 60sec; The first 3 Secondary load 100 Concurrent , Delay 200sec(=100sec+100sec), load 30sec, The relief 10sec, continued 60sec;
Load for the fourth time 200 Concurrent , Delay 300sec(=200sec+100sec), load 30sec, The relief 10sec, continued 60sec


Simulate a period of high pressure for a period of time , After a period of higher pressure , The pressure drops slightly. This kind of business system pressure like the waves .
02
Custom Thread Groups plug-in unit
How to open Custom Thread Groups plug-in unit ? stay jmeter Window , Click the menu item in turn : test plan -》 add to -》 Thread group ( user )-》[email protected] - Stepping Thread Group, This opens Custom Thread Groups plug-in unit .

The following thread group execution plan parameters , As shown below , The meaning of each parameter is :
this group will start * threads**: How many threads are loaded ,100,
First,wait for: How long to wait to start loading threads ( How many seconds does the first thread delay to start loading ),0, Then start * threads**: How many threads are loaded for the first time ,0,
Next,add * threads every * seconds : How many threads to load next time ,10, How long does the current run take to load the thread again ,
using ramp-up: Load thread time ,5 second , in other words 10 Thread in 5 Load in seconds Then hold load for: How long does the thread run after it is fully loaded ,60 second ,
Finally,stop * threads every … seconds**: How long to stop how many threads , Every time 1 Seconds to stop 5 Threads .

Custom Thread Groups Plug ins are often used to simulate load test scenarios .
边栏推荐
- First engineering practice, or first engineering thought—— An undergraduate's perception from learning oi to learning development
- Mandatory interview questions: 1. shallow copy and deep copy_ Deep copy
- Notes of Teacher Li Hongyi's 2020 in-depth learning series 4
- Collection of common online testing tools
- 指针与数组
- 【零基础】php代码审计之sql注入
- Piziheng embedded: the method of making source code into lib Library under MCU Xpress IDE and its difference with IAR and MDK
- Install Kaspersky 2018 under win server 2012 R2
- Nvida tensorrt deployment (I)
- Can Baidu network disk yundetectservice.exe be disabled and closed
猜你喜欢

Nvida tensorrt deployment (I)

多线程&高并发(全网最新:面试题 + 导图 + 笔记)面试手稳心不慌

Background image and QR code synthesis

JUC concurrent programming - Advanced 05 - lock free of shared model (CAS | atomic integer | atomic reference | atomic array | field updater | atomic accumulator | unsafe class)

Read and understand the advantages of the LAAS scheme of elephant swap

NVIDA-TensorRT部署(一)

Piziheng embedded: the method of making source code into lib Library under MCU Xpress IDE and its difference with IAR and MDK

Introduction to HLS programming

See project code Note 1

Value driven provides the core driving force for the transformation of commercial BP - BP realization under business scenarios - Commercial BP sharing
随机推荐
Go basic notes_ 4_ map
理财产品可以达到百分之6的,我想要开户买理财产品
Notes of Teacher Li Hongyi's 2020 in-depth learning series 3
Processing PDF and JPG files in VB6
Shell echo command
First engineering practice, or first engineering thought—— An undergraduate's perception from learning oi to learning development
Where are MySQL version numbers 6 and 7?
芯片的功耗
Routing policy in republishing
Heap sort summary
多线程&高并发(全网最新:面试题 + 导图 + 笔记)面试手稳心不慌
QT6 with vs Code: compiling source code and basic configuration
[zero basis] SQL injection for PHP code audit
用VS Code搞Qt6:编译源代码与基本配置
LP liquidity pledge mining system development detailed procedure
Add a little surprise to life and be a prototype designer of creative life -- sharing with X contestants in the programming challenge
新手哪个证券开户最好 开户最安全
谢振东:公共交通行业数字化转型升级的探索与实践
Let‘s Encrypt
Introduction to HLS programming