This repository contains a robust and scalable API Automation Framework built using Rest Assured, TestNG, Maven, Log4j2, and Extent Reports. The framework is designed for maintainability, readability, and reusability.
This framework automates REST API testing using modular components:
- Endpoints Layer β All API endpoints
- Payload Layer β Request bodies (POJO classes)
- Test Layer β Test scripts using TestNG
- Utilities Layer β Common helper utilities, Excel readers, data providers
- Reports β HTML Extent Reports
- Logging β Log4j2 centralized logs
- β Rest Assured-based API automation
- β Modular and scalable folder structure
- β Detailed Extent Reports
- β Configurable Log4j2 logging
- β TestNG with parallel execution support
- β Data-driven testing (Excel, JSON)
- β CI-ready with GitHub β Jenkins integration
API-Automation-Framework/
β
βββ Reports/ # Extent report HTML files
βββ TestData/ # External test data (JSON/Excel)
βββ logs/ # Log4j2 logs
β
βββ src/test/java/API/
β βββ Endpoints/ # Endpoint classes
β βββ Payloads/ # POJO payload models
β βββ Test/ # Test classes
β βββ Utilities/ # Helpers (DataProviders, Excel Utility, Reports)
β
βββ src/test/resources/
β βββ log4j2.xml # Log4j2 configuration
β
βββ pom.xml # Maven dependencies
βββ testng.xml # TestNG suite configuration
βββ README.md # Project documentation
Below is the architecture diagram representing the framework:
- Java
- Rest Assured
- TestNG
- Maven
- Extent Reports
- Log4j2
- Git / GitHub
- Jenkins (CI/CD)
mvn clean test
Run via testng.xml file.
After execution:
- HTML report β
/Reports/ - Logs β
/logs/
Arpit Choubey β SDET | QA | Automation Engineer π LinkedIn | Medium
If this repository helped you, please Star β the repo!