Forum Discussion
SmartBear_Suppo
15 years agoSmartBear Alumni (Retired)
Hello,
You need to create the XmlHolder with a reference to the actual property, otherwise updateProperty won't do anything. Instead of callong holder.updateProperty(), set the request to the XML content as follows:
Regards,
Dain
eviware.com
You need to create the XmlHolder with a reference to the actual property, otherwise updateProperty won't do anything. Instead of callong holder.updateProperty(), set the request to the XML content as follows:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def request1 = testSuite.testCases["Test Case"].testSteps["teststep"].testRequest
def holder = groovyUtils.getXmlHolder(request1.requestContent)
def h = holder.getNodeValue("//man:customerId")
def y = holder.getNodeValue("//man:customerId")
holder.setNodeValue("//man:customerId","234")
request1.requestContent = holder.xml
Regards,
Dain
eviware.com
Related Content
- 2 years agoKimdongart1
- 2 years agoLennSar