This project is a REST API Automation Testing Framework built using Python. It is designed to test APIs by validating response status codes and response data.
- Python
- Pytest
- Requests
- JSON
api-testing-framework/
│
├── tests/ # Test cases
├── utils/ # API client (reusable code)
├── data/ # Test data (JSON files)
├── reports/ # Test reports
│
├── requirements.txt # Dependencies
├── pytest.ini # Pytest config
├── README.md # Project documentation
git clone https://github.com/ayushGadag/api-testing-framework.git
cd api-testing-framework
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
python -m pytest
- Validate GET Users API
- Check status code = 200
- Verify response contains "users"
- API request handling using Requests
- Automated test execution using Pytest
- Structured framework (scalable)
- Easy to extend for more APIs
- Add POST, PUT, DELETE APIs
- Add schema validation
- Integrate Allure reports
- Add CI/CD (GitHub Actions)
Ayush Gadag