当前位置:网站首页>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 .
边栏推荐
- 老杜Servlet-JSP
- Code coverage
- In pgplsql: = and=
- Excel文件处理工具类(基于EasyExcel)
- Okaleido tiger NFT is about to log in to binance NFT platform, and the future market continues to be optimistic
- Power consumption of chip
- Digital stopwatch based on Verilog HDL
- Yaml writing rules and comparison between yaml and JSON
- BGP related knowledge points
- Salesforce zero foundation learning (116) workflow - & gt; On flow
猜你喜欢

Coding builds an image, inherits the self built basic image, and reports an error unauthorized: invalid credential Please confirm that you have entered the correct user name and password.

Notes of Teacher Li Hongyi's 2020 in-depth learning series 7

Go basic notes_ 4_ map

Horizontally centered element

用VS Code搞Qt6:编译源代码与基本配置

Network Security Learning (IV) user and group management, NTFS

JDBC 驱动升级到 Version 8.0.28 连接 MySQL 的踩坑记录

From the big guy baptism! 2022 headline first hand play MySQL advanced notes, and it is expected to penetrate P7

Network Security Learning (II) IP address

认识复杂度和简单排序运算
随机推荐
LP liquidity pledge mining system development detailed procedure
91. (leaflet chapter) leaflet situation plotting - offensive direction drawing
Value driven provides the core driving force for the transformation of commercial BP - BP realization under business scenarios - Commercial BP sharing
MATLAB basic grammar (II)
Use and partial explanation of QDIR class
背景图和二维码合成
[brother hero July training] day 20: search Binary Tree
Video chat source code - one-to-one live broadcast system source code
HLS编程入门
Network Security Learning (V) DHCP
基于TensorFlow和Keras的卷积神经网络实现猫狗数据集分类实验
凸优化基础知识
Is the income of CICC securities' new financial products 6%? I want to open an account and manage money
Upgrade the jdbc driver to version 8.0.28 and connect to the pit record of MySQL
Js----- Chapter 4 array
指针与数组
Add a little surprise to life and be a prototype designer of creative life -- sharing with X contestants in the programming challenge
How painful is it to write unit tests? Can you do it
Pointrender parsing
JS ------ Chapter II JS logic control