Steven_Yip
16 years agoOccasional Contributor
Assertions with partial wildcards?
Hi, is it possible for the open-source version of SoapUI to do assertions that combine wildcards as well as static values?
For example, if I have a SOAP response that looks like this;
Quick brown fox
Would I be able to create an assertion that verifies the presence of the word "brown", and not care about any other text around it?
So I'm thinking my assertion would be an XPath along the lines of
*brown*
Better yet, if wildcards work on just the value (without the XML block enclosing it), I'd use a more specific XPath to verify the response, so the value of //tag/response must be [*brown*]
Ideas anyone?
Thanks,
Steve
PS - yes this is a trivial example, but I do have a real-life application that's returning messages that include both static and dynamic text components in an element, and I really want to verify the static components.
For example, if I have a SOAP response that looks like this;
Would I be able to create an assertion that verifies the presence of the word "brown", and not care about any other text around it?
So I'm thinking my assertion would be an XPath along the lines of
Better yet, if wildcards work on just the value (without the XML block enclosing it), I'd use a more specific XPath to verify the response, so the value of //tag/response must be [*brown*]
Ideas anyone?
Thanks,
Steve
PS - yes this is a trivial example, but I do have a real-life application that's returning messages that include both static and dynamic text components in an element, and I really want to verify the static components.