Then Steps
Autokin REST Steps
Asserting for HTTP Status Codes
Then response status code should be {expected status code}
{expected status code}Scenario: Getting user information
Given that a endpoint is up at mydomain.com
Given I set Content-Type header to application/json
Given I set DocId header to 3001
When I GET /users/info
Then response status code should be 200Then response status code should not be {expected status code}
{expected status code}Scenario: Getting user information
Given that a endpoint is up at mydomain.com
Given I set Content-Type header to application/json
Given I set DocId header to 3001
When I GET /users/info
Then response status code should not be 404Validating HTTP Headers
Then response header {expected HTTP Header} should exist
{expected HTTP Header} should existThen response header {expected HTTP Header} should not exist
{expected HTTP Header} should not existThen response header {expected HTTP Header} should be {expected HTTP Header value}
{expected HTTP Header} should be {expected HTTP Header value}Then response header {expected HTTP Header} should not be {expected HTTP Header value}'
{expected HTTP Header} should not be {expected HTTP Header value}'Verifying Response Body
Then response body should be valid json
Then response body should be json data of
Asserting for JSON Paths and Value
Then I expect that path {path} from body has value of {expected value}
{path} from body has value of {expected value}Then I expect that path {path} from body has null value
{path} from body has null valueThen response body should have path {expected JSON path}
{expected JSON path}Then I expect that from path of{JSON Path} contains {expected value}
{JSON Path} contains {expected value}Then I expect that from path of{JSON Path} not contains {expected value}
{JSON Path} not contains {expected value}Storing Response Values
Then I keep the value of body path {JSON body path} as {store name}
{JSON body path} as {store name}Then I keep the value of header {name} as {store name}
{name} as {store name}Then I expect that the stored value in {store name} is {expected value}
{store name} is {expected value}Then I save data from path{JSON Path} that contains {expected value} to file {file path}
{JSON Path} that contains {expected value} to file {file path}Last updated
Was this helpful?