Interface ResponseGrab

All Known Implementing Classes:
AssertableResponse

public interface ResponseGrab
  • Method Details

    • grabResponseHeader

      String grabResponseHeader(String header)
      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

      String grabStringFromResponseByPath(String path)
      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

      Object grabDataFromResponseByPath(String path)
      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