Forum Discussion
akbbhatt
10 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.
Related Content
- 9 years agoilovechiku
- 3 years agoCata
- 7 years agoScripter