英文:
Please explain objective of Flow Control Action Sampler in 5.0 version
问题
Flow Control Action Sampler在JMeter中的目标是什么?在负载测试期间,我们可以通过这个Sampler实现什么?
英文:
objective of Flow Control Action Sampler in JMeter. what we can achieve with this Sampler during load test?
答案1
得分: 3
**Flow Control Action**采样器与逻辑控制器一起使用,以控制采样器的执行。
-
用于暂停(休眠)当前线程或所有线程,持续时间以毫秒为单位设置。您可以使用JMeter变量或属性来设置动态值。
-
在执行进行中的样本后停止当前线程或所有线程。
-
立即停止当前线程或所有线程,无需等待进行中的样本完成。应选择“立即停止”选项。
-
转到下一次迭代。
此外,您可以使用Flow Control Action采样器在两个采样器之间引入定时器。请参阅官方网站上的建议。
英文:
Flow Control Action sampler is used along with the logical controllers to control the sampler execution.
- To pause (sleep) current or all thread for specified amount of time (duration is set in milliseconds). You could use a JMeter variable or property to set a dynamic value
-
To stop the current or all threads after completing the execution of samples in progress
-
To stop the current or all threads immediately without waiting for samples in progress to complete. Stop Now option should be selected.
-
To move to the next iteration
Also you can use Flow Control Action sampler to introduce a Timer in between two samplers. Please see the suggestion from official website.
答案2
得分: 2
- 按指定的时间间隔休眠(例如,您可以使用流控制操作采样器在 JMeter 中实现 pacing)。
- 启动当前循环的下一个迭代(例如,可以应用于循环控制器、while 控制器、for each 控制器等)。
- 启动线程组的下一个迭代。
- 优雅地或立即停止当前线程或所有线程(整个测试)。
英文:
- Sleep for specified amount of time (for example you can implement pacing in JMeter using Flow Control Action Sampler)
- Start next iteration of the current loop (for example can be applied for Loop Controller, While Controller, ForEach Controller)
- Start next iteration of the Thread Group
- Gracefully or immediately stop current thread or all threads (the whole test)
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论