Forum Discussion

Dean_Health_Pla's avatar
Dean_Health_Pla
New Contributor
12 years ago

Conditional XPath Assertions

Hi there – new SoapUI Pro user here.

I am wondering what the best practice is for validating XPaths in a SOAP Request that do not always show up, or may show up at certain times based on the value in an adjacent node. This may be two solutions: 1.) setting up assertions on xpaths that don’t always exist, which is ok if my test data is empty or 0 so I don’t want a hard failure, and 2.) setting up assertions on xpaths that will exist only if an adjacent field returns “true”.

Thanks for your help!

2 Replies

  • I'm terribly sorry for the late reply,

    i just want to check in if you are still having questions about the XPath Assertions after having checked out nmrao's link.
    If that's the case, feel free to let us know and we will assist you further!

    Best regards,
    Mikael
    SmartBear Support