public class RestSteps extends Object
| Constructor and Description |
|---|
RestSteps() |
@When(value="^I make a (GET|HEAD) call to \"(.*?)\" endpoint$") public final void iMakeAGetHeadCallToEndpoint(String method, String endpointUrl) throws Throwable
Throwable@When(value="^I make a (POST|PUT) call to \"(.*?)\" endpoint with post body:$") public final void iMakeAPostPutCallToEndpointWithPostBody(String method, String endpointUrl, String postBody) throws Throwable
Throwable@When(value="^I make a (POST|PUT) call to \"(.*?)\" endpoint with post body in file \"(.*?)\"$") public final void iMakeAPostPutCallToEndpointWithPostBodyInFile(String method, String endpointUrl, String postBodyFilePath) throws Throwable
Throwable@When(value="^I make a DELETE call to \"(.*?)\" endpoint$") public final void iMakeADeleteCallToEndpoint(String endpointUrl) throws Throwable
Throwable@When(value="^I make a (GET|HEAD) call to \"(.*?)\" endpoint with headers:$") public void iMakeAGetHeadCallToEndpointWithHeaders(String method, String endpointUrl, cucumber.api.DataTable headers) throws Throwable
Throwable@When(value="^I make a (GET|HEAD) call to \"(.*?)\" endpoint with query params:$") public void iMakeAGetHeadCallToEndpointWithQueryParams(String method, String endpointUrl, cucumber.api.DataTable params) throws Throwable
Throwable@When(value="^I make a (POST|PUT) call to \"(.*?)\" endpoint with post body in file \"(.*?)\" and headers:$") public void iMakeAPostPutCallToEndpointWithPostBodyInFileAndHeaders(String method, String endpointUrl, String postBodyFilePath, cucumber.api.DataTable headers) throws IOException, URISyntaxException
IOExceptionURISyntaxException@Then(value="^response status code should be (\\d+)$")
public final void responseStatusCodeShouldBe(int statusCode)
throws Throwable
Throwable@Then(value="^response content type should be \"(.*?)\"$") public final void responseContentTypeShouldBe(String contentType) throws Throwable
Throwable@Then(value="^response should be json in file \"(.*?)\"$") public final void responseShouldBeJsonResponseBody(String contentFilePath) throws Throwable
Throwable@Then(value="^response should be json in file \"(.*?)\" ignoring array order$") public final void responseShouldBeJsonIgnoringArrayOdersResponseBody(String contentFilePath) throws Throwable
Throwable@Then(value="^response should be json:$") public final void responseShouldBeJson(String jsonResponseString) throws Throwable
Throwable@Then(value="^response should be json ignoring array order:$") public final void responseShouldBeJsonIgnoringArrayOrder(String jsonResponseString) throws Throwable
Throwable@Then(value="^response should be empty$")
public final void responseShouldBeEmpty()
throws Throwable
Throwable@Then(value="^response should be:$") public final void responseShouldBe(String contentFile) throws Throwable
Throwable@Then(value="^response should be file \"(.*?)\"$") public final void responseShouldBeFile(String contentFilePath) throws Throwable
Throwable@Then(value="^response header \"(.*?)\" should be \"(.*?)\"$") public final void responseHeaderShouldBe(String responseHeaderName, String headerValue) throws Throwable
Throwable@Then(value="^response json path list \"(.*?)\" should be:$") public void responseJsonPathListShouldBe(String jsonPath, cucumber.api.DataTable list) throws Throwable
Throwable@Then(value="^response json path element \"(.*?)\" should be \"(.*?)\"$") public void responseJsonPathElementShouldBe(String jsonPath, String value) throws Throwable
Throwable@Then(value="^response json path list \"(.*?)\" should be of length (\\d+)$") public void responseJsonPathListShouldBeOfLength(String jsonPath, int length)
@Then(value="^response json path list \"(.*?)\" should be at least of length (\\d+)$") public void responseJsonPathListShouldBeAtLeastOfLength(String jsonPath, int length)
Copyright © 2014-2015 Tomitribe Corporation. All Rights Reserved.