Forum Discussion

BA_Service_Haus's avatar
BA_Service_Haus
Regular Contributor
14 years ago

How to use wildcards in XPath Match Assertion

Hello *,

we are using SoapUi 3.6.1

We try to use a wildcard * in a XPath Match assertion but it seems as if the wildcard is seen as a character and not as a wildcard.



Do you have any ideas why it is like it is? Is this a known issue?

Kind Regards,
Carsten

3 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    Wildcards only work for when you have a block of XML and you set the contents of an element or attribute to be *. If you're just verifying that the element existis you could use this instead:


    XPath Expression
    declare ...
    count(//ns5:getServiceInfoResponse[1]/...)

    Expected Result
    1


    Regards,
    Dain
    eviware.com
  • BA_Service_Haus's avatar
    BA_Service_Haus
    Regular Contributor
    hi,

    are there any thoughts about to make the use of wildcards like (ABC*EFG) possible? As it is possible in Nodes.

    regards
    Carsten
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi Carsten,

    That would be pretty useful. I'll add it to the backlog!

    Regards!

    /Henrik
    eviware support