Class CommonSteps


  • public class CommonSteps
    extends java.lang.Object
    • Constructor Detail

      • CommonSteps

        public CommonSteps()
    • Method Detail

      • iWillGetTheProperStatusCodeStatusCode

        @Then("se obtuvo el status code (.*)")
        @And("status code (.*) is obtained")
        public void iWillGetTheProperStatusCodeStatusCode​(int expStatusCode)
      • verifyNullResponse

        @Then("no se obtuvo ningun response")
        @And("not response at all is obtained")
        public void verifyNullResponse()
      • verifyEmptyResponse

        @Then("se obtuvo el response vac\u00edo")
        @And("response is empty")
        public void verifyEmptyResponse()
      • verifyEmptyArrayResponse

        @Then("se obtuvo el response de array vac\u00edo")
        @And("response array is empty")
        public void verifyEmptyArrayResponse()
      • validateTextResponse

        @Then("se obtuvo el texto (.*) como response")
        @And("text (.*) was obtained in response")
        public void validateTextResponse​(java.lang.String response)
      • iWillGetTheProperResponse

        @Then("se obtuvo el response esperado en ([^ ]*) con el ([^ ]*)")
        @And("expected response is obtained in \'([^\']*)\' with \'([^\']*)\'")
        public void iWillGetTheProperResponse​(java.lang.String entity,
                                              java.lang.String jsonName)
                                       throws java.io.IOException,
                                              java.lang.ClassNotFoundException,
                                              java.lang.NoSuchMethodException,
                                              java.lang.IllegalAccessException,
                                              java.lang.InstantiationException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
        java.lang.NoSuchMethodException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
      • iWillGetTheProperResponseWithParameters

        @Then("se obtuvo el response esperado en ([^ ]*) con el ([^ ]*) y sus parametros ([^ ]*)")
        @And("expected response is obtained in \'([^\']*)\' with \'([^ ]*)\' and the parameters \'([^\']*)\'")
        public void iWillGetTheProperResponseWithParameters​(java.lang.String entity,
                                                            java.lang.String jsonName,
                                                            java.lang.String inputParameters)
                                                     throws java.io.IOException,
                                                            java.lang.ClassNotFoundException,
                                                            java.lang.NoSuchMethodException,
                                                            java.lang.IllegalAccessException,
                                                            java.lang.InstantiationException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
        java.lang.NoSuchMethodException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
      • iWillGetTheProperResponseModified

        @Then("se obtuvo el response esperado en ([^ ]*) modificando el ([^ ]*)")
        @And("expected response is obtained in \'([^\']*)\' with \'([^\']*)\' modifying the \'([^\']*)\'")
        public void iWillGetTheProperResponseModified​(java.lang.String entity,
                                                      java.lang.String expectedJsonName)
                                               throws java.lang.NoSuchMethodException,
                                                      java.lang.reflect.InvocationTargetException,
                                                      java.lang.IllegalAccessException,
                                                      java.io.IOException,
                                                      java.lang.ClassNotFoundException,
                                                      java.lang.InstantiationException
        Throws:
        java.lang.NoSuchMethodException
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException
        java.io.IOException
        java.lang.ClassNotFoundException
        java.lang.InstantiationException
      • iWillGetTheProperResponseModifiedWithParameters

        @Then("se obtuvo el response esperado en ([^ ]*) modificando el ([^ ]*) y sus parametros ([^ ]*)")
        @And("expected response is obtained in \'([^\']*)\' modifying the \'([^ ]*)\' and the parameters \'([^\']*)\'")
        public void iWillGetTheProperResponseModifiedWithParameters​(java.lang.String entity,
                                                                    java.lang.String expectedJsonName,
                                                                    java.lang.String inputParameters)
                                                             throws java.lang.NoSuchMethodException,
                                                                    java.lang.reflect.InvocationTargetException,
                                                                    java.lang.IllegalAccessException,
                                                                    java.io.IOException,
                                                                    java.lang.ClassNotFoundException,
                                                                    java.lang.InstantiationException
        Throws:
        java.lang.NoSuchMethodException
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException
        java.io.IOException
        java.lang.ClassNotFoundException
        java.lang.InstantiationException
      • iWillGetTheProperResponseWithObject

        @Then("se obtuvo el response esperado en ([^ ]*)")
        @And("expected response is obtained in \'([^\']*)\'")
        public void iWillGetTheProperResponseWithObject​(java.lang.String entity)
                                                 throws java.io.IOException,
                                                        java.lang.ClassNotFoundException,
                                                        java.lang.NoSuchMethodException,
                                                        java.lang.reflect.InvocationTargetException,
                                                        java.lang.IllegalAccessException,
                                                        java.lang.InstantiationException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
        java.lang.NoSuchMethodException
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
      • iWillGetTheProperResponseWithObjectAndParameters

        @Then("se obtuvo el response esperado en ([^ ]*) y sus parametros ([^ ]*)")
        @And("expected response is obtained in \'([^\']*)\' and the parameters \'([^\']*)\'")
        public void iWillGetTheProperResponseWithObjectAndParameters​(java.lang.String entity,
                                                                     java.lang.String inputParameters)
                                                              throws java.lang.NoSuchMethodException,
                                                                     java.lang.reflect.InvocationTargetException,
                                                                     java.lang.IllegalAccessException,
                                                                     java.io.IOException,
                                                                     java.lang.ClassNotFoundException,
                                                                     java.lang.InstantiationException
        Throws:
        java.lang.NoSuchMethodException
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException
        java.io.IOException
        java.lang.ClassNotFoundException
        java.lang.InstantiationException
      • iWillGetTheProperResponseWithObject

        @Then("se obtuvo el response esperado en ([^ ]*) con el metodo ([^ ]*)")
        @And("expected response is obtained in \'([^\']*)\' with the method \'([^\']*)\'")
        public void iWillGetTheProperResponseWithObject​(java.lang.String entity,
                                                        java.lang.String method)
                                                 throws java.io.IOException,
                                                        java.lang.ClassNotFoundException,
                                                        java.lang.NoSuchMethodException,
                                                        java.lang.reflect.InvocationTargetException,
                                                        java.lang.IllegalAccessException,
                                                        java.lang.InstantiationException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
        java.lang.NoSuchMethodException
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException
        java.lang.InstantiationException