Saturday, November 22, 2014

How to access Nodes Using XmlHolder in SoapUI API

import com.eviware.soapui.support.*

def request='''
<Body>
<keyboard1>Qwerty~12-qwerty</keyboard1>
<conversationId1>sfksjkdjf2213123</conversationId1>
</Body>
'''

XmlHolder holder = new XmlHolder(request)
log.info holder.getNodeValue("//keyboard1")

No comments:

Post a Comment