cbyndr
15 years agoContributor
[SOLVED]is AMF response content available through MessageExchange?
I'm trying to create assertions to verify a certain AMF request response's content.
Some elements in this particular method's response may not always be verified without some string manipulation, so (I suppose) standard XQuery assertions won't always work.
I am thinking to use script assertion, and would like to know if I can get at the AMF reponse via MessageExchange. So, if this is the AMF response:
false
false
Could I capture the value of150.0 in a script assertion by either of the following ways?
def groovyUtils = new com.eviware.soapui.support.GroovyUtilsPro( context )
def holder = groovyUtils.getXmlHolder( messageExchange.responseAsXML )
def quota = find_user_holder.getNodeValue("//flex.messaging.io.amf.ASObject[1]/map[1]/double[4]/text()")
Or
def groovyUtils = new com.eviware.soapui.support.GroovyUtilsPro( context )
def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
def quota = find_user_holder.getNodeValue("//flex.messaging.io.amf.ASObject[1]/map[1]/double[4]/text()")
Some elements in this particular method's response may not always be verified without some string manipulation, so (I suppose) standard XQuery assertions won't always work.
I am thinking to use script assertion, and would like to know if I can get at the AMF reponse via MessageExchange. So, if this is the AMF response:
Could I capture the value of
def groovyUtils = new com.eviware.soapui.support.GroovyUtilsPro( context )
def holder = groovyUtils.getXmlHolder( messageExchange.responseAsXML )
def quota = find_user_holder.getNodeValue("//flex.messaging.io.amf.ASObject[1]/map[1]/double[4]/text()")
Or
def groovyUtils = new com.eviware.soapui.support.GroovyUtilsPro( context )
def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
def quota = find_user_holder.getNodeValue("//flex.messaging.io.amf.ASObject[1]/map[1]/double[4]/text()")