jMeter计时器-循环延迟 [英] jMeter timers - loop delays

查看:108
本文介绍了jMeter计时器-循环延迟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在jMeter中可以模拟以下情形:
100个用户登录一次并每30秒进行一次搜索,思考时间为5秒.
我该如何实现?

I have the following scenario to emulate in jMeter:
100 users logging in once and doing search every 30 secs, with think time 5 secs.
How do I implement this?

现在我有这样的东西:

ThreadGroup(100usrs)
+-- OnceOnlyController(LogIn)
+-- LoopControler(Search)
+-- Timer(5s)

但是我不知道如何在搜索实例之间延迟30秒.
甚至有可能还是我必须使用一些解决方法?
任何帮助表示赞赏.

But I have no idea how to do the 30 secs delay between the Search instances.
Is it even possible or do I have to use some workaround?
Any help appreciated.

推荐答案

如果无论样本的响应时间如何,都希望在搜索样本之间具有固定的延迟,那么Orkito解决方案是不合适的.

If you want to have a fixed delay between the search samples whatever response time of the Sample is then Orkito solution is not the right one.

他的解决方案将在搜索样本之前增加30 s的延迟,因此,如果搜索花费的时间超出预期,则您的请求将每30 s +搜索样本花费的时间运行一次.

His solution will add a 30 s delay before the search sample, so if search takes more time than expected your request will run each 30s + Time taken by search sample.

如果无论样本的响应时间如何,都希望在搜索样本之间具有固定的延迟,则在此处介绍解决方案:

If you want to have a fixed delay between the search samples whatever response time of the Sample then solution is described here:

它是法语,但是有屏幕截图,翻译服务应该可以完成工作.

It's in french but there are screenshots and translation service should do the job.

要注意的另一个重要点:

Another important point to note:

请注意,在它们所在的范围内,计时器在每个采样器之前进行处理;如果同一范围内有多个计时器,则将在每个采样器之前处理所有计时器. 计时器仅与采样器一起处理.与采样器不在同一范围内的计时器将不会被处理. 要将计时器应用于单个采样器,请将计时器添加为采样器的子元素.在执行采样器之前,将应用计时器.要在采样器之后应用计时器,请将其添加到下一个采样器,或将其添加为测试操作采样器"的子代.

Note that timers are processed before each sampler in the scope in which they are found; if there are several timers in the same scope, all the timers will be processed before each sampler. Timers are only processed in conjunction with a sampler. A timer which is not in the same scope as a sampler will not be processed at all. To apply a timer to a single sampler, add the timer as a child element of the sampler. The timer will be applied before the sampler is executed. To apply a timer after a sampler, either add it to the next sampler, or add it as the child of a Test Action Sampler.

这篇关于jMeter计时器-循环延迟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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