In the below picture, I have given assertion value as it is(Used response) ..it is working.
Whereas how to use "data" for assertion here...I tried in the same way but i got failed response.
Please help me out some one.
In the below picture, I have given assertion value as it is(Used response) ..it is working.
Whereas how to use "data" for assertion here...I tried in the same way but i got failed response.
Please help me out some one.
Have you tried parsing response in script assertion and asserting
import groovy.json.JsonSlurper
def response = messageExchange.response.responseContent
def slurper = new JsonSlurper()
def json = slurper.parseText(response)
assert json.response.data!=null