Forum Discussion

boy141's avatar
boy141
New Contributor
15 years ago

DataDriven test but there are nodes that need to be removed

Hi Guys,

I have been experimenting with SoapUI for about a year now and pretty much convinced this is tool to go in web service testing (almost convinced work to buy the tool).

So I've hit a snag. I am using the pro version because I discovered its awesomeness with datadriven testing. So here's my roadblock. I am testing a whole slaw of data inputs. So here's an example of what I am going at:

Parameter1:Column1
Parameter2:Column2
Parameter3:Column3
<parameter1>cows</parameter1>
<parameter2>moo</parameter2>
<parameter3>barn</parameter3>
My data is coming from an excel spreadsheet.

Let's say row 1 has all 3 parameters.
Now row 2 has all but parameter 3.
And Row 3 has only parameter 1.

Is there a way to say "if parameter 1 is empty, remove node in the request" vice versa? This shows up in the request:

Row1
<parameter1>cows</parameter1>
<parameter2>moo</parameter2>
<parameter3>barn</parameter3>

Row2
<parameter1>cows</parameter1>
<parameter2>moo</parameter2>
<parameter3></parameter3>

Row 3
<parameter1>cows</parameter1>
<parameter2></parameter2>
<parameter3></parameter3>

What do I need to do to get it remove those nodes when empty? The "skip row if column is empty" checkbox is not an option for me.


Thank you for your time!
No RepliesBe the first to reply