1

给定一个 (.jmx) 文件 - 与下图中的以下配置等效。

金牛座 (.yml) 配置

included-configs:  
- Variables-local.yml # the file containing your properties definitions

execution:
  iterations: 1
  concurrency: 1
  scenario:
    script: AutomatedTests.jmx

modules:
  jmeter:
    class: bzt.modules.jmeter.JMeterExecutor
    path: C:/JMeter
    properties:
      jmeter.save.saveservice.autoflush: 'true'

reporting:
- module: junit-xml
  filename: TEST-Taurus.xml

JMeter UI 功能的图像参考

4

1 回答 1

2

修改您的“执行”块并添加您想要对原始 JMeter 脚本进行的所有修改,例如:

included-configs:
  - Variables-local.yml # the file containing your properties definitions

execution:
  iterations: 1
  concurrency: 1
  scenario:
    script: AutomatedTests.jmx
    modifications:
      set-prop:
        "Test Plan>TestPlan.serialize_threadgroups": true

modules:
  jmeter:
    class: bzt.modules.jmeter.JMeterExecutor
    path: C:/JMeter
    properties:
      jmeter.save.saveservice.autoflush: 'true'

reporting:
  - module: junit-xml
    filename: TEST-Taurus.xml

更多信息:

于 2020-04-30T11:14:13.183 回答