当前位置:网站首页>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
边栏推荐
- 重磅:国产IDE发布,由阿里研发,完全开源!
- 我想问一下招商证券怎么开户?通过链接办理股票开户安全吗
- 【刷题篇】避免洪水泛滥
- What network security problems are exposed when a large-scale QQ number theft event occurs?
- Observable, reliable: the first shot of cloudops series Salon of cloud automation operation and maintenance
- Dart extended feature
- 数字化转型道阻且长,如何迈好关键的第一步
- What is erdma as illustrated by Coptic cartoon?
- Talk about Vue's two terminal diff algorithm, analysis of the rendering principle of the mobile terminal, and whether the database primary key must be self incremented? What scenarios do not suggest s
- Rpm2rpm packaging steps
猜你喜欢

This editor will open source soon!

Apache Doris Compaction優化百科全書

VisualStudio and SQL

一篇文章读懂关于企业IM的所有知识点

A keepalived high availability accident made me learn it again!

正则系列之断言Assertions

visualstudio 和sql

SQL attendance statistics monthly report

SQL编程问题,测试用例不通过

On the simplification and acceleration of join operation
随机推荐
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
深入理解.Net中的线程同步之构造模式(二)内核模式4.内核模式构造物的总结
华为帐号多端协同,打造美好互联生活
SQL考勤统计月报表
Paper interpretation (AGC) attributed graph clustering via adaptive graph revolution
Prometheus 2.29.0 新特性
我想问一下招商证券怎么开户?通过链接办理股票开户安全吗
Deep understanding Net (2) kernel mode 3 Kernel mode construct mutex
可观测,才可靠:云上自动化运维CloudOps系列沙龙 第一弹
Service online governance
What is erdma as illustrated by Coptic cartoon?
服务线上治理
第四批入围企业公示——年度TOP100智能网联供应商评选
Step by step | help you easily submit Google play data security form
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
[KALI] KALI系统、软件更新(附带镜像源)
This editor will open source soon!
SQL attendance statistics monthly report
Exlipse operates on multiple rows at the same time. For example, input the same text in multiple lines and columns at the same time
Embedded development: five C features that may no longer be prohibited