Forum Discussion
SiKing
12 years agoCommunity Hero
Grab the content from the XPath, and parse it like JSON. Something like this:
def slurper = new groovy.json.JsonSlurper()
def result = slurper.parseText(context.expand('${' + context.currentStep.name + '#Response//*:param[@name="json"]}'))
assert result.response.Result.equals("SUCCESS")