当前位置:网站首页>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 .
边栏推荐
- Entity service is an anti pattern
- Go基础笔记_4_map
- QT6 with vs Code: compiling source code and basic configuration
- Salesforce zero foundation learning (116) workflow - & gt; On flow
- Heap sort summary
- 背景图和二维码合成
- 指针与数组
- Analysis of WPF multi finger application development
- 高阶产品如何提出有效解决方案?(1方法论+2案例+1清单)
- Burp's thinking from tracing to counteracting
猜你喜欢

NVIDA-TensorRT部署(一)

Nvida tensorrt deployment (I)

Multithreading & high concurrency (the latest in the whole network: interview questions + map + Notes) the interviewer is calm

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

Background image and QR code synthesis

Shardingsphere database sub database sub table introduction

Analysis of WPF multi finger application development

91. (leaflet chapter) leaflet situation plotting - offensive direction drawing

来自大佬洗礼!2022 头条首发纯手打 MySQL 高级进阶笔记, 吃透 P7 有望

多线程&高并发(全网最新:面试题 + 导图 + 笔记)面试手稳心不慌
随机推荐
[zero basis] SQL injection for PHP code audit
Remember the problem of using redisson to step on the pit once
这个月 google的“AI具备意识”的事件的想法
聊聊 Redis 是如何进行请求处理
With screen and nohup running, there is no need to worry about deep learning code anymore | exiting the terminal will not affect the operation of server program code
Notes of Teacher Li Hongyi's 2020 in-depth learning series 8
Processing PDF and JPG files in VB6
高阶产品如何提出有效解决方案?(1方法论+2案例+1清单)
必会面试题:1.浅拷贝和深拷贝_深拷贝
salesforce零基础学习(一百一十六)workflow -> flow浅谈
ES6 adds -iterator traversal, for..Of loop
Notes of Teacher Li Hongyi's 2020 in-depth learning series 2
Salesforce zero foundation learning (116) workflow - & gt; On flow
First engineering practice, or first engineering thought—— An undergraduate's perception from learning oi to learning development
2022 the most NB JVM foundation to tuning notes, thoroughly understand Alibaba P6 small case
Qt | 事件系统 QEvent
QDir类的使用 以及部分解释
HTB-Aragog
I'd like to ask if the table creation DDL of ODPs can't be directly executed in MySQL. The string type is incompatible. Can you only adjust this by yourself
Piziheng embedded: the method of making source code into lib Library under MCU Xpress IDE and its difference with IAR and MDK