gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 20:27:29 24 4
gpt4 key购买 nike

在 Win 10 机器上安装 Taurus 并创建一个新文件以测试我的 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

最佳答案

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

关于testing - 无法在现有 API 上运行 Taurus 性能测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49564370/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com