🌐 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.