aspose file tools*
The moose likes Groovy and the fly likes GroovyUtils removeDomNodes says no error, but do not see the request being updated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "GroovyUtils removeDomNodes says no error, but do not see the request being updated" Watch "GroovyUtils removeDomNodes says no error, but do not see the request being updated" New topic
Author

GroovyUtils removeDomNodes says no error, but do not see the request being updated

Sindhu Kodoor
Ranch Hand

Joined: Sep 03, 2010
Posts: 65
I am very new to groovy , and I have a input request that is one of the test step of a test suite/Test case in soap UI 4.5.1, the requirement is to remove a node based on some conditional check and write back to the test step, here is the XML:


And I want to remove the node <Cover key="2"> So I wrote this groovy script in soapUIPro 4.5.1:



It prints done,but I don't see anything happening, so obviously I need to set the context or request? but did not find the right API docs for that, please kindly help anyone.
Sindhu Kodoor
Ranch Hand

Joined: Sep 03, 2010
Posts: 65
Never mind. removeNodes do not work for some reason. So, I switched to XmlParser.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GroovyUtils removeDomNodes says no error, but do not see the request being updated
 
Similar Threads
selectNodeIterator() problem
JAX-RPC and Calendar question
Help with SAAJ and SOAP 1.2
How to pass complex type parameter in web service while creating it through SAAJ
random xmlns attribute order causing unexpected XML tag exception