REST Assured

It is a library on the Java platform that simplifies the process of testing and verifying REST services. POST supports HTTP methods such as GET, PUT, DELETE, OPTIONS, PATCH and HEAD; it offers parameter, title, cookie and body verification. It allows the parsing of JSON and XML responses with basic authentication mechanisms.

RE

rest-assured · API Testing & Mocking

STARS7.1K
FORKS1.9K
COMMITS—
CONTRIBUTORS179
VERSIONrest-assured-6.0.1
UPDATEDtoday
API TestingjavarestbddApache-2.0

Common commercial products in this category: Postman, Insomnia, Paw

What can it do?
  • By making GET or POST requests, you verify JSON and XML responses with path statements within the body.
  • You send requests by adding parameters and check specific text or XPath matches in the response body
  • You write access tests to protected endpoint using basic authentication mechanisms
Heads up
  • • High number of open issues (549)
User reviews
  • • NeutralGitHub Issue

    The import io.restassured.RestAssured cannot be resolved

    “Hi Johan, I am getting the red squiggly lines when I use the below static imports: ` import static io.restassured.RestAssured.*; import static io.restassured.matcher.RestAssuredMatchers.*; ` My POM. xml has the below dependencies: io.rest-assured rest-assured 3.0.3 test…”

  • ↑ PositiveGitHub Issue

    Cannot compare Long values within body

    “As already faced in a body element cannot be compared to a long value. I think the best solution could be to allow function passing (as for headers) in order to convert the value to a long. E.g: ``` java long expected = 1L; when().get("/test/{id}", expected).…”

My note

Alternative pages

More in: API Testing & Mocking