Modern software applications rely heavily on REST APIs for communication between services. Ensuring these APIs are reliable, secure, and performant is a critical responsibility for QA Automation Engineers and SDETs.
This repository demonstrates a production-ready REST API Automation Framework built using Java, REST Assured, TestNG, Maven, Log4j2, and Extent Reports. The framework follows modular design principles to support scalable, maintainable, and reusable automated API testing.
It is designed to reflect the architecture and coding practices commonly used in enterprise software projects.
The primary goals of this framework are to:
- Automate REST API testing efficiently
- Improve test maintainability through modular architecture
- Enable reusable request payloads and endpoint management
- Support data-driven testing
- Generate detailed execution reports
- Capture centralized logs for easier debugging
- Provide a CI/CD-ready framework for enterprise environments
β REST Assured based API automation
β Modular project architecture
β Page Objectβlike Endpoint Layer
β POJO-based Request Payload Models
β TestNG Test Execution
β Data-Driven Testing
β Excel & JSON Test Data
β Extent HTML Reports
β Log4j2 Logging
β Maven Build Management
β Parallel Test Execution
β CI/CD Ready (Jenkins / GitHub Actions)
β Easily Extendable for Large Projects
The framework follows a layered architecture to improve scalability and code maintainability.
Test Classes
β
βΌ
Endpoint Layer
β
βΌ
Request Payloads
β
βΌ
REST Assured APIs
β
βΌ
Response Validation
β
βββββββββββββββ΄βββββββββββββββ
βΌ βΌ
Extent Reports Log4j2 Logs
Enterprise-style REST Assured Automation Framework
(Insert your framework architecture image here)
REST-API-Automation-Framework
β
βββ Reports
β βββ Extent HTML Reports
β
βββ TestData
β βββ JSON Files
β βββ Excel Files
β
βββ logs
β βββ Log4j2 Execution Logs
β
βββ src
β
β βββ test
β
β βββ java
β β
β βββ API
β β
β β βββ Endpoints
β β βββ Payloads
β β βββ Test
β β βββ Utilities
β β
β βββ resources
β
β βββ log4j2.xml
β
βββ test-output
β
βββ pom.xml
βββ testng.xml
βββ README.md
| Category | Technology |
|---|---|
| Language | Java |
| API Automation | REST Assured |
| Test Framework | TestNG |
| Build Tool | Maven |
| Reporting | Extent Reports |
| Logging | Log4j2 |
| Version Control | Git |
| Repository | GitHub |
| CI/CD | Jenkins / GitHub Actions |
Contains all REST API endpoint definitions.
Benefits:
- Centralized API management
- Easy maintenance
- Better readability
POJO classes representing request payloads.
Benefits:
- Cleaner code
- Reusable request models
- Easier serialization
Contains TestNG test cases responsible for:
- Sending requests
- Validating responses
- Assertions
- Business validations
Reusable helper classes including:
- Excel Reader
- JSON Utilities
- Data Providers
- Report Generation
- Common Methods
Extent Reports provide:
- Execution Summary
- Passed Tests
- Failed Tests
- Screenshots (if integrated)
- Execution Time
- Environment Details
Log4j2 enables:
- Detailed execution logs
- Exception tracking
- Debug information
- API request/response logging
This project showcases practical experience with:
- REST API Testing
- REST Assured
- API Request Validation
- API Response Validation
- JSON Parsing
- POJO Serialization
- TestNG
- Maven
- Extent Reports
- Log4j2
- Data-Driven Testing
- Framework Design
- Java Programming
- Enterprise Automation Frameworks
The framework supports validation of:
-
HTTP Status Codes
-
Response Body
-
Response Headers
-
JSON Path Assertions
-
Authentication
-
CRUD Operations
-
Request Payload Validation
-
Query Parameters
-
Path Parameters
-
Data-Driven API Testing
-
API Regression Testing
git clone https://github.com/ArpitChoubey/REST-API-Automation-Framework-JAVA-Rest-Assured.gitmvn clean installUsing Maven
mvn clean testOr execute using
testng.xml
After execution:
Reports/
Contains
- Extent HTML Report
Execution Logs
logs/
Contains
- Log4j2 Logs
This framework can be extended to automate APIs for:
-
Banking Applications
-
Healthcare Platforms
-
Insurance Systems
-
Retail & E-Commerce
-
Telecom Applications
-
CRM Platforms
-
ERP Systems
-
Microservices Architecture
-
Cloud-native Applications
This project is valuable for:
-
QA Engineers
-
API Automation Engineers
-
Software Development Engineers in Test (SDETs)
-
Automation Test Engineers
-
Java Developers
-
Manual Testers transitioning to Automation
-
Students preparing for Automation Interviews
This project demonstrates:
β Strong Java Programming
β REST API Automation
β Enterprise Framework Design
β Scalable Architecture
β Clean Code Principles
β Reporting & Logging
β Data-Driven Testing
β CI/CD Readiness
β Industry Best Practices
These are essential capabilities expected from experienced QA Automation Engineers and SDETs working on enterprise-grade software products.
Planned improvements include:
-
OAuth 2.0 Authentication
-
JWT Token Handling
-
API Schema Validation
-
Docker Integration
-
GitHub Actions Pipeline
-
Jenkins Pipeline
-
Allure Reporting
-
Parallel API Execution
-
Environment Configuration
-
API Mocking
-
Contract Testing
-
Performance Testing Integration
SDET | QA Automation Engineer | Java | REST Assured | Selenium | Playwright | Appium | TestNG | Maven | SQL | Jenkins | Docker
Passionate about designing scalable automation frameworks, improving software quality, and sharing practical learning resources with the automation testing community.
https://github.com/ArpitChoubey
https://www.linkedin.com/in/arpitchoubey/
https://medium.com/@ArpitChoubey9
If you found this repository useful, please consider giving it a Star β.
Your support motivates me to continue building enterprise-grade automation frameworks and open-source learning resources for the QA community.