Search code examples
python-2.7jmeterperformance-testingtaurus

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


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

Solution

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