This project is a REST API test automation framework built using **Java, RestAssured, TestNG, and Allure Reports
**.
It is designed to test the ReqRes API, a free hosted REST API for testing and prototyping.
- Automated tests for key API endpoints:
- Create User
- Edit User
- Delete User
- Get Single User
- Get Users
- List Resources
- Login
- Register
- Data-driven testing using TestNG DataProviders.
- Centralized test data and payloads.
- Reusable request specifications with BaseTest.
- Detailed reporting with Allure.
- Java (JDK 8+)
- RestAssured – for API testing
- TestNG – testing framework
- Allure – reporting
- Maven – build & dependency management
java/
├── Base/ # BaseTest setup (RestAssured configuration)
├── Endpoints/ # API endpoint methods
├── Payloads/ # Request payload models
├── TestData/ # Test data for different scenarios
└── Tests/ # Test classes (TestNG)
- Clone the repository:
git clone https://github.com/yourusername/reqres-api-testing.git
- Navigate into the project:
cd reqres-api-testing - Run tests with Maven:
mvn clean test - Generate Allure report:
mvn allure:serve
The framework integrates with Allure for clean, interactive test reports.
- Omnia Tarek Lotfy
🔗 LinkedIn Profile
💼 Upwork Profile
⭐ If you like this project, don’t forget to star the repo!