public class RestSalad
extends java.lang.Object
| Constructor and Description |
|---|
RestSalad() |
| Modifier and Type | Method and Description |
|---|---|
void |
i_add_below_values_as_parameters_to_the_request(cucumber.api.DataTable paramTable) |
void |
i_add_equal_to_as_parameter_to_request(java.lang.String key,
java.lang.String value) |
void |
i_add_post_body_to_the_request_as(java.lang.String postBody) |
void |
I_add_response_headers_to_context(java.lang.String contextName) |
void |
i_add_the_below_values_as_headers_to_the_request(cucumber.api.DataTable headerTable) |
void |
i_retrieve_the_resource() |
void |
i_start_building_a_request_with_method_and_URL(java.lang.String method,
java.lang.String serviceUrl) |
void |
the_array_has_element_with_below_attributes(java.lang.String attrPathToCheck,
cucumber.api.DataTable exptectedTable) |
void |
the_response_is_empty() |
void |
the_response_should_contain_as_empty_array(java.lang.String arrayPath) |
void |
the_response_should_contain_following_headers(cucumber.api.DataTable headerTable) |
void |
the_response_should_contain_with_elements(java.lang.String arrayPath,
int arraySize) |
void |
the_response_should_contain_with_value(java.lang.String achvAttrPathToCheck,
java.lang.String valueExpected) |
void |
the_response_should_contain_with_values(java.lang.String achvAttrPathToCheck,
cucumber.api.DataTable valueExpected) |
void |
the_response_should_contain(java.lang.String achvAttrPathToCheck) |
void |
the_status_code_returned_should_be(int status) |
@Given(value="^I start building a request with \"([^\"]*)\" method and URL \"([^\"]*)\"$")
public void i_start_building_a_request_with_method_and_URL(java.lang.String method,
java.lang.String serviceUrl)
throws java.lang.Throwable
java.lang.Throwable@Given(value="^I add \"([^\"]*)\" equal to \"([^\"]*)\" as parameter to request$")
public void i_add_equal_to_as_parameter_to_request(java.lang.String key,
java.lang.String value)
throws java.lang.Throwable
java.lang.Throwable@Given(value="^I add below values as parameters to the request:$")
public void i_add_below_values_as_parameters_to_the_request(cucumber.api.DataTable paramTable)
throws java.lang.Throwable
java.lang.Throwable@Given(value="^I add post body to the request as:$")
public void i_add_post_body_to_the_request_as(java.lang.String postBody)
throws java.lang.Throwable
java.lang.Throwable@Given(value="^I add the below values as headers to the request:$")
public void i_add_the_below_values_as_headers_to_the_request(cucumber.api.DataTable headerTable)
throws java.lang.Throwable
java.lang.Throwable@Given(value="^I retrieve the resource$")
public void i_retrieve_the_resource()
throws java.lang.Throwable
java.lang.Throwable@Then(value="^the status code returned should be (\\d+)$")
public void the_status_code_returned_should_be(int status)
throws java.lang.Throwable
java.lang.Throwable@Then(value="^The response should contain following headers:$") public void the_response_should_contain_following_headers(cucumber.api.DataTable headerTable)
@Then(value="^I add response headers to \"([^\"]*)\" context$") public void I_add_response_headers_to_context(java.lang.String contextName)
@Then(value="^The response should contain \"([^\"]*)\" with value \"([^\"]*)\"$")
public void the_response_should_contain_with_value(java.lang.String achvAttrPathToCheck,
java.lang.String valueExpected)
throws java.lang.Throwable
java.lang.Throwable@Then(value="^The response should contain \"([^\"]*)\"$")
public void the_response_should_contain(java.lang.String achvAttrPathToCheck)
throws java.lang.Throwable
java.lang.Throwable@Then(value="^The response should contain \"([^\"]*)\" with values:$")
public void the_response_should_contain_with_values(java.lang.String achvAttrPathToCheck,
cucumber.api.DataTable valueExpected)
throws java.lang.Throwable
java.lang.Throwable@Then(value="^The \"([^\"]*)\" array has element with below attributes:$")
public void the_array_has_element_with_below_attributes(java.lang.String attrPathToCheck,
cucumber.api.DataTable exptectedTable)
throws java.lang.Throwable
java.lang.Throwable@Then(value="^The response should contain \"([^\"]*)\" as empty array$")
public void the_response_should_contain_as_empty_array(java.lang.String arrayPath)
throws java.lang.Throwable
java.lang.Throwable@Then(value="^The response should contain \"([^\"]*)\" with (\\d+) elements$")
public void the_response_should_contain_with_elements(java.lang.String arrayPath,
int arraySize)
throws java.lang.Throwable
java.lang.Throwable@Then(value="^The response is empty$")
public void the_response_is_empty()
throws java.lang.Throwable
java.lang.Throwable