public class RestStep extends Object
| Constructor and Description |
|---|
RestStep() |
| Modifier and Type | Method and Description |
|---|---|
void |
array_of_size_is(String key,
int size) |
void |
content_is(String contentContains) |
com.jayway.restassured.specification.RequestSpecification |
currentRequest() |
com.jayway.restassured.response.Response |
currentResponse() |
com.jayway.restassured.response.ValidatableResponse |
currentValidatableResponse() |
int |
getPORT() |
void |
header_is(String headerKey,
String headerValue) |
void |
index_has_the_key_and_value(int index,
String key,
String value) |
void |
json_key_is(String key,
String value) |
void |
object_has_the_value(String query,
Boolean not,
String value) |
void |
parameter_has_no_value(String query) |
void |
port_is(int port) |
void |
setPORT(int pORT) |
void |
status_is(int status) |
void |
that_url_is(String url) |
void |
time_is_below_milliseconds(int maxTime,
TimeUnit timeUnit) |
void |
we_get(String action,
String path) |
void |
we_send_param_with_value(String key,
String value) |
void |
we_send(String content) |
void |
we_set_cookie_to(String cookieKey,
String cookieValue) |
void |
we_set_header_to(String headerName,
String headerValue) |
@Given(value="^that url is \"([^\"]*)\"$") public void that_url_is(String url) throws Throwable
Throwable@Given(value="^port is (\\d+)$")
public void port_is(int port)
throws Throwable
Throwable@When(value="^we (get|post|put|update|patch|delete) \"([^\"]*)\"$") public void we_get(String action, String path) throws Throwable
Throwable@Given(value="^we send param \"([^\"]*)\" with ?(?:value)? \"([^\"]*)\"$") public void we_send_param_with_value(String key, String value) throws Throwable
Throwable@Given(value="^we send:$") public void we_send(String content) throws Throwable
Throwable@Then(value="^status is (\\d+)$")
public void status_is(int status)
throws Throwable
Throwable@Then(value="^content is \"([^\"]*)\"$") public void content_is(String contentContains) throws Throwable
Throwable@Then(value="^json key \"([^\"]*)\" is \"([^\"]*)\"$") public void json_key_is(String key, String value) throws Throwable
Throwable@Then(value="^header \"([^\"]*)\" is \"([^\"]*)\"$") public void header_is(String headerKey, String headerValue) throws Throwable
Throwable@Given(value="^we set header \"([^\"]*)\" to \"([^\"]*)\"$") public void we_set_header_to(String headerName, String headerValue) throws Throwable
Throwable@Then(value="^index (\\d+) has the key \"([^\"]*)\" and value \"([^\"]*)\"$")
public void index_has_the_key_and_value(int index,
String key,
String value)
throws Throwable
Throwable@Then(value="^parameter \"([^\"]*)\" (?:is?( not)?) \"?([^\"]*|\\d+.\\d+|\\d+)?\"?$") public void object_has_the_value(String query, Boolean not, String value) throws Throwable
Throwable@Then(value="^parameter \"([^\"]*)\" has no value$") public void parameter_has_no_value(String query) throws Throwable
Throwable@Then(value="^size of \"([^\"]*)\" is (\\d+)$") public void array_of_size_is(String key, int size) throws Throwable
Throwable@Then(value="^time is below (\\d+) ?(milliseconds|seconds)?$")
public void time_is_below_milliseconds(int maxTime,
TimeUnit timeUnit)
throws Throwable
Throwable@Given(value="^we set cookie \"([^\"]*)\" to \"([^\"]*)\"$") public void we_set_cookie_to(String cookieKey, String cookieValue) throws Throwable
Throwablepublic com.jayway.restassured.specification.RequestSpecification currentRequest()
public com.jayway.restassured.response.Response currentResponse()
public com.jayway.restassured.response.ValidatableResponse currentValidatableResponse()
public int getPORT()
public void setPORT(int pORT)
Copyright © 2017. All rights reserved.