Forum Discussion

jcsreddy's avatar
jcsreddy
Occasional Contributor
7 years ago

Is there a groovy script to validate JSON response for Swagger Compliance Assertion?

4 Replies

  • groovyguy's avatar
    groovyguy
    Champion Level 1

    There probably is, if you want to write one. Groovy can be very powerful and can do quite a bit of heavy lifting when it comes to assertions. 

  • Lucian's avatar
    Lucian
    Community Hero

    Hi, I may be able to help you. Could you post more info? (like an example test case/ example response/ what kind of assertions do you want to make etc)

  • JoostDG's avatar
    JoostDG
    Frequent Contributor

    Hi,

     

    I am also curious about this. What good is setting all the environment variables dynamically if the swagger test assertion can only point to one url (by design defined for one environment).

     

    So having a groovy test step to work around this would be handy.

     

    Thanks in advance.

     

    edit: I did try of course to insert a project property into the url... to no avail...