Forum Discussion

abhinaykumar15's avatar
abhinaykumar15
Occasional Contributor
4 months ago

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.in...
  • abhinaykumar15's avatar
    3 months ago

    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)