Solved
Forum Discussion
teak
10 years agoContributor
I managed to get there eventually,
I used the groovy script to get the cdata and removed the string "access_token=" from it. I ended up with what I wanted in the end.
I'm not sure if this is a good practice though. I thought there maybe and easier way to get it.
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context) def response = context.expand('${GET access token#ResponseAsXml}') def holder = groovyUtils.getXmlHolder(response) node_data = holder.getNodeValue("//data") context.access_token = node_data.replaceAll("access_token=", ""); log.info context.access_token