Forum Discussion

BA_Service_Haus's avatar
BA_Service_Haus
Regular Contributor
16 years ago

XML-Nodes not available after setting empty value

Hi,

following problem was found using soapUI Pro 3.6.1.

Description:
We want to send a request several times, using different values each time.
For that we are using a data file and PropertyTransfer-TestSteps.
So at first, we set only mandatory values, and leave all other fields empty.
Later in the testcase we insert values to the mandatory and optional request fields.

But doing this, we get an error "Missing Match for Target XPath".
We investigated an found out that after setting empty data to a field, the XML-node is removed and so cannot be found later by the PropertyTransfer Step.

When using property variables (${DataSource#value}) instead of PropertyTransfer-Steps, it works fine, but this isn't what we want to do here.

So why does it fail using PropertyTransfer here?
Or did we do something wrong, maybe.

Best regards
Nico

1 Reply

  • Hi!

    hmm.. please check that the "Remove Empty Content" property for your request is set to false (in the bottom left list of properties).

    Does that help?

    regards!

    /Ole
    eviware.com