Package com.crowdar.api.rest
Class CommonSteps
- java.lang.Object
-
- com.crowdar.api.rest.CommonSteps
-
public class CommonSteps extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CommonSteps()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidiWillGetTheProperResponse(java.lang.String entity, java.lang.String jsonName)voidiWillGetTheProperResponseModified(java.lang.String entity, java.lang.String expectedJsonName)voidiWillGetTheProperResponseModifiedWithParameters(java.lang.String entity, java.lang.String expectedJsonName, java.lang.String inputParameters)voidiWillGetTheProperResponseWithObject(java.lang.String entity)voidiWillGetTheProperResponseWithObject(java.lang.String entity, java.lang.String method)voidiWillGetTheProperResponseWithObjectAndParameters(java.lang.String entity, java.lang.String inputParameters)voidiWillGetTheProperResponseWithParameters(java.lang.String entity, java.lang.String jsonName, java.lang.String inputParameters)voidiWillGetTheProperStatusCodeStatusCode(int expStatusCode)voidvalidateTextResponse(java.lang.String response)voidverifyEmptyArrayResponse()voidverifyEmptyResponse()voidverifyNullResponse()
-
-
-
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.IOExceptionjava.lang.ClassNotFoundExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.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.IOExceptionjava.lang.ClassNotFoundExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.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.NoSuchMethodExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.IllegalAccessExceptionjava.io.IOExceptionjava.lang.ClassNotFoundExceptionjava.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.NoSuchMethodExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.IllegalAccessExceptionjava.io.IOExceptionjava.lang.ClassNotFoundExceptionjava.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.IOExceptionjava.lang.ClassNotFoundExceptionjava.lang.NoSuchMethodExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.IllegalAccessExceptionjava.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.NoSuchMethodExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.IllegalAccessExceptionjava.io.IOExceptionjava.lang.ClassNotFoundExceptionjava.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.IOExceptionjava.lang.ClassNotFoundExceptionjava.lang.NoSuchMethodExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationException
-
-