anandsri01
15 years agoNew Contributor
An Event Handler to the Rescue
Hi,
I want to add assertion on CDATA content so i use SubmitListener.afterSubmit handler. i use script -
if( submit.response == null )
return
def content = submit.response.responseContent
content = content.replaceAll( "<!\\[CDATA\\[", "" )
content = content.replaceAll( "]]>", "" )
log.info( content )
submit.response.responseContent = content
It works fine but after applying this the inside Response the "Outline" tab is blank or even when i tried to add assertion then after add Xpath Match and open select Xpath panel the it show blank.
So please help me how can i add assertions on CDATA content.
I want to add assertion on CDATA content so i use SubmitListener.afterSubmit handler. i use script -
if( submit.response == null )
return
def content = submit.response.responseContent
content = content.replaceAll( "<!\\[CDATA\\[", "" )
content = content.replaceAll( "]]>", "" )
log.info( content )
submit.response.responseContent = content
It works fine but after applying this the inside Response the "Outline" tab is blank or even when i tried to add assertion then after add Xpath Match and open select Xpath panel the it show blank.
So please help me how can i add assertions on CDATA content.