api-test-automation-suite

๐Ÿงช API Test Automation Suite

Automated functional test suite for the DummyJSON REST API, built using Python. Covers authentication, products, users, carts, schema validation, and performance checks.


๐Ÿ“‹ Test Coverage

Module Test Cases
Authentication โ€” Register & Login TC-001 โ†’ TC-006
Products โ€” GET, Search, Filter, Limit TC-007 โ†’ TC-013
Users โ€” GET, Schema Validation TC-014 โ†’ TC-016
Performance, Headers & Cart Schema TC-017 โ†’ TC-020
Total 20 Test Cases

๐Ÿ“ Project Structure

api-test-automation-suite/
โ”œโ”€โ”€ test_suite.py                  # Main test file โ€” 20 test cases
โ”œโ”€โ”€ requirements.txt               # Python dependencies
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ config/
โ”‚   โ””โ”€โ”€ config.py                  # Base URL, thresholds, report path
โ”œโ”€โ”€ reports/
โ”‚   โ””โ”€โ”€ test_report.json           # Auto-generated after each run
โ””โ”€โ”€ .github/
    โ””โ”€โ”€ workflows/
        โ””โ”€โ”€ test.yml               # GitHub Actions CI/CD pipeline

๐Ÿš€ How to Run Locally

1. Clone the repo

git clone https://github.com/YOUR_USERNAME/api-test-automation-suite.git
cd api-test-automation-suite

2. Install dependencies

pip install -r requirements.txt

3. Run the test suite

python test_suite.py

โš™๏ธ CI/CD โ€” GitHub Actions

Tests run automatically on every push and pull request, and daily at 9AM UTC. The test_report.json is uploaded as a build artifact after each run.


๐Ÿ› ๏ธ Tech Stack

Tool Purpose
Python 3.x Core language
requests HTTP API calls
GitHub Actions CI/CD automation
DummyJSON API API under test
JSON Report format

๐Ÿ’ก What This Tests


๐Ÿ“ธ Sample Output

Test Output