jlavallee / JMeter-Rabbit-AMQP

A JMeter plugin to publish & consume messages from RabbitMQ or any AMQP message broker
Apache License 2.0
156 stars 178 forks source link

Unable to use JSON Postprocessor for AMQP Consumer #49

Open hiren-intellectdesign opened 6 years ago

hiren-intellectdesign commented 6 years ago

On receiving a message using AMQP consumer, we have requirement to extract some JSON fields out of the message. We are using JSON PostProcessor for the same.

image

We are successfully able to consume message using AMQP Consumer. However, the response data seems to be always hardcoded as "OK" string, which fails JSON PostProcessor task while extracting necessary fields.

image

What is the issue here? How to get to the response body?

Shawn-Wagner commented 3 years ago

As a workaround, I had to insert to JSR223 post-processor just before the JSON post-processor to copy the message into the sampler response body:

image