【问题标题】:pause and resume jmeter execution暂停和恢复 jmeter 执行
【发布时间】:2016-07-21 09:11:05
【问题描述】:

我正在寻找暂停和恢复 JMeter 执行的选项(单/多线程)。

1. Pausing and Resuming through command line 
2. From the Jmeter UI
3. By coding in some language in a sampler of Jmeter
4. Using a JMeter plugin

以上任何一种方法都可以。

非常感谢任何想法和解决方案。

【问题讨论】:

    标签: jmeter jmeter-plugins


    【解决方案1】:

    我建议去Constant Throughput Timer

    尽管名称中有“常量”一词,但您可以通过 __P() 函数使用即 JMeter 属性作为“目标吞吐量”值。

    1. 命令行:您可以通过 -J 命令行参数传递此属性值,例如:

      • 在 JMeter 中定义即throughput 属性为:${__P(throughput,)}
      • “告诉”JMeter 的属性值为jmeter -Jthroughput=100 -n -t ....
    2. 如果不重新启动测试,则无法从 JMeter GUI 执行此操作。一般不建议在 GUI 模式下运行 JMeter 测试。
    3. 你也可以在运行时修改属性值

      • 例如来自 Beanshell 测试元素,使用以下脚本:

        props.put("throughput", "300");
        
      • 使用Beanshell Server


    我很确定您会收到很多关于使用 Test Action 采样器的建议,这些建议来自不太称职的人,他们没有费心熟悉文档,其中指出:

    TargetCurrent 线程/所有线程(暂停时忽略)

    所以请不要在测试操作采样器上浪费您的时间

    【讨论】:

    【解决方案2】:

    我建议你遵循 Oliver E. 关于用户邮件列表的建议:

    关于您的问题:

    • 1/ 按照 Dmitri Answers 遵循 1 + 3
    • 2/ 还不可能:)
    • 3/ 关注邮件列表回答
    • 4/ 不可能

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-19
      • 2015-07-28
      • 2014-12-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多