Skip to content

omniatareklotfy/ReqRes-API-Testing-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 ReqRes API Testing Framework

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.


📌 Features

  • 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.

🛠️ Tech Stack

  • Java (JDK 8+)
  • RestAssured – for API testing
  • TestNG – testing framework
  • Allure – reporting
  • Maven – build & dependency management

📂 Project Structure

java/
 ├── Base/           # BaseTest setup (RestAssured configuration)
 ├── Endpoints/      # API endpoint methods
 ├── Payloads/       # Request payload models
 ├── TestData/       # Test data for different scenarios
 └── Tests/          # Test classes (TestNG)

▶️ How to Run Tests

  1. Clone the repository:
    git clone https://github.com/yourusername/reqres-api-testing.git
  2. Navigate into the project:
    cd reqres-api-testing
  3. Run tests with Maven:
    mvn clean test
  4. Generate Allure report:
    mvn allure:serve

📊 Sample Report

The framework integrates with Allure for clean, interactive test reports.

Allure Capture Create User Test Graphs Overview Report Dashboard Test Cases Report Run All Tests


👩‍💻 Author


⭐ If you like this project, don’t forget to star the repo!

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors