Forum Discussion
Clear_Capital__
11 years agoContributor
this script assertion seem to be working.
utils = new com.eviware.soapui.support.GroovyUtils( context )
holder = utils.getXmlHolder("myRestStep#ResponseAsXml" )
StateField = holder.getNodeValue( "//*[local-name()='state']" )
assert StateKey != null
assert ['CA', 'AZ', 'IL', 'MA'].contains(StateField)
thanks again Siking
utils = new com.eviware.soapui.support.GroovyUtils( context )
holder = utils.getXmlHolder("myRestStep#ResponseAsXml" )
StateField = holder.getNodeValue( "//*[local-name()='state']" )
assert StateKey != null
assert ['CA', 'AZ', 'IL', 'MA'].contains(StateField)
thanks again Siking
Related Content
Recent Discussions
- 14 hours ago
- 17 days ago