Forum Discussion

jwojcie's avatar
jwojcie
New Contributor
5 years ago

Schema Compliance Assertion - property expansion

Hi

 

I'm pretty sure that in previous versions of Soap UI (somewhere around ReadyApi 2.4.0) it was possible to define Schema Compliance Assertion dynamically using property expansion, like:

${#Project#service_address}/some.service?wsdl

Judging by this I'm not mistaken, it worked in the past:

https://community.smartbear.com/t5/API-Functional-Security-Testing/Schema-Compliance/m-p/7315

 

It looks like with SoapUI 5.6.0 it is not possible anymore or something changed in the way it should be used. So the first question is: is it not possible in that version?

I see I'm not the first one stumbling upon it:

https://community.smartbear.com/t5/SoapUI-Open-Source/Dynamic-Schema-Compliance-Assertions/m-p/40934

 

I've tried this solution via groovy:

https://community.smartbear.com/t5/SoapUI-Open-Source/Schema-Compliance-Assertion-setting-Definition-URL-with-Groovy/m-p/136565#M23261

Somehow it doesn't work for me as expected. It changes url only after closing and opening project again. Which is contrary to the purpose of it - being dynamically changed during execution.

 

So, to reiterate:

1. is it possible to use property expansion in Schema Compliance Assertion?

2. if not, how to change url in this assertion dynamically during test execution?

 

Regards

Jarek

  • jwojcie's avatar
    jwojcie
    New Contributor

    Thanks to SmartBear support I learnt that:

    a) property expansion in Schema Compliance Assertion works in ReadyAPI

    b) property expansion in Schema Compliance Assertion is not available / doesn't work in SoapUI Open Source.

     

    I was adviced to create a new request:

    https://github.com/SmartBear/soapui/issues/584

    and hope for the best...

     

    Happy New Year everyone!