avg-rt of [label] is not working in Taurus passfail

huangapple go评论62阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年6月15日 21:22:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/76482945.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定