Thursday, January 7, 2016

Jmeter Jms Publisher with discovery url Java Sampler


  • Add the below Jars to lib/ext directory to the Jmeter installation
      1. activemq-all-5.11.1.jar
      2. fabric-api-1.2.0.redhat-133.jar
      3. fabric-groups-1.2.0.redhat-133.jar
      4. fabric-utils-1.2.0.redhat-133.jar
      5. fabric-zookeeper-1.2.0.redhat-133.jar
      6. guava-17.0.jar
      7. jackson-annotations-2.4.3.jar
      8. jackson-core-2.4.3.jar
      9. jackson-databind-2.4.3.jar
      10. mq-discovery-1.2.0.redhat-133.jar
      11. mq-fabric-1.2.0.redhat-133.jar

  • Extend the class JavaSamplerClient.
  • Add arguments to the getDefaultParameters() method
  • Set the system properties zookeeper.url and zookeeper.password in setupTest() method.
  • Write the test to connect and send messages to the activemq broker.
  • For the complete code please click here

    No comments:

    Post a Comment