# jmeter-amqp-plugin-plus **Repository Path**: TestOpsFeng/jmeter-amqp-plugin-plus ## Basic Information - **Project Name**: jmeter-amqp-plugin-plus - **Description**: 对『https://github.com/aliesbelik/jmeter-amqp-plugin』增加『x-single-active-consumer』配置 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-04-04 - **Last Updated**: 2024-12-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # JMeter AMQP Plugin [![build status](https://img.shields.io/github/actions/workflow/status/aliesbelik/jmeter-amqp-plugin/maven.yml?branch=main&label=build&color=18BA91&style=flat-square)](https://github.com/aliesbelik/jmeter-amqp-plugin/actions/workflows/maven.yml) [![release](https://img.shields.io/github/v/release/aliesbelik/jmeter-amqp-plugin?label=release&color=18BA91&style=flat-square)](https://github.com/aliesbelik/jmeter-amqp-plugin/releases/latest) ![downloads](https://img.shields.io/github/downloads/aliesbelik/jmeter-amqp-plugin/total?color=18BA91&style=flat-square) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?color=18BA91&style=flat-square)](CONTRIBUTING.md) A [JMeter](http://jmeter.apache.org/) plugin to publish & consume messages from [RabbitMQ](http://www.rabbitmq.com/) or any [AMQP](http://www.amqp.org/) message broker. ## Requirements - Requires JDK 8 or higher. - Compatible with versions up to **5.x.x** of [com.rabbitmq:amqp-client](https://github.com/rabbitmq/rabbitmq-java-client). ## Installation 1. Download the [latest release](https://github.com/aliesbelik/jmeter-amqp-plugin/releases/latest) or [build your own](#build) from the source code. 2. Put `jmeter-amqp-plugin-VERSION.jar` into `$JMETER_HOME/lib/ext` directory.\ It contains the necessary AMQP client dependency, no other jars are required. 3. Restart JMeter GUI. ## Usage This plugin includes 2 samplers: - [**AMQP Publisher**](#amqp-publisher) - [**AMQP Consumer**](#amqp-consumer) Both samplers can be found in the **Add -> Sampler** list shown as below: ![amqp-plugin-samplers](docs/images/amqp-plugin-samplers.png) ### AMQP Publisher ![amqp-publisher](docs/images/amqp-publisher.png) ### AMQP Consumer ![amqp-consumer](docs/images/amqp-consumer.png) A pre-configured example scenario can be found in the [examples](docs/examples) directory. ## Build ### Build requirements In order to build JMeter AMQP plugin from source, you will need: - [Java 8 or higher](https://www.oracle.com/downloads/) - [Apache Maven 3](https://maven.apache.org/) Build dependencies are managed by Maven.\ Jars should automatically be downloaded by Maven as part of the build process. In addition, you'll need to copy or symlink the following from `$JMETER_HOME/lib/ext` directory: - ApacheJMeter_core.jar ### Build from source To build, just execute: ``` mvn clean package ``` This will create 2 jars in `/target` directory - the jar with all the dependencies within (this is the one you need) and the original jar (without amqp-client library inside): ``` target/jmeter-amqp-plugin-VERSION.jar target/original-jmeter-amqp-plugin-VERSION.jar ``` ### Install To install, execute: ``` cp target/jmeter-amqp-plugin-VERSION.jar $JMETER_HOME/lib/ext ``` ## Acknowledgements Thanks to - [jlavallee](https://github.com/jlavallee) (Jeff Lavallee), who created [original plugin](https://github.com/jlavallee/JMeter-Rabbit-AMQP); - [polarnik](https://github.com/polarnik) (Viacheslav Smirnov), who spent time and efforts to create [comparison](https://github.com/polarnik/JMeter-Rabbit-AMQP-info) of the forks with valuable changes; - for the features & enhancements implemented in their forks: - [gregLibert](https://github.com/gregLibert/JMeter-Rabbit-AMQP) (Gregory Libert), - [gybandi](https://github.com/gybandi/JMeter-Rabbit-AMQP) (Gyuro Andras), - [looseend](https://github.com/looseend/JMeter-Rabbit-AMQP) (John Singleton), - [sergiogouveia](https://github.com/sergiogouveia/JMeter-Rabbit-AMQP) (Sergio Gouveia), - [wojtek-oledzki](https://github.com/voytek-solutions/JMeter-Rabbit-AMQP) (Wojtek Oledzki), - [zeph1rus](https://github.com/zeph1rus/JMeter-Rabbit-AMQP); - all the [contributors](https://github.com/jlavallee/JMeter-Rabbit-AMQP/graphs/contributors) to original project. ## Contributing Contributions are welcome.\ Please take a look at the [contributing](CONTRIBUTING.md) guideline first.