Forum Discussion
rupert_anderson
10 years agoValued Contributor
Hi,
Unfortunately, unlike the commercial / pro, open-source SoapUI doesn't have JSON Assertion types built in, but luckily this is easily provided via the (Groovy) Script Assertion type.
For example you can quite easily:
- Check JSON response properties using Json Slurper (nice and easy). Json Slurper is built into standard Groovy so there is no need to add any external libraries to SoapUI. Please see the final recipe in a article I wrote for an example SoapUI With JSON Slurper
- Or alternatively you could use json-path (https://code.google.com/p/json-path/) as SoapUI pro does (this does require external libraries to be added, I could provide an example if needed).
- To check JSON schema compliance you could use json-schema (http://json-schema.org/), again this is a little more involved in terms of requirining the json-schema libraries to be added. Still quite doable. Can discuss the code if required.
If you're quite new to SoapUI then probably try the first option and let me know if you need any help.
Cheers,
Rupert