英文:
avg-rt of [label] is not working in Taurus passfail
问题
我正在尝试使用Taurus运行JMeter测试。我有一个包含多个线程组的JMX文件。在其中一个组中,有一个名为"InsertFolder"的请求,它需要超过20秒的时间,然而大多数其他请求只需要大约5秒。我已经指定了"InsertFolder"的平均响应时间大于10000毫秒时将其视为失败,但不确定如何正确执行。
这是我的.yml文件:
reporting:
- module: passfail
criteria:
- avg-rt of InsertFolder > 10000ms, stop as failed
execution:
- executor: jmeter
concurrency: 1
hold-for: 300s
iterations: 10
scenario:
script: standard.jmx
scenarios:
standard:
script: standard.jmx
英文:
I am trying to run jmeter tests with Taurus. I have one JMX file with multiple Thread Groups. In other of the group, there is a request "InsertFolder" that takes more than 20secs however most of the other requests take around 5 secs. I have specified "avg-rt of InsertFolder > 10000ms, stop as failed" but not sure how to do it correctly.
This is the .yml file that I have:
reporting:
- module: passfail
criteria:
- avg-rt of InsertFolder > 10000ms, stop as failed
execution:
- executor: jmeter
concurrency: 1
hold-for: 300s
iterations: 10
scenario:
script: standard.jmx
scenarios:
standard:
script: standard.jmx
答案1
得分: 0
我认为你只需要删除你的criterion中的空格,以便将
avg-rt of InsertFolder > 10000ms, stop as failed
改为
avg-rt of InsertFolder>1000ms, stop as failed
完整的Taurus YAML示例如下
reporting:
- module: passfail
criteria:
- avg-rt of InsertFolder>10000ms, stop as failed
execution:
- executor: jmeter
concurrency: 1
hold-for: 300s
iterations: 10
scenario:
script: standard.jmx
scenarios:
standard:
script: standard.jmx
你可能会发现完整的Taurus课程有用
英文:
I think you just need to remove spaces in your criterion to wit change
avg-rt of InsertFolder > 10000ms, stop as failed
to
avg-rt of InsertFolder>1000ms, stop as failed
full Taurus YAML just in case
reporting:
- module: passfail
criteria:
- avg-rt of InsertFolder>10000ms, stop as failed
execution:
- executor: jmeter
concurrency: 1
hold-for: 300s
iterations: 10
scenario:
script: standard.jmx
scenarios:
standard:
script: standard.jmx
You may also find The Complete Taurus Course useful
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论