header
header
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome, Guest. Please login or register.
November 22, 2008, 09:58:38 am
Username: Password:
Login with username, password and session length

Forgot your password?
 
Remove Empty Content and parent elements
Welcome, Guest. Please login or register.
November 22, 2008, 09:58:38 am
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

+  Eviware Forum
|-+  soapUI
| |-+  soapUI
| | |-+  Remove Empty Content and parent elements
« previous next »
Pages: [1] Print
Author Topic: Remove Empty Content and parent elements  (Read 308 times)
hanning
Newbie
*
Posts: 3


« on: February 11, 2008, 06:35:11 pm »

When using the Remove Empty Content feature SoapUI 2.0 Pro is correctly removing empty (and whitespace only) elements.  However, is there a way to also remove parent elements if all sibling elements were removed?

I couldn't find an answer in the user guide (http://www.soapui.org/userguide/requests.html#Request_Details_Tab), so I hope I haven't missed anything obvious.

Right now I have inserted ahead of the request step in my test case a Groovy step which takes care of removing parent elements all the way up to the root element if need be.  Unfortunately, the script is not general purpose but has been taylored to the specific message schema.  I was hoping that there would be some built-in functionality to achieve the same thing.
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,425


« Reply #1 on: February 11, 2008, 11:18:29 pm »

Hi!

unfortunately there is no such built in functionality, so a Groovy script as you describe is one way of achieving this. Another would be to create a custom RequestFilter (see http://www.soapui.org/architecture/extensions.html) that removes the remaining empty elements just before the request is sent.

regards,

/Ole
eviware.com
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header