Class APISteps


  • public class APISteps
    extends java.lang.Object
    • 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