BA_Service_Haus
16 years agoRegular Contributor
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
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