当前位置:网站首页>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 .
边栏推荐
- 理财产品可以达到百分之6的,我想要开户买理财产品
- Read and understand the advantages of the LAAS scheme of elephant swap
- Use of serial queues
- How to put long links into Excel
- .net redis client newlife.redis.core library usage
- Notes of Teacher Li Hongyi's 2020 in-depth learning series 4
- How to speculate on the Internet? Is it safe to speculate on mobile phones
- Remember the problem of using redisson to step on the pit once
- JS ------ Chapter 5 functions and events
- Shell echo command
猜你喜欢

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

JS ------ Chapter 3 JS cycle

Video chat source code - one-to-one live broadcast system source code

ShardingSphere-数据库分库分表简介

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

Implementation of cat and dog data set classification experiment based on tensorflow and keras convolutional neural network

How painful is it to write unit tests? Can you do it

Development direction and problems of optaplanner

Talk about how redis handles requests

Go基础笔记_4_map
随机推荐
Collection of common online testing tools
痞子衡嵌入式:MCUXpresso IDE下将源码制作成Lib库方法及其与IAR,MDK差异
Processing PDF and JPG files in VB6
Xiezhendong: Exploration and practice of digital transformation and upgrading of public transport industry
NVIDA-TensorRT部署(一)
理财产品可以达到百分之6的,我想要开户买理财产品
云计算三类巨头:IaaS、PaaS、SaaS,分别是什么意思,应用场景是什么?
Network Security Learning (I) virtual machine
Add a little surprise to life and be a prototype designer of creative life -- sharing with X contestants in the programming challenge
2022 the most NB JVM foundation to tuning notes, thoroughly understand Alibaba P6 small case
【零基础】php代码审计之sql注入
Shardingsphere database sub database sub table introduction
Analysis of WPF multi finger application development
国信证券手机开户安全吗
P3201 [hnoi2009] dream pudding heuristic merge
Qt | 事件系统 QEvent
Can Baidu network disk yundetectservice.exe be disabled and closed
Convert a string to an integer and don't double it
解决JSP无法使用session.getAttribute()
JUC concurrent programming - Advanced 05 - lock free of shared model (CAS | atomic integer | atomic reference | atomic array | field updater | atomic accumulator | unsafe class)