Interface ResponseGrab
- All Known Implementing Classes:
AssertableResponse
public interface ResponseGrab
-
Method Summary
Modifier and TypeMethodDescriptionReturn response body field data (any type)Return response bodygrabResponseHeader(String header) Return response header dataReturn response body field data (converted to String)
-
Method Details
-
grabResponseHeader
Return response header data- Parameters:
header- header name- Returns:
- String with response header value
-
grabResponseBody
String grabResponseBody()Return response body- Returns:
- String with response body
-
grabStringFromResponseByPath
Return response body field data (converted to String)- Parameters:
path- path to field (example:data.user.id)- Returns:
- String with response body field data
-
grabDataFromResponseByPath
Return response body field data (any type)- Parameters:
path- path to field (example:data.user.id)- Returns:
- Object with response body field data
-