abhinaykumar15
6 months agoOccasional Contributor
Unable to read Kafka received messages using MessageExchange
Hi All,
I have subscribed to a topic and i receive messages in the topic.
When i add a script assertion to this step using MessageExchange like
def response = messageExchange.getResponse()
log.info response
I am getting the following error
Error in assertion script of the [Receive Message] test step: Cannot invoke method getResponse() on null object
Am i missing to add something here?Can i read kafka received messages using messageExchange.
Kindly help.
Hi All,
From ReadyAPI 3.54 kafka received messages can be read using groovy script and can be validated.
def data = context.expand( '${Teststep-name#data}' )
log.info(data)