Skip to content

pk123456r/RestAPI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌐 API Test Automation Framework (RestAssured + Cucumber) 📌 Overview

This project is an API Test Automation Framework designed to validate REST APIs with BDD (Behavior-Driven Development) using Cucumber.

The framework is lightweight, scalable, and follows industry best practices:

RestAssured for API testing

Cucumber (BDD) for writing human-readable test scenarios

TestNG for execution & reporting

Maven for build & dependency management

Reusable Utility Classes for request/response handling

Parallel Execution support for faster runs

⚙️ Tech Stack

Language: Java

Test Framework: Cucumber (BDD)

API Testing Library: RestAssured

Execution: TestNG + Maven

Reports: Extent Reports (with JSON/XML/HTML support)

Design Pattern: Modular + Reusable step definitions

🚀 How to Run 1️⃣ Clone the repo git clone https://github.com//.git

2️⃣ Install dependencies mvn clean install

3️⃣ Run tests (via Maven) mvn test

4️⃣ Run tests (via Runner class)

Open APITestRunner.java inside runners package

Execute it directly

📊 Reporting

Execution reports are generated under the reports/ folder.

Includes:

API request & response logs

Pass/Fail test results

Screenshots for validation failures (if integrated)

🔮 Next Enhancements

CI/CD integration with Jenkins

Support for multiple environments (DEV/QA/PROD)

Dynamic test data generation

API contract validation (with JSON schema)

🤝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to fork this repo and raise a PR.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 76.2%
  • Java 15.8%
  • Gherkin 8.0%