A professional, scalable Java-based framework for automated REST API testing, built with RestAssured, JUnit 5, and Maven.
- Full support for HTTP methods: GET, POST, PUT, DELETE
- Reusable API client and request builder
- Environment configuration via properties file
- JSON serialization/deserialization (Jackson)
- Centralized base test setup
- Dynamic test data loading (from JSON)
- Token-based authentication support (extendable)
- Ready for CI/CD integration
- Optional Allure report integration
git clone https://github.com/your-org/api-test-framework.git
cd api-test-frameworkEdit src/test/resources/config.properties:
base.url=https://your-api-url.commvn clean testTest payloads are stored in JSON format under src/test/resources/testdata/.
Example:
{
"name": "JoΓ£o Teste",
"email": "joao@example.com"
}You can load them dynamically into test cases or parameterized tests.
- Java 11+
- Maven 3+
- Internet access (to download dependencies)
This framework supports Allure reporting:
mvn clean test
allure serve target/allure-resultsMake sure Allure is installed locally.
- Schema validation using JSON Schema Validator
- OAuth2 authentication flow support
- Test result notification integration (Slack, Teams)
- Parallel execution configuration
This project is licensed under the MIT License - use it freely in your test automation projects.