Hybrid Rest Assured API Automation Framework with JSON Validation & POJO (Industry Standard)
Dependencies (Maven pom.xml)
Base Class (BaseTest.java)
POJO Class (User.java)
JSON Schema Validation (schema/userSchema.json)
API Test with JSON Validation (UserAPITest.java)
TestNG Configuration (testng.xml)
Running the Tests:
Run tests using Maven: mvn test
Or using TestNG in IDE: Right-click testng.xml → Run As → TestNG Suite
Reports (Extent Report Integration)
To generate Extent Reports, modify the framework:
Use ReportManager in your test:
Key Features of This Framework
âś… Hybrid Framework: Combines Data-driven + Modular + Utility-based
âś… Rest Assured: Automates API testing
âś… POJO: Ensures clean request/response handling
âś… JSON Schema Validator: Validates API responses
âś… TestNG: Manages test execution
âś… Logging & Reporting: Uses Extent Reports & Logs
This is the standard industrial API automation framework setup.