在Win 10机器上安装Taurus
并创建用于性能测试的新文件后:
perf-test-config.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
发布于 2018-04-01 18:38:52
与在taurus User Manual中一样,执行中的scenario
也应该在scenarios
下,例如:
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
发布于 2018-05-28 13:27:40
在"scenarios“字典下只有quick-test
,在"execution”块中,您试图调用名为helloworld-api-perf-test
的东西
因此,这些选项位于:
将helloworld-api-perf-test:
的
scenario: helloworld-api-perf-test
更改为quick-test:
更多信息:
https://stackoverflow.com/questions/49564370
复制相似问题