-
Notifications
You must be signed in to change notification settings - Fork 67
Variables
Igor Gursky edited this page Sep 23, 2016
·
7 revisions
Given let variable "gadgetId" equal to "12345"
When the client performs GET request on /gadgets/{(gadgetId)}
When the client performs GET request on /gadgets
Then response contains property "gadgets[0].id" of value "{(header.GadgetId)}"
Given request body from file gadgets/requests/newGadget.json
When the client performs POST request on /gadgets
Then let variable "gadgetURL" equal to header "Location" value
Given request body from file gadgets/requests/newGadget.json
When the client performs POST request on /gadgets
Then let variable "gadgetOwner" equal to property "owner" value
Then response contains property "prop[0].long" not matching pattern "{(header.Custom-Header)}"