Forum Discussion
Tareque
18 years agoOccasional Contributor
Hi,
I was able to make the groovy script simpler by introducing a PropertyTransfer and a Properties object. The groovy script now is as follows
def utils = new com.eviware.soapui.support.GroovyUtils(context)
def value = testRunner.testCase.getTestStepByName("Properties").getPropertyValue("XML")
def holder = utils.getXmlHolder(value)
assert holder.getNodeValue("//ns1:ovm-error-info/ns1:error-code") == '254'
Is this a good approach or is there a better way to do this.
Regards
I was able to make the groovy script simpler by introducing a PropertyTransfer and a Properties object. The groovy script now is as follows
def utils = new com.eviware.soapui.support.GroovyUtils(context)
def value = testRunner.testCase.getTestStepByName("Properties").getPropertyValue("XML")
def holder = utils.getXmlHolder(value)
assert holder.getNodeValue("//ns1:ovm-error-info/ns1:error-code") == '254'
Is this a good approach or is there a better way to do this.
Regards
Related Content
- 7 years ago
Recent Discussions
- 5 hours ago