ApiResponse
getResponseDataâ
This method will get the response data from the response body.
Parametersâ
expressionâ
This parameter expects a valid JsonPath expression.
Return Type: Stringâ
Returns the response data as string.
getResponseDataâ
This method will get the response data from the response body.
Parametersâ
expressionâ
This parameter expects a valid JsonPath expression.
typeâ
This parameter expects a class type.
Return Type: <T>â
Returns the response data as Java object.
verifyBooleanFieldâ
This method will verify the boolean field in the response body.
Parametersâ
expressionâ
This parameter expects a valid JsonPath expression.
Return Type: BooleanSubjectâ
Returns the BooleanSubject object.
verifyIntFieldâ
This method will verify the boolean field in the response body.
Parametersâ
expressionâ
This parameter expects a valid JsonPath expression.
Return Type: IntegerSubjectâ
Returns the IntegerSubject object.
verifyStatusCodeâ
This method will verify the status code of the response.
Return Type: IntegerSubjectâ
Returns the IntegerSubject object.
verifyStatusMessageâ
This method will verify the status message of the response.
Return Type: StringSubjectâ
Returns the StringSubject object.
verifyTextFieldâ
This method will verify the text field in the response body.
Parametersâ
expressionâ
This parameter expects a valid JsonPath expression.
Return Type: StringSubjectâ
Returns the StringSubject object.
verifyHeaderâ
This method will verify the header keys in the response body.
Parametersâ
keyâ
This parameter expects a valid key value.
Return Type: StringSubjectâ
Returns the StringSubject object.
verifySchemaâ
This method will verify the api response body json schema.
Parametersâ
schemaNameâ
This parameter expects a valid schemaName value. The schemaName is a json file containing the expected json schema version stored at location src/test/resources/schema/<schameName>.json.