You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.