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

tried here just regular variable

versions I am using:

  1. Taurus CLI Tool
  2. MacOs10.13.6
  3. Jmeter 5.0
Awad
  • 823
  • 3
  • 11
  • 33

1 Answers1

1

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:

UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116
  • I tried using your yaml config, and my ThreadGroup is looking for ${__P(addressThread)}. but I still get " WARNING: Parsing concurrency '${__P(addressThread)}' in group 'ThreadGroup' failed, choose 1" – Awad Feb 25 '19 at 15:29
  • I was able to read the property after I upgraded to Taurus 1.13.3. – Awad Feb 25 '19 at 16:30