kbw
9 years agoContributor
Status:
New Idea
Make wild-cards in assertions pass for elements without any content
Currently, if you write an xpath assertion with wildcards enabled, then when you have an element with the wildcard for its contents, but it is actually returned empty, then assertion fails.
It should not flag as a failure--the wildcard means that we don't care what is in the element, including nothing, as long as the element is present.
Please enhance/fix the wild-cards to pass in this scenario.
Example:
You have a JDBC test step that returns this:
[...]
<SOMETAG>ExpectedData</SOMETAG>
<SOMEOPTIONALINFO/>
[...]
And your xpath assertion includes something like this:
[...]
<SOMETAG>ExpectedData</SOMETAG>
<SOMEOPTIONALINFO>*</SOMEOPTIONALINFO>
[...]
Then currently, this validation fails. However, it really should pass, since the wildcard was used.