jmeter et the最后一个请求的潜伏期

发布于 2025-02-06 13:10:19 字数 126 浏览 2 评论 0原文

有什么方法可以获取最后一个请求的延迟(即持续时间)?我需要这个,因为我想等待EG 10秒 - last-requeqest秒。但是为此,我需要最后一个Sampler/HTTP请求所花费的时间。我该如何明白?

Is there any way to get the latency (i.e. duration) of the last request? I need this, because I want to wait e.g. 10 seconds - duration-of-last-request seconds. But for this I need the time taken by the last sampler/http request. How do I get this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

原来分手还会想你 2025-02-13 13:10:19

看看 jsr222 jsr223 jsr223后制处相关代码,相关的代码是某些东西,例如

sleep 10000L - prev.getTime()

prev代表 prev ious Sampleresult ,有关所有方法/字段的全面信息,请参见Javadoc,前8个jmeter java类,您应该与groovy一起使用用于其他有用的 JSR223测试元素

Take a look at JSR223 PostProcessor, the relevant code would be something like:

sleep 10000L - prev.getTime()

where prev stands for the previous SampleResult, see the JavaDoc for comprehensive information on all methods/fields and Top 8 JMeter Java Classes You Should Be Using with Groovy for other useful JMeter API shorthands available for the JSR223 Test Elements

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文