AMQP test step is used to interact with AMQP services. It can be used in combination with other test steps to create automated test cases. It can also be used to manually operate on an AMQP node (like queue).
AMQP test step only supports AMQP 1.0. It was tested against IBM MQ 8 and 9, as well as RabbitMQ 3.7.14 (with AMQP 1.0 plugin enabled), with no security.
Actions available in the AMQP test step: Send.
Example AMQP service URI:
IBM MQ as AMQP service provider
When sending messages to IBM MQ, the target address is a topic string.
IBM MQ only supports Publish/Subscribe style AMQP, and you have to create a subscription to the topic for the message to land in a queue. It is impossible to send the message directly to a queue. Refer to this post for more details.
RabbitMQ as AMQP service provider
When sending messages to RabbitMQ, the target address is interpreted here. Some more examples with detailed explanation:
"/amq/queue/queue1": send message to default exchange with routing key queue1; queue queue1 must be durable and already existing; the send action does not create the queue if it is not existing.
"queue2": send message to default exchange with routing key queue2; queue queue2 must be transient; the send action creates the queue if it is not already existing.
"/topic/news": send message to exchange amq.topic with routing key news; amq.topic is the default topic exchange created when creating a RabbitMQ node; bind a queue to amq.topic with routing key news for the message to land in the queue.