I am trying to get a sessionID value from an XML response after a http request. However the response is not a clear XML, so I can't write a propertly expression to get this value.
Any idea to do that?
Response of the HTTP Request
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It only takes a minute to sign up.Sign up to join this community
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def responseHolder = groovyUtils.getXmlHolder( "CHANGE THIS TO YOUR SOAP CALL ID#response" ) // Extract ProposalId field from the XML def dataString = responseHolder.getNodeValue["//<CMFResponse><ReturnCode>"] // Use split to extract the required data def temp1, temp2, sessionId temp1 = dataString.split("SessionID=") temp2 = temp1.split("]]>") sessionID = temp2