首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >无法在现有API上运行Taurus性能测试

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

Stack Overflow用户
提问于 2018-03-30 04:19:23
回答 2查看 679关注 0票数 1

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

perf-test-config.yml

代码语言:javascript
复制
execution:
- concurrency: 100
  ramp-up: 1m
  hold-for: 2m
  scenario: helloworld-api-perf-test

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

我在日志中看到以下错误:

错误日志:

代码语言:javascript
复制
> 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
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2018-04-01 18:38:52

与在taurus User Manual中一样,执行中的scenario也应该在scenarios下,例如:

代码语言:javascript
复制
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
票数 2
EN

Stack Overflow用户

发布于 2018-05-28 13:27:40

在"scenarios“字典下只有quick-test,在"execution”块中,您试图调用名为helloworld-api-perf-test的东西

因此,这些选项位于:

helloworld-api-perf-test:

  1. scenario: helloworld-api-perf-test更改为quick-test:

更多信息:

  1. Taurus Configuration Syntax
  2. Navigating your First Steps Using Taurus
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49564370

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档