Skip to content
Anuja Kumar edited this page Jul 23, 2015 · 2 revisions

Add Asserts

Click on Asserts in the request tree column of RESTFiddle.

![Asserts Option] (https://raw.githubusercontent.com/anujak/restfiddle/gh-pages/images/Asserts_Manage.png)

Click Add Assert. Enter the property name whose value is to be checked, select comparator value from dropdown and enter expected value of the property. Multiple asserts for a property can be added. Click Save Changes to save the entered asserts. Now the Asserts button will show the count of asserts added to the request.

![Asserts Count] (https://raw.githubusercontent.com/anujak/restfiddle/gh-pages/images/Asserts_count.png)

When the request is run, asserts are evaluated and the results can be seen under Asserts tab in response section.

![Asserts Result] (https://raw.githubusercontent.com/anujak/restfiddle/gh-pages/images/Asserts_Result.png)

Clone this wiki locally