JMeter-Rabbit-AMQP icon indicating copy to clipboard operation
JMeter-Rabbit-AMQP copied to clipboard

Unable to use JSON Postprocessor for AMQP Consumer

Open hiren-intellectdesign opened this issue 7 years ago • 1 comments

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?

hiren-intellectdesign avatar Sep 14 '17 09:09 hiren-intellectdesign

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

Shawn-Wagner avatar Jun 23 '21 17:06 Shawn-Wagner