Taurus: Attribute Error - 'NoneType' object has no attribute 'get'

左心房为你撑大大i 提交于 2019-12-25 07:15:11

问题


I keep getting an error which says:

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

This is the code which i have written:

---
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

回答1:


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.

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



来源:https://stackoverflow.com/questions/39159637/taurus-attribute-error-nonetype-object-has-no-attribute-get

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!