Forum Discussion
nmrao
Champion Level 3
You should be able to try here
http://jsonpath.com/
Following Script Assertion should help:
def parsedJson = new groovy.json.JsonSlurper().parseText(context.response)
log.info parsedJson.accessToken
//replace expectedValue below
assert expectedValue == parsedJson.accessToken, 'Not matched.'
You can also check here:
http://groovyconsole.appspot.com/script/5179916383420416
http://jsonpath.com/
Following Script Assertion should help:
def parsedJson = new groovy.json.JsonSlurper().parseText(context.response)
log.info parsedJson.accessToken
//replace expectedValue below
assert expectedValue == parsedJson.accessToken, 'Not matched.'
You can also check here:
http://groovyconsole.appspot.com/script/5179916383420416
Related Content
- 9 years ago
Recent Discussions
- 3 days ago