【问题标题】:hold-for analogue for distributed jmeter test in taurus在金牛座中为分布式 jmeter 测试保持模拟
【发布时间】:2018-08-19 22:29:07
【问题描述】:

如何为 taurus 中的分布式测试设置诸如用于并发的 hold-for 的参数: 说,我愿意

execution:
- distributed: 
  - host1.mynet.com
  - host2.mynet.com
  - host3.mynet.com
  scenario: some_scenario
  hold-for: 2m

scenarios:
  some_scenario:
    script: my-test.jmx

仅在所有节点上加载 2 分钟,而不考虑 my-test.jmx 中的测试时间。我怎样才能做到这一点? Hold-for 作品仅适用于 cuncurrency 设置,不适用于分布式

【问题讨论】:

    标签: jmeter load-testing taurus


    【解决方案1】:

    阅读 Taurus 的代码,看起来应该是这样的:

     execution:
       - concurrency: ${__P(my_conc,3)}    # use `my_conc` prop or default=3 if property isn't found
            ramp-up: 30
           hold-for: 2m
           scenario: some_scenario
    
       - distributed: 
           - host1.mynet.com
           - host2.mynet.com
           - host3.mynet.com
    
     scenarios:
          some_scenario:
              script: my-test.jmx
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多