0
votes

I am trying to setup a JMS point to point sampler in JMeter. A CSV file is used to provide the JMS queue names as parameter. However the connection fails to pick up the queue supplied by the CSV. Tested this the same way on publisher and it works just fine. Anyone has encountered this before?

The setup of sampler.

The result says cannot find queue with name '${que}', it is not treating this as a parameter?

However in the request part, it can use the correct value.

1

1 Answers

0
votes

It sounds like a bug in JMeter, I would recommend reporting it via JMeter Bugzilla

In the meantime you can work it around by converting a JMeter Variable into a JMeter Property

  1. Add JSR223 Sampler before the JMS Point-to-Point sampler
  2. Put the following code into "Script" area:

    SampleResult.setIgnore()
    props.put('que', vars.get('que'))
    
  3. Replace ${que} with __P() function call

    ${__P(que,)}
    

    JMeter JMS Point to Point queue name

  4. That's it, now you should be able to parameterize your topic name

    JMeter parameterize jms topic name

Check out Apache Groovy - Why and How You Should Use It article for more information on Groovy scripting in JMeter tests.