Rest Assured ApI Testing - Response body validation

Опубликовано: 14 Апрель 2026
на канале: KB Tutorials
12,338
76

This video explains how to validate the response body in rest assured using hamcrest.is method.

Below are the content:
1)Dependency -
rest Assured -3.2.0
groovy -2.5.4
2) Request link: http://postalpincode.in/api/pincode/{PINCODE}
3)Respone body : log().all()
4)Response body single element validation using Is method
5)Json Beautifier :https://codebeautify.org/jsonviewer

Here response body is coming in jon format using hamcrest api I am validating elements