如何在JMeter中使用JSR223计时器 [英] How to use JSR223 timer in JMeter

查看:165
本文介绍了如何在JMeter中使用JSR223计时器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在JMeter中使用JSR223计时器,而不想执行延迟,

I want to use JSR223 timer in JMeter and not manage to execute delay,

如果我要创建30秒的线程延迟,应该在脚本部分中写些什么?

If I want to create thread delay of 30 seconds what should I write inside the script section ?

推荐答案

通过基于脚本的计时器创建延迟的正确方法是使用

The correct way of creating a delay via script-based timer is using return keyword, the value should have Long data type and the delay is in milliseconds.

因此,创建30秒的延迟将类似于:

So creating a 30-seconds delay would be something like:

return 30000

更多信息:使用JMeter计时器的综合指南

这篇关于如何在JMeter中使用JSR223计时器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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