-
Notifications
You must be signed in to change notification settings - Fork 67
Given
Javier Romero edited this page Jan 17, 2017
·
7 revisions
Given Step | Description | Sample |
---|---|---|
accept "<string>" mediaTypes | Set header Accept value to a provided string for the next request | accept "application/json" mediatypes |
accept mediaType is JSON | Set header Accept value to "application/json" for the next request | accept mediaType is JSON |
authentication type is "<string>" | Set authentication type to provided string for current Scenario | authentication type is "BASIC" |
baseUri is "<string>" | Set base request link to provided string for current Scenario | baseUri is "http://localhost:8080" |
content type is "<string>" | Set header Content-Type value to provided string for the next request | content type is "application/json" |
content type is JSON | Set header Content-Type value to application/json for the next request | content type is JSON |
cookie "<string>" with value "<string>" | Set required cookie value to provided string for the next request | cookie "LtpaToken2" with value "abcdefg" |
formParam "<string>" is "<string>" | Description | Sample |
header "<string>" with value "<string>" | Set required header value to provided string for the next request | header "If-Match" with value "123" |
let variable "<string>" equal to "<string>" | Create variable and assign it provided string value for further usage in current Scenario | let variable "gadget" equal to "iPad" |
param "<string>" "<string>" | Description | Sample |
proxy settings are "<string>" | Description | Sample |
queryParam "<string>" is "<string>" | Description | Sample |
request body "<string>" | Sets request body to provided string for the next request | request body "{"type": "INVALID_TYPE"}" |
request body from file "<string>" | Sets next request body according to file located in path provided | request body from file "gadgets/requests/newGadget.json" |
request body is a multipart file "<string>" | Description | Sample |
request body: ... | Description | Sample |
resources root is "<string>" | Sets resources root folder path to provided string for current Scenario | resources root is "cukes-rest-sample\src\test\resources\features\gadgets\requests" |
session ID "<string>" | Description | Sample |
session ID "<string>" with value "<string>" | Description | Sample |
should wait at most <number> with interval <number> until status code <number> | Description | Sample |
should wait at most <number> with interval <number> until status code <number> or fail with "<string>" | Description | Sample |
should wait at most <number> with interval <number> until property "<string>" equal to "<string>" | Description | Sample |
should wait at most <number> with interval <number> until property "<string>" equal to "<string>" or fail with "<string>" | Description | Sample |
should wait at most <number> with interval <number> until header "<string>" equal to "<string>" | Description | Sample |
should wait at most <number> with interval <number> until header "<string>" equal to "<string>" or fail with "<string>" | Description | Sample |
username "<string>" and password "<string>" | Sets username and password for requests for current Scenario | username "TestUser" and password "TestPassword" |