如何在Jmeter中的每个请求之间插入延迟 [英] How to insert delay between each requests in Jmeter

查看:2412
本文介绍了如何在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

推荐答案

  1. 在线程组中创建事务控制器
  2. 将您所有的http请求置于此事务控制器下
  3. 向事务控制器添加常量计时器(值为2分钟) (这样一来,它将适用于该交易控制器中的所有请求)
  4. 运行您的jmeter脚本
  1. Create a transaction controller in Thread group
  2. put all your http requests under this transaction controller
  3. add constant timer (with value as 2 min) to transaction controller (this way it will be applicable to all request within that transaction controller)
  4. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆