Forum Discussion
You lost me a little. Are you saying the groovy ran fine with one handler, but didnt with the other handler?
Ta
Rich
hi richie
yes.I write the details below.
1. SubmitListener.afterSubmit
a. script is working when I run it manually. (I put the screenshot below)
b. When I run the script automatically, the test suite doesn't work.
2. we tried to solve this problem using RequestFilter.afterRequest but it doesn't work at all (a and b).
I hope I haven't confused you more. I would be very happy if you could help me
- HimanshuTayal4 years agoCommunity Hero
hrn83au :
You can use below script to fetch data from cData tag, there is no need to replace the cData Tag
import com.eviware.soapui.support.GroovyUtils def response = context.httpResponse.responseContent def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def v=groovyUtils.getXmlHolder(response) def CDATAXml=v.getNodeValue("//*:return") //it will print cdata log.info CDATAXml def data = new XmlParser().parseText(CDATAXml) //it will print SONUC value log.info data.SONUC.text()
Hope it will help you in resolving your issue.
- hrn83au4 years agoOccasional Contributor
I did not understand where to use this script. can you specify that too.
thank you.
- HimanshuTayal4 years agoCommunity Hero
hrn83au :
You can add this in any groovy step or script assertion where ever you want to fetch CDATA value.
Related Content
- 2 years agoBrianFixzone
- 4 years agocarlomarchesoni
- 5 years agogenki
- 11 months agoTomA
- 3 years agoPete_W
Recent Discussions
- 7 minutes agoisbiat
- 18 minutes agodipsthorat
- 24 hours agoarmygrad