Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.13 KB

README.md

File metadata and controls

22 lines (15 loc) · 1.13 KB

Karate and RabbitMQ

This sample project demonstrates how you can test RabbitMQ messaging with a Java client.

When you use well designed utility classes, your Karate tests will be clean and only focus on making a call and what data is sent and received.

For example if you look at rabbitmq.feature the test is just a few lines. Behind the scenes a Rabbit consumer and producer is initialized and a message is passed. The HTML report even includes details of the "put" operation, which you can easily customize, or extend to other operations.

Running

  • Docker is required to start the RabbitMQ server. There is a docker-compose.yml file in this project.
    • docker-compose up -d
    • mvn test
  • To stop the Docker container run docker-compose down

References