Skip to content

AyushiiDhiman/api-testing-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✅ API Testing Framework (Python + Pytest)

A modular and scalable API Automation Testing Framework built using Python, Pytest, Requests, and JSON Schema Validation.
This framework demonstrates clean architecture, reusable components, and real-world API testing patterns used in SDET roles.


🚀 Features

  • ✅ Modular API Client (GET, POST, PUT, DELETE)
  • ✅ Centralized Endpoint Management
  • ✅ Custom Assertions Layer
  • ✅ JSON Schema Validation (Contract Testing)
  • ✅ Fast & Clean Pytest Test Suite
  • ✅ Response Time Validation
  • ✅ Environment-Based Configuration
  • ✅ Developer-Friendly Structure
  • ✅ CI/CD Ready

📂 Project Structure

API_testing_framework/ │ ├── core/ │ ├── api_client.py # Handles HTTP Requests │ ├── endpoints.py # Stores API Endpoints │ ├── assertions.py # Custom Assertions │ └── config.py # Base URLs, Environment Configs │ ├── tests/ │ ├── test_auth_api.py # Authentication API Tests │ ├── test_users_api.py # User API Tests + Schema Validation │ ├── requirements.txt # Dependencies ├── README.md # Documentation └── .gitignore


🛠 Tech Stack

  • Python
  • Pytest
  • Requests
  • JSONSchema
  • Git & GitHub
  • VS Code / PyCharm

⚙️ Setup Instructions

1️⃣ Clone the repository

git clone https://github.com/AyushiiDhiman/api-testing-framework.git
cd api-testing-framework

❤️ Author
Ayushi Dhiman

About

A modular API Testing Framework built using Python, PyTest, JSON Schema Validation, and custom assertions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors