Forum Discussion
SmartBear_Suppo
15 years agoSmartBear Alumni (Retired)
Hi,
i have tried your example and it works .
But messageExchange is null object if you run script manually and it is not null while perform test step or test case. maybe you should do it like this :
or even shorter
hope this helps
regards
nebojsa
eviware.com
i have tried your example and it works .
But messageExchange is null object if you run script manually and it is not null while perform test step or test case. maybe you should do it like this :
def groovyUtils = new com.eviware.soapui.support.GroovyUtilsPro( context );
holder = groovyUtils.getXmlHolder( context.expand( '${AMF Request#ResponseAsXML}' ) );
quota = holder.getNodeValue("//flex.messaging.io.amf.ASObject[1]/map[1]/double[4]/text()");
assert quota == '150.0'
or even shorter
quota = context.expand( '${AMF Request#ResponseAsXML#//flex.messaging.io.amf.ASObject[1]/map[1]/double[4]/text()}' )
assert quota == '150.0'
hope this helps
regards
nebojsa
eviware.com
Related Content
- 3 years agoTestee
- 4 years agomneiferbag