CXin
15 years agoFrequent Contributor
Overview is not updated after SubmitLister event
I created a new event: SubmitListener.afterSubmit
The script is too remove CDATA wrap in the response xml.
if( submit.response == null )
return
def content = submit.response.responseContent
content = content.replaceAll( "<!\\[CDATA\\[", "" )
content = content.replaceAll( "]]>", "" )
log.info( content )
submit.response.responseContent = content
============
After I run a case, I found in the response, CDATA is still there.
But in the script view, I see CDATA is removed.
How can remove the CDATA tag in the Outline view?
The script is too remove CDATA wrap in the response xml.
if( submit.response == null )
return
def content = submit.response.responseContent
content = content.replaceAll( "<!\\[CDATA\\[", "" )
content = content.replaceAll( "]]>", "" )
log.info( content )
submit.response.responseContent = content
============
After I run a case, I found in the response, CDATA is still there.
But in the script view, I see CDATA is removed.
How can remove the CDATA tag in the Outline view?