Q:

Parsing concurrency '${addressThread}' in group 'ThreadGroup' failed, choose 1

I am trying to define a percentage of threads for each ThreadGroup in my load testing .jmx file, and pass the total number of threads from taurus config .yaml file.
However, taurus fails to parse the expression, even though when I try to debug it using jmeter I can see that the expressions works. ( I am setting the total number of users in user.property file in jmeter).
This is my yaml config file.
---
scenarios:
  student_service:
    script: ~/jmeter/TestPlan.jmx
    variables:
      addressThread: 100
    think-time: 500ms

execution:
  - scenario: student_service
    hold-for: 5m

versions I am using:

Taurus CLI Tool
MacOs10.13.6
Jmeter 5.0

A:

You're mixing properties and variables.
It should be:
---
scenarios:
  student_service:
    script: ~/jmeter/TestPlan.jmx
    properties:
      addressThread: 100
    think-time: 500ms

execution:
  - scenario: student_service
    hold-for: 5m

And in JMeter, you should be using __P function:

${__P(addressThread)}

Still, there is a bug in current version of Taurus 1.13.2, so you need to wait for next version:

https://groups.google.com/d/msg/codename-taurus/QggRz9QDnO0/_FEGllDoGAAJ

