Skip to content

arunramasayam/restassured-api-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rest Assured API Automation Framework

Java TestNG RestAssured Allure

Overview

This project is a Test Automation Framework built using Java + Rest Assured + TestNG + Allure Reporting.
It validates REST APIs with proper status code checks, JSON schema validation, and data verification.

The framework is designed to be:

  • Modular (separation of steps, utils, tests)
  • Readable (custom logger + Allure reporting)
  • Maintainable (easy to extend with new APIs)

Tech Stack

  • Java 11+
  • Maven
  • Rest Assured
  • TestNG
  • Allure Reports
  • SLF4J Logging
  • JSON Simple

🎯 Live Test Reports

👉 View Latest Test Results

Click above to see detailed Allure test reports with interactive charts and test analysis


Project Structure

src/test/java/com/arunreddy/restassured/
│
├── tests/        # Test classes (organized by feature)
├── steps/        # API steps (request building & sending)
├── utils/        # Utilities (validators, loggers, payloads, tokens)
└── resources/    # JSON schemas, test data

How to Run Tests

  1. Clone the repo
git clone https://github.com/arunramasayam/restassured-api-automation.git
cd restassured-api-automation
  1. Install dependencies
mvn clean install
  1. Run Tests
mvn test
  1. Run Only REST API Tests
mvn test -DsuiteXmlFile=testng-rest.xml
  1. Run only SOAP API Tests
mvn test -DsuiteXmlFile=testng-soap.xml

Allure reporting

  1. Generate Allure report after test execution:
mvn allure:serve
  1. Or save report in /target/site/allure-maven-plugin using:
mvn allure:report

Example Test Flow

  1. Setup → Generate auth token, build request payload
  2. Execution → Send API request (POST/GET/DELETE etc.)
  3. Validation
    • Validate status code
    • Validate JSON schema
    • Validate response body data
  4. Teardown → Delete test data (if required)

Author

Arun Ramasayam
QA Automation Engineer | Rest Assured | TestNG | Java