Forum Discussion
SmartBear_Suppo
Alumni
15 years agoHello,
Well. there is an issue with assertions and this event. Instead try adding RequestFilter.afterRequest event and add script like this:
This will do what you need.
Hope this helps,
robert
Well. there is an issue with assertions and this event. Instead try adding RequestFilter.afterRequest event and add script like this:
if( request.response == null )
return
def content = context.httpResponse.responseContent
content = com.eviware.soapui.support.xml.XmlUtils.prettyPrintXml( content )
// manipulate content
content = content.replaceAll( "444", "555" )
log.info( content )
context.httpResponse.responseContent = content
This will do what you need.
Hope this helps,
robert