Javier
18 years agoOccasional Contributor
groovy utils - modify response
hello!!
i have a method 'void' with this fault response:
?
the next step is modify the values with the groovy utils ( script ) because i want to use "mappers" from values to property file ( propertyTransfer ).
the script is:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
log.info( groovyUtils.projectPath );
// create holder for last response
def holder = groovyUtils.getXmlHolder( "write - Request#Response" )
holder.setNodeValue( "soap:Envelope/soap:Body/soap:Fault/soap:Code/soap:Value", "1" );
// update request with updated xml
groovyUtils.setPropertyValue( "write - Request", "Response", holder.prettyXml );
this is ok...but the values of the property has this values: "?"
how I could resolve it?
thanx alot!!
i have a method 'void' with this fault response:
?
the next step is modify the values with the groovy utils ( script ) because i want to use "mappers" from values to property file ( propertyTransfer ).
the script is:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
log.info( groovyUtils.projectPath );
// create holder for last response
def holder = groovyUtils.getXmlHolder( "write - Request#Response" )
holder.setNodeValue( "soap:Envelope/soap:Body/soap:Fault/soap:Code/soap:Value", "1" );
// update request with updated xml
groovyUtils.setPropertyValue( "write - Request", "Response", holder.prettyXml );
this is ok...but the values of the property has this values: "?"
how I could resolve it?
thanx alot!!