A robust, production-ready API testing framework built with Python and Pytest. This project demonstrates automated validation of the PokeAPI, focusing on data integrity, error handling, and professional reporting.
- Automated API Testing: Validates GET requests and JSON responses from a real-world API.
- Data-Driven Testing: Uses Pytest Parametrization to test multiple endpoints with a single test function.
- Smart Assertions: Checks status codes, data types, and specific nested JSON values.
- Professional HTML Reports: Generates visual dashboards for test results including execution time and failure details.
- CI/CD Ready: Configured for GitHub Actions to run tests automatically on every push.
| Tool | Purpose |
|---|---|
| Python 3.12+ | Programming Language |
| Pytest | Testing Framework |
| Requests | API Client / HTTP Library |
| Pytest-HTML | Reporting Plugin |
Before running the tests, ensure you have Python installed. You can check your version by running:
python --version