当前位置:网站首页>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
边栏推荐
- 【科学文献计量】外文文献及中文文献关键词的挖掘与可视化
- 提权扫描工具
- 【 scientific literature measurement 】 mining and visualization of keywords in foreign and Chinese Literature
- Publicity of the fourth batch of shortlisted Enterprises - annual Top100 smart Internet supplier selection
- IM即时通讯应用开发中无法解决的“顽疾”
- 一条查询SQL是如何执行的
- Today's sleep quality record 80 points
- Introduction to two types of rxjs observable operators
- Jetpack Compose 实现完美屏幕适配
- 表格储存中sql查询的时候,查询结果增加主键报错,查询结果超过10w行。需要对主键增加上多元索引吗?
猜你喜欢

【刷题篇】供暖器

Rpm2rpm packaging steps

Assertions of regular series

visualstudio 和sql

单元测试效率优化:为什么要对程序进行测试?测试有什么好处?

半导体动态杂谈

Today's sleep quality record 80 points

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

智慧运维:基于 BIM 技术的可视化管理系统

This article explains the concepts of typed array, arraybuffer, typedarray, DataView, etc
随机推荐
Simple understanding of the difference between get request and post submission
可觀測,才可靠:雲上自動化運維CloudOps系列沙龍 第一彈
Click the TD cell of table to open the dialog pop-up window. After obtaining the value, put the value back into the TD cell
mysql拒绝访问、管理员身份打开的
Dart 扩展特性
[Title brushing] coco, who likes bananas
Unity 频繁切换分支 结果模型出现莫名其妙的错误
逆向调试入门-PE中的VA与RVA换算04/07
Write, append, read, and copy of golang files: examples of using bufio packages
Prometheus 2.29.0 新特性
【系统分析师之路】第五章 复盘软件工程(敏捷开发)
我想问一下招商证券怎么开户?通过链接办理股票开户安全吗
DNS resolution home network access public DNS practice
SQL attendance statistics monthly report
[scientific research data processing] [basic] category variable frequency analysis chart, numerical variable distribution chart and normality test (including lognormal)
Dart extended feature
DeFi“钱从哪来”?一个大多数人都没搞清楚的问题
STM32 porting the fish component of RT thread Standard Edition
嵌入式开发:5个可能不再被禁止的C特征
Mqtt ROS simulates publishing a custom message type