Keploy as a Azure Service Bus testing framework
Keploy records the AMQP protocol exchanges your service has with Azure Service Bus, then replays them byte for byte in tests. Your Service Bus client runs unchanged and does its real work on every run, but CI needs no Azure Service Bus instance, no schema and no seed data.
keploy record -c "<your app start command>"What Keploy gives a Azure Service Bus team
Every Azure Service Bus call your service makes
Keploy records the send and receive exchanges your service has with Service Bus, so a message flow replays with no namespace and no Azure subscription.
- AMQP protocol captured
- Send and receive kept
- Lock and complete responses captured
- No namespace in CI
Why Azure Service Bus integration tests slow teams down
The friction is rarely the assertions. It is everything around them — spinning up dependencies, keeping mocks honest, and repairing tests after every refactor.
Testing Azure Service Bus: by hand, with Testcontainers, or with Keploy
Testcontainers gives a test a real Azure Service Bus emulator at the cost of running one. A hand-written stub is cheap but never exercises AMQP. Keploy replays the recorded exchange with nothing running.
Select any row for the full comparison, with code.
What you write for Azure Service Bus vs what Keploy records
All three produce the same assertion. Only the third still passes after the next refactor without anyone editing it.
A hand-written stub of the Azure Service Bus client. The driver never runs.
Testcontainers runs the real Azure Service Bus. Fidelity is genuine; the job pays for it.
Recorded from one real request. Nothing here was typed by hand.
Times are estimates for authoring one endpoint’s coverage from scratch, not measurements.
Azure Service Bus testing tools, compared
The options a team on message brokers actually reaches for, and where each one genuinely wins. Select a row for the full comparison.
Assessments reflect each tool’s documented behaviour, not benchmark measurements.
Record your Azure Service Bus app once, replay it forever
Keploy sits below your Azure Service Bus process at the network layer. It watches the calls your app already makes, then serves them back on replay so tests run with no dependencies attached.
Keploy records a GET call to /api/v1/orders/{id} on a Azure Service Bus service and captures the dependency calls it makes.
What Keploy mocks for Azure Service Bus, with zero config
5 of the 5 dependencies a typical Azure Service Bus service talks to are stubbed from the recording itself — no mock classes, no fixture files, no containers in CI.
Your first Azure Service Bus test suite in under five minutes
Every command below runs against your existing Azure Service Bus service. Nothing in your source tree changes.
1Install the Keploy CLI
A single binary. It needs a Linux kernel with eBPF support, or Docker on macOS and Windows — and it adds nothing to your project's dependencies.
curl -sSL https://keploy.io/install.sh | bash2Record your service
Pass the command you already use to start the app. Keploy runs it and watches every socket it opens.
keploy record -c "<your app start command>"3Exercise the paths you care about
Use curl, your frontend, or an existing smoke script. Every request becomes a test case with its Azure Service Bus calls captured alongside it.
curl -X POST localhost:8080/orders/o-1/confirmcurl localhost:8080/orders/o-14Replay in CI
Replay serves the recorded dependency responses, so the job needs no service containers and no Docker daemon.
keploy test -c "<your app start command>" --delay 10
Ready to try it on your own Azure Service Bus service?
Works with the rest of your Azure Service Bus stack
Keploy records at the network layer, so framework and driver choices inside your Azure Service Bus app do not change how it captures traffic.
Java
Recorded below azure-messaging-servicebus, at the AMQP 1.0 layer.
Python
Recorded below azure-servicebus, at the AMQP 1.0 layer.
Node.js
Recorded below @azure/service-bus, at the AMQP 1.0 layer.
Go
Recorded below azservicebus, at the AMQP 1.0 layer.
.NET
Recorded below Azure.Messaging.ServiceBus, at the AMQP 1.0 layer.
Testing the rest of your stack
- Message Queues
Keploy as a Apache Kafka testing framework
Test producers and consumers against recorded broker exchanges — no embedded Kafka, no Testcontainers cluster, no flaky poll loops.
Read the guide - Message Queues
Keploy as a RabbitMQ testing framework
Test publishers and consumers against recorded AMQP exchanges, with no broker to start and no queue to declare.
Read the guide - Message Queues
Keploy as a NATS testing framework
Test NATS publishers and subscribers against recorded messages, with no server to run and no JetStream stream to create.
Read the guide - Message Queues
Keploy as a Amazon SQS testing framework
Test SQS producers and consumers against recorded messages, with no LocalStack, no queue, and no AWS credentials in CI.
Read the guide - Languages
Keploy as a Java testing framework
Generate JUnit-grade integration tests for any JVM service by recording the traffic it already serves.
Read the guide - Languages
Keploy as a Node.js testing framework
Replace nock registrations and in-memory database fixtures with tests recorded from the traffic your Node service already serves.
Read the guide
Join our GlobalCommunity
Connect with developers worldwide. Follow updates, ask questions, share feedback, and ship faster with other Keploy builders.
“Best report of integration and API tests I've seen — which we don't get from RestAssured.”
G2“Future of microservices testing. I don't write tests now!”
Mahfooz A. · G2 · 5/5“An amazing product that simplifies the automation.”
Gartner · 4.0