Forum Discussion

JMcKinley's avatar
JMcKinley
Contributor
16 years ago

SOAP Request - XPath Match

Is there a way to use a test suite property in the expected results of an Xpath Match?

For example, here is a portion of the xpath match:

"http://schemas.xmlsoap.org/soap/envelope/">Jim's Test

Jim's Test is in a test suite property... is there a way to access it in the XPath Match expected results?

Thanks!

2 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hello!

    Yes, this is done by using a property expansion (see the user guide). The easiest way of doing this (using soapUI PRO) is by using the "Select Content" dropdown menu from the XPath Match configuration dialog. From there you have access to all your properties defined on TestCase, TestSure and Project levels, and also the ability to create new properties. Good luck!

    Regards,
    Dain
    eviware support