当前位置:网站首页>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
边栏推荐
- 编程实战赛来啦!B站周边、高级会员等好礼送你啦!
- SQL考勤统计月报表
- 科普达人丨漫画图解什么是eRDMA?
- 深入理解.Net中的线程同步之构造模式(二)内核模式4.内核模式构造物的总结
- [recruitment (Guangzhou)] Chenggong Yi (Guangzhou) Net core middle and Senior Development Engineer
- 【 scientific literature measurement 】 mining and visualization of keywords in foreign and Chinese Literature
- Numpy creates an empty array data = np empty(shape=[1, 64,64,3])
- Knowledge dissemination cannot replace professional learning!
- PG Basics - logical structure management (table inheritance, partition table)
- How to execute a query SQL
猜你喜欢
【科学文献计量】外文文献及中文文献关键词的挖掘与可视化
Optimization of unit test efficiency: why test programs? What are the benefits of testing?
Apache Doris Compaction優化百科全書
60 divine vs Code plug-ins!!
用Unity实现Flat Shading
Heavyweight: the domestic ide was released, developed by Alibaba, and is completely open source!
Deep understanding Net (2) kernel mode 4 Summary of kernel pattern constructs
损失函数:DIOU loss手写实现
This article explains the concepts of typed array, arraybuffer, typedarray, DataView, etc
mysql拒绝访问、管理员身份打开的
随机推荐
mysql拒绝访问、管理员身份打开的
用Unity实现Flat Shading
"As a service", the inevitable choice of enterprise digital transformation
防火墙基础之总部双机热备与分支基础配置
优思学院:六西格玛不只是统计!
Embedded development: five C features that may no longer be prohibited
[Title brushing] coco, who likes bananas
[observation] as the intelligent industry accelerates, why should AI computing power take the lead?
一条查询SQL是如何执行的
【 scientific literature measurement 】 mining and visualization of keywords in foreign and Chinese Literature
Yousi College: Six Sigma is not just statistics!
STM32 porting the fish component of RT thread Standard Edition
损失函数:DIOU loss手写实现
腾讯二面:@Bean 与 @Component 用在同一个类上,会怎么样?
When SQL queries are performed in table storage, an error is reported when the primary key is added to the query result, and the query result exceeds 10W rows. Do you want to add multiple indexes to t
Golang template (text/template)
可观测,才可靠:云上自动化运维CloudOps系列沙龙 第一弹
逆向调试入门-PE中的VA与RVA换算04/07
How does MySQL merge columns?
第四批入围企业公示——年度TOP100智能网联供应商评选