JMeter configuration for IBM MQ 8

2019-02-20 22:32发布

问题:

I am trying to use JMeter to test IBM MQ 8.0 Does anyone have an example (maybe a screenshot) of the various parameters I need? I found several examples, but very inconsistent... More precisely, what should I fill in?

  • QueueConnection Factory?
  • JNDI name Request Queue: some example shows a queue name; some a JNDI name. Now what?
  • JMS selector?
  • Any JMS properties?
  • Any JNDI properties?
  • InitialContext Factory?

I assume I want to use "myserver" at port 50000, with user "myuser" and password "mypassword".

回答1:

The trick is to configure a JNDI context in MQExplorer before, and basically set the names of JNDI objects created there:

The following works for me with JMeter 3.2:

And don't forget to add the MQ JAR to the test plan: