如何在Jmeter中的每个请求之间插入延迟 [英] How to insert delay between each requests in Jmeter
本文介绍了如何在Jmeter中的每个请求之间插入延迟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想执行以下测试计划. 示例:我希望每个http请求都应延迟两分钟
I wanted to execute a Test Plan as Below. Example : I wanted every http request should take delay of two minutes
- http_request_1,
- 延迟(2分钟)
- http_request_2
所有请求都在同一线程组中
All request are in same thread group
推荐答案
- 在线程组中创建事务控制器
- 将您所有的http请求置于此事务控制器下
- 向事务控制器添加常量计时器(值为2分钟) (这样一来,它将适用于该交易控制器中的所有请求)
- 运行您的jmeter脚本
- Create a transaction controller in Thread group
- put all your http requests under this transaction controller
- add constant timer (with value as 2 min) to transaction controller (this way it will be applicable to all request within that transaction controller)
- run your jmeter script
或如果仅存在2个请求,则在两个请求之间仅添加1个常量计时器.
or if only 2 request are there then add only 1 constant timer in between both the requests.
这篇关于如何在Jmeter中的每个请求之间插入延迟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文