Forum Discussion
RJanecek
14 years agoRegular Contributor
Hi,
I would prefer groovy script for this:
// first you need to get property:
// then replace
// then save it
// and now you can call this property in Test Request:
// or in groovy script
I would prefer groovy script for this:
// first you need to get property:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def response = context.expand( '${TestRequestName#Response}' )
def holderResponse = groovyUtils.getXmlHolder( response )
def property = holderResponse.getNodeValue( "//*[local-name()='elementName' and namespace-uri()='nameSpaceName']")
// then replace
property.replaceAll(":","")// then save it
context.setProperty("property",property)// and now you can call this property in Test Request:
<urn:Property>${Property}</urn:Property>// or in groovy script
def property = context.getProperty("property")