Forum Discussion
akbbhatt
12 years agoNew Contributor
There are other ways to do the same thing using Slurper classes instead of XMLUtils.
Since your response is Json you can use JsonSlurper for this:
In your test step assertion, add this code:
import groovy.json.*
def response = new JsonSlurper().parseText(messageExchange.response.responseContent)
log.info response
Now you will see the response in the log.
You can google for JsonSlurper examples, let me know if you need any more info on the same.
Since your response is Json you can use JsonSlurper for this:
In your test step assertion, add this code:
import groovy.json.*
def response = new JsonSlurper().parseText(messageExchange.response.responseContent)
log.info response
Now you will see the response in the log.
You can google for JsonSlurper examples, let me know if you need any more info on the same.