Skip to Content

How to Configure MQSTR Message Format in JMeter

To set the message format as MQSTR in JMeter when sending messages, follow these steps:

  1. In JMeter test plan, locate the “JMS Publisher” sampler.
  2. Under the “Message Properties” section, click the “Add” button to create a new property.
  3. Set the property name to “JMS_IBM_Format” and the value to “MQSTR”.
  4. Ensure that the “JMS Properties” checkbox is selected for the property to take effect.

By setting the “JMS_IBM_Format” property to “MQSTR”, JMeter will include the necessary header information in the sent message to indicate the MQSTR format.

Remember to configure other relevant settings in the “JMS Publisher” sampler, such as the connection details and message content, to successfully send messages to your IBM MQ queue.

Advantages of setting the MQSTR format in JMeter:

  • Consistency: Matching the message format between your IBM Explorer tests and JMeter tests.
  • Compatibility: Ensuring proper message handling by specifying the expected format.
  • Reliability: Avoiding potential issues arising from mismatched message formats.

By following these steps and leveraging the power of JMeter’s “JMS_IBM_Format” property, you’ll be able to effortlessly set the message format as MQSTR, enabling seamless testing and ensuring compatibility with your IBM MQ environment.