add
open | chrome://restclient/content/restclient.html |
click | link=Headers |
click | link=Custom Header |
type | name=name | Cookie
type | name=value | token=bXJqYXRvOm1yamF0bw==
click | css=#modal-custom-header > div.modal-footer > input.btn.btn-inverse |
click | link=Headers |
click | link=Custom Header |
type | name=name | Content-Type
type | name=value | application/x-www-form-urlencoded
click | css=#modal-custom-header > div.modal-footer > input.btn.btn-inverse |
type | id=request-body | name=Xián&surname=Ximénez
click | link=POST |
type | id=request-url | http://localhost:9080/DAAExample/rest/people
click | id=request-button |
click | link=× |
waitForElementPresent | css=span.header-value |
assertText | css=span.header-value | 200 OK
waitForElementPresent | css=#response-body-raw > pre |
storeText | css=#response-body-raw > pre | responseBody
echo | ${responseBody} |
assertEval | JSON.parse(storedVars['responseBody']).name | Xián
assertEval | JSON.parse(storedVars['responseBody']).surname | Ximénez