Skip to content

ArpitChoubey/APIAutomationFramework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

32 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ API Automation Framework (Rest Assured)

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.


πŸ“˜ Overview

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

✨ Key Features

  • βœ” 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

πŸ“‚ Folder Structure

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

πŸ“Έ Rest Assured Framework Design

Below is the architecture diagram representing the framework:

image

πŸ§ͺ Tools & Technologies Used

  • Java
  • Rest Assured
  • TestNG
  • Maven
  • Extent Reports
  • Log4j2
  • Git / GitHub
  • Jenkins (CI/CD)

▢️ How to Run Tests

Using Maven

mvn clean test

Using TestNG

Run via testng.xml file.


πŸ“Š Reports & Logs

After execution:

  • HTML report β†’ /Reports/
  • Logs β†’ /logs/

πŸ‘¨β€πŸ’» Author

Arpit Choubey β€” SDET | QA | Automation Engineer πŸ”— LinkedIn | Medium


⭐ Support

If this repository helped you, please Star ⭐ the repo!

About

API Automation Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •