This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sindhu Kodoor
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind. removeNodes do not work for some reason. So, I switched to XmlParser.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic