Forum Discussion
Tareque
17 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
- 6 years agoyognsal
Recent Discussions
- 2 days agoemoya
- 2 days agoMyBalanceNow