如何为金牛座中的分布式测试设置诸如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
不论my-test.jmx中的测试时间如何,仅在所有节点上加载2分钟。我怎样才能做到这一点? Hold-for工程仅用于货币设置,不适用于分布式
答案 0 :(得分: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