Jmeter-Transaction Controller事务控制器介绍

JMeter的Transaction Controller是一种用于聚合多个采样器响应时间的工具。它会生成一个额外的取样器,将包含的所有单元(如HTTP采样器)的时间一并计算。事务控制器有两种工作模式:一种是在所有子样本之后添加额外样本,另一种是作为子样本的父级添加。生成的样本时间包括所有子样本和定时器的时间,但可能因系统时钟精度而略有不同。只有当所有子样本成功时,事务控制器才会认为整个事务成功。在以父级模式下,子样本在Tree View Listener中可见,但在CSV日志文件中不会单独显示,但可以通过XML文件保存。

事务控制器会产生一个额外的取样器(sampler),用来计算衡量它所包含的所有单元(比如包含2个http采样器)。

注意的是,并不只是可以包含采样器,可以包含所有的可以处理的单元。  使用事务器的具体教程,请猛击这里

For JMeter versions after 2.3, there are two modes of operation

additional sample is added after the nested samples

additional sample is added as a parent of the nested samples

The generated sample time includes all the times for the nested samplers, and any timers etc. Depending on the clock resolution, it may be slightly longer than the sum of the individual samplers plus timers. The clock might tick after the controller recorded the start time but before the first sample starts. Similarly at the end.

The generated sample is only regarded as successful if all its sub-samples are successful.

In parent mode, the individual samples can still be seen in the Tree View Listener, but no longer appear as separate entries in other Listeners. Also, the sub-samples do not appear in CSV log files, but they can be saved to XML files.

Control Panel

Parameters

AttributeDescriptionRequired
NameDescriptive name for this controller that is shown in the tree, and used to name the transaction.Yes
Generate Parent SampleIf checked, then the sample is generated as a parent of the other samples, otherwise the sample is generated as an independent sample.Yes
Include timer duration in generated sampleWhether to include timer, pre- and post-processing delays in the generated sample. Default is true to be compatible with the behaviour in previous versions of JMeter.Yes

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值