Skip to content
Igor Gursky edited this page Sep 23, 2016 · 4 revisions

Reading Response body from file

Given request body from file gadgets/requests/newGadget.json
When the client performs POST request on /gadgets

Reading Response body from file

When the client performs GET request on /gadgets/12345
Then response contains properties from file gadgets/responses/createdGadget.json

In the mentioned example, Gadget with ID 12345 is returned in the response and all properties from createdGadget.json are searched in response body, values are asserted to be equal.

Clone this wiki locally