Interface ResponseGrab
- All Known Implementing Classes:
AssertableResponse
public interface ResponseGrab
-
Method Summary
Modifier and TypeMethodDescriptionReturns the response body field value as the specified type.Returns the full response body.grabResponseHeader(String header) Returns the response header value.Returns the response body field value converted to String.
-
Method Details
-
grabResponseHeader
Returns the response header value.- Parameters:
header- header name- Returns:
- response header value as a String
-
grabResponseBody
String grabResponseBody()Returns the full response body.- Returns:
- response body as a String
-
grabStringFromResponseByPath
Returns the response body field value converted to String.- Parameters:
path- path to field (example:data.user.id)- Returns:
- String representation of the response body field value
-
grabDataFromResponseByPath
Returns the response body field value as the specified type.- Parameters:
path- path to field (example:data.user.id)- Returns:
- response body field value as an Object
-