A scalable and production-style API automation testing framework built using Python, Requests, and Pytest.
This project simulates real-world API testing scenarios for an e-commerce system, covering core business flows such as login, add products, and checkout.
It is designed with modular architecture and reusable components to support maintainability and scalability in real QA environments.
- REST API testing using Python Requests
- Pytest framework with fixtures
- Token-based authentication handling
- Modular API layer design
- Reusable request utilities
- Data-driven testing support (JSON)
- Python
- Pytest
- Requests
- JSON
- ✅ Valid login
- ❌ Invalid credentials
- ❌ Missing fields
- ✅ Get all products
- ❌ Invalid endpoint handling
- ✅ Authorized access with token
- ❌ Unauthorized access
git clone https://github.com/qingqing-QA/api-testing-framework.git
cd api-testing-framework
pip install -r requirements.txt