Testing 无法在现有API上运行Taurus性能测试

Testing 无法在现有API上运行Taurus性能测试,testing,performance-testing,blazemeter,taurus,Testing,Performance Testing,Blazemeter,Taurus,在Win 10机器上安装Taurus并创建用于性能测试my API的新文件后: 性能测试配置.yml execution: - concurrency: 100 ramp-up: 1m hold-for: 2m scenario: helloworld-api-perf-test scenarios: quick-test: requests: - https://helloworld-api.cfapps.io 我在日志中发现以下错误: 错误日志: >

在Win 10机器上安装
Taurus
并创建用于性能测试my API的新文件后:

性能测试配置.yml

execution:
- concurrency: 100
  ramp-up: 1m
  hold-for: 2m
  scenario: helloworld-api-perf-test

scenarios:
  quick-test:
    requests:
    - https://helloworld-api.cfapps.io
我在日志中发现以下错误:

错误日志:

> bzt perf-test-config.yml
15:32:18 INFO: Taurus CLI Tool v1.11.0
15:32:18 INFO: Starting with configs: ['perf-test-config.yml']
15:32:18 INFO: Configuring...
15:32:18 INFO: Artifacts dir: C:\Users\chandeln\MY-WORK\helloworld-api\2018-03-29_15-32-18.609453
15:32:18 WARNING: at path 'execution.0.scenario': scenario 'helloworld-api-perf-test' is used but isn't defined
15:32:18 INFO: Preparing...
15:32:19 WARNING: Could not find location at path: helloworld-api-perf-test
15:32:19 ERROR: Config Error: Scenario 'helloworld-api-perf-test' not found in scenarios: dict_keys(['quick-test'])
15:32:19 INFO: Post-processing...
15:32:19 INFO: Artifacts dir: C:\Users\chandeln\MY-WORK\helloworld-api\2018-03-29_15-32-18.609453
15:32:19 WARNING: Done performing with code: 1
正如在
场景中一样
执行中也应该在
场景下
例如:

execution:
- concurrency: 100
  ramp-up: 1m
  hold-for: 2m
  scenario: helloworld-api-perf-test

scenarios:
  helloworld-api-perf-test:
    requests:
    - https://helloworld-api.cfapps.io

在“场景”字典下只有
quick test
,在“执行”块中,您试图调用名为
helloworld api perf test

因此,选项包括:

  • 场景:helloworld api性能测试更改为
    场景:快速测试
  • 快速测试:
    更改为
    helloworld api性能测试:
  • 更多信息: