This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: GroovyUtils removeDomNodes says no error, but do not see the request being updated