This repository contains an automated REST API test suite for the Reqres API.
The project demonstrates API testing using REST Assured, JUnit 5, Maven.
- Programming language: Java 21
- Test automation framework: JUnit 5
- API testing framework: REST Assured
- Build tool: Maven
Requirements:
- JDK 21+
- Maven 3.x
- Internet connection
To run the tests, execute:
On Linux:
./mvnw clean test
On Windows:
mvnw clean test
To run a single test:
./mvnw -Dtest=UserListTest#getUserListFromSecondPage test
- GET pet by ID
- POST create new pet
- PUT update existing pet
- DELETE pet
- HTTP status code validation
- Response body validation
- JSON schema/content validation
- Positive and negative test cases