当前位置:网站首页>JMeter transaction controller
JMeter transaction controller
2022-06-30 14:02:00 【Full stack programmer webmaster】
What is business ?
We will pay attention to the statistics of performance test results TPS, TPS Represents the number of transactions per second , Each transaction corresponds to our request . although Jmeter It can help us count each request into a transaction , But sometimes we want multiple operations to be counted as one transaction ,Jmeter Also taking into account this need , We can do this through the transaction controller in the logic controller .
Logic controller
Logic controller , As the name suggests, it is the logic of the control program ,JMeter There are many kinds of logic controllers , Like a loop controller 、 Random controller, etc . Combined with examples, what we need is the definition of transactions , So choose the transaction controller .
Transaction controller
As shown in the figure below , Let's add a transaction controller first
The transaction controller is a component located below the logic controller component , Let's take a look at the parameter description in the figure below :
- name : It can be set at will , It's better to have business sense .
- notes : It can be set at will , Can be null .
- Generate parent sample: If there are multiple samplers under the transaction controller ( request ), Check it , So in “ View the result tree ” We can not only see the transaction controller , You can also see each sampler ; And whether the transaction defined by the transaction controller is successful depends on whether the sub transactions are successful , One of the sub transactions failed , This means that the entire transaction has failed .
Here's the picture , We deliberately let Logon Sub transaction failed ( Here I deliberately enter the wrong login password , Then assert that the response status code is 200), We can see that the whole transaction failed .
The following figure , It means that the whole transaction is successful .
JMeter Marshal Point
The performance test needs to simulate a large number of users' concurrency , The aggregation point can make virtual users send requests at the same time , stay JMeter Middle set point is completed by timer .
Timer
JMeter The timer is used to control the execution time of the sampler , There are fixed timers 、 Random timer . Back to example , Here we choose the synchronous timer to control .
Synchro timer
As shown in the figure below , The synchronous timer is used to ensure that our sampler sends load to the server at the same time , Considering the speed of thread running time and the needs of the scenario , It also provides settings for the number of synchronization threads .
The parameters are described as follows :
- name : It can be set at will , It's better to have business sense .
- notes : It can be set at will , Can be null .
- Set the number of synchronization threads , When we run the test , The running time of each thread may be different , It may take a long time to get everything together , In this case, we can let some of the assembled threads run first . Other scenarios are different, waiting for all threads to be assembled , Only some threads need to ensure synchronization , Set this option based on these requirements .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/100675.html Link to the original text :https://javaforall.cn
边栏推荐
- A keepalived high availability accident made me learn it again!
- 60 divine vs Code plug-ins!!
- [observation] as the intelligent industry accelerates, why should AI computing power take the lead?
- Rpm2rpm packaging steps
- [deep anatomy of C language] storage principle of float variable in memory & comparison between pointer variable and "zero value"
- 我如何才能保护我的私钥?
- In the digital age, XDR (extended detection and response) has unlimited possibilities
- 数字时代,XDR(扩展检测与响应)的无限可能
- MySQL如何将列合并?
- mysql拒绝访问、管理员身份打开的
猜你喜欢

How to handle ZABBIX server startup failure

Basic syntax of unity script (1) - common operations of game objects

Google Earth Engine(GEE)——将字符串的转化为数字并且应用于时间搜索( ee.Date.fromYMD)

深入理解.Net中的线程同步之构造模式(二)内核模式2.内核模式构造物Semaphone

Deep understanding Net (2) kernel mode 4 Summary of kernel pattern constructs

一条查询SQL是如何执行的

Google Earth Engine(GEE)——GHSL:全球人类住区层,建成网格 1975-1990-2000-2015 (P2016) 数据集

Today's sleep quality record 80 points

可觀測,才可靠:雲上自動化運維CloudOps系列沙龍 第一彈

Embedded development: five C features that may no longer be prohibited
随机推荐
逆向调试入门-PE中的VA与RVA换算04/07
想請教一下,我在佛山,到哪裏開戶比較好?手機開戶是安全麼?
Inexplicable error occurred in unity's frequent switching branch result model
How can c write an SQL parser
This editor will open source soon!
With the development of industrial Internet, the landing and application of the Internet has become wider
Simple understanding of the difference between get request and post submission
There is no utf8 option for creating tables in Navicat database.
Mqtt ROS simulates publishing a custom message type
单元测试效率优化:为什么要对程序进行测试?测试有什么好处?
More than 20 years after Hong Kong's return, Tupu digital twin Hong Kong Zhuhai Macao Bridge has shocked
数据库表为什么写不进数据了
Je suis à Foshan, où puis - je ouvrir un compte? L'ouverture d'un compte par téléphone mobile est - elle sécurisée?
想请教一下,我在佛山,到哪里开户比较好?手机开户是安全么?
随着产业互联网的发展,有关互联网的落地和应用也就变得宽阔了起来
“即服务”,企业数字化转型的必然选择
Intelligent operation and maintenance: visual management system based on BIM Technology
DeFi“钱从哪来”?一个大多数人都没搞清楚的问题
Introduction to reverse commissioning - VA and RVA conversion in PE 04/07
[observation] as the intelligent industry accelerates, why should AI computing power take the lead?