jmeter [label]的avg-rt在Taurus passfail中不起作用

kuuvgm7e  于 2023-06-23  发布在  其他
关注(0)|答案(1)|浏览(137)

我正在尝试运行jmeter测试与金牛座。我有一个包含多个线程组的JMX文件。在该组的其他请求中,有一个请求“InsertFolder”需要超过20秒,但大多数其他请求需要大约5秒。我已经指定了“avg-rt of InsertFolder> 10000ms,stop as failed”,但不知道如何正确执行。这是我拥有的. 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
hjzp0vay

hjzp0vay1#

我认为你只需要删除空间在您的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

您可能也会发现The Complete Taurus Course很有用

相关问题