金牛座:属性错误-'NoneType'对象没有属性'get' [英] Taurus: Attribute Error - 'NoneType' object has no attribute 'get'

查看:311
本文介绍了金牛座:属性错误-'NoneType'对象没有属性'get'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不断收到错误消息:

11:50:51 ERROR: AttributeError: 'NoneType' object has no attribute 'get'

这是我编写的代码:

---
execution:
concurrency: 10
ramp-up: 1m
hold-for: 2m
scenario:
script: PerformanceTestPlan.jmx
concurrency: 10
ramp-up: 1m
hold-for: 2m
scenario:
script: ProcessorTestPlan.jmx

推荐答案

我相信您应该在

I believe you should ask Taurus-related questions at Taurus Support Forum, discussion here is JMeter-oriented.

关于您的问题,语法不是很正确,应该看起来像这样:

In regards to your question, the syntax is not very correct, it should look like:

---
execution:
- concurrency: 10
  ramp-up: 1m
  hold-for: 2m
  scenario:
    script: PerformanceTestPlan.jmx
- concurrency: 10
  ramp-up: 1m
  hold-for: 2m
  scenario:
    script: ProcessorTestPlan.jmx

破折号和缩进非常重要,任何缺失或多余的空格都可以运行测试.

Dashes and indents are very important, any missing or extra whitespace can run your test.

有关更多信息,请参见 Taurus-使用多个JMeter测试通过金牛座组合几个测试的示例.

See Taurus - Working with Multiple JMeter Tests for more examples on combining several tests through Taurus.

这篇关于金牛座:属性错误-'NoneType'对象没有属性'get'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆