Solved
Forum Discussion
You may use below Script Assertion:
assert context.response, 'Response is empty or null' def xml = new XmlSlurper().parseText(context.response) def getElementValue = { element -> xml.'**'.find{element == it.name()}?.text() } log.info 'resultOperation value is ' + getElementValue('resultOperation') log.info 'errorCode value is ' + getElementValue('errorCode')
Here is the script which you can play and test it online with fixed response.