Package co.nz.getskills.auto.appsteps
Class APISteps
- java.lang.Object
-
- co.nz.getskills.auto.appsteps.APISteps
-
public class APISteps extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description APISteps(TestContext testContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidi_check_respons_code(java.lang.Integer responseCode)voidi_check_respons_contains_json_object(java.lang.String value, java.lang.String jsonPath)voidi_send_compiled_request()voidi_send_request_to_endpoint(java.lang.String apiAction, java.lang.String URI)voidi_set_auth_Type(java.lang.String authType)voidi_set_contentType_for_restful_endpoint(java.lang.String contentType)voidi_set_parameters_for_restful_endpoint(io.cucumber.datatable.DataTable parameters)voidi_set_request_headers_to_endpoint(io.cucumber.datatable.DataTable requestHeaders)voidi_set_requestbody_for_restful_endpoint(java.lang.String requestBody)
-
-
-
Constructor Detail
-
APISteps
public APISteps(TestContext testContext)
-
-
Method Detail
-
i_set_auth_Type
@When("^API - I set authType (.+)$") public void i_set_auth_Type(java.lang.String authType) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_send_request_to_endpoint
@When("^API - I set (.+) request to a restful endpoint (.+)$") public void i_send_request_to_endpoint(java.lang.String apiAction, java.lang.String URI) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_set_request_headers_to_endpoint
@When("^API - I set request headers to a restful endpoint(.+)$") public void i_set_request_headers_to_endpoint(io.cucumber.datatable.DataTable requestHeaders) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_set_parameters_for_restful_endpoint
@When("^API - I set parameters for a restful endpoint(.+)$") public void i_set_parameters_for_restful_endpoint(io.cucumber.datatable.DataTable parameters) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_set_requestbody_for_restful_endpoint
@When("^API - I set request body for a restful endpoint$") public void i_set_requestbody_for_restful_endpoint(java.lang.String requestBody) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_set_contentType_for_restful_endpoint
@When("^API - I set content type for a restful endpoint (.+)$") public void i_set_contentType_for_restful_endpoint(java.lang.String contentType) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_send_compiled_request
@When("^API - I send the compiled request to the restful interface$") public void i_send_compiled_request() throws java.lang.Exception- Throws:
java.lang.Exception
-
i_check_respons_code
@When("^API - I check the response code is (\\d+)$") public void i_check_respons_code(java.lang.Integer responseCode) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_check_respons_contains_json_object
@When("^API - I check the response contains value (.+) for json object path (.+)$") public void i_check_respons_contains_json_object(java.lang.String value, java.lang.String jsonPath) throws java.lang.Exception- Throws:
java.lang.Exception
-
-