1

In my yaml, I have followed this doc:

And have set:

 modules:
  jmeter:
    properties:
      myoutputdir: ${TAURUS_ARTIFACTS_DIR}/output 

And then I’d like to use it using __P function, but it is not passed. If I pass another static value it works.

Is it a bug or I need to escape something ?

EDIT :

- I don't know what I was doing wrong, but the same code now works. So this question is stupid but I cannot delete it.

Loc Ann
  • 455
  • 6
  • 24

1 Answers1

1

I cannot reproduce your issue using latest Taurus 1.12.1

  • YAML config file used:

    modules:
      jmeter:
        properties:
          myoutputdir: ${TAURUS_ARTIFACTS_DIR}/output
    execution:
    - scenario: simple
    scenarios:
      simple:
        script: test.jmx
    
  • Property referenced in JSR223 Sampler as ${__P(myoutputdir,)} and printed to STDOUT as println('-----MYOUTPUTDIR=' +args[0])

I can see current Taurus output directory printed to jmeter.out file under the artifacts directory:

JMeter Taurus Property

So try upgrading to latest Taurus version and double-checking your YAML config file

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • Strange, I am using this version. Does it work if you use property in SimpleDataWriter with __P function ? – Loc Ann Aug 23 '18 at 10:28
  • Well, I tested again, and its working so I don't know what I was missing. Thanks again for your answer anyway. I accepted it. – Loc Ann Aug 23 '18 at 18:59