Skip to content

CypherMorgan/fullstack-qa-automation-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ Hybrid QA Automation Framework (Python + Selenium + API + DB + CI/CD)

Python Selenium PyTest Allure FastAPI Postman Newman SQLite GitHub Actions Status Tests Coverage Parallel License

A production-style hybrid test automation framework built using Python, Selenium, PyTest, API testing, database validation, and CI/CD pipelines.

This framework demonstrates how modern QA systems validate applications across multiple layers:

  • UI (Frontend)
  • API (Backend services)
  • Database (Data integrity)

๐Ÿ”— Live Reports

๐Ÿ”ฅ Key Features

๐Ÿ–ฅ๏ธ UI Automation

  • Selenium WebDriver
  • Page Object Model (POM)
  • Multi-browser support
  • Screenshot capture on failure

๐ŸŒ API Testing

  • Python-based API client
  • Postman collection support
  • Newman CLI execution
  • API validation with structured logging

๐Ÿ—„๏ธ Database Validation

  • SQLite DB integration
  • API vs DB validation tests
  • Data integrity checks

๐Ÿงช Test Framework

  • PyTest test runner
  • Parametrized (data-driven) tests
  • Retry mechanism for flaky tests
  • Parallel execution (pytest-xdist)

๐Ÿ“Š Reporting

  • Allure Reports (rich UI)
  • HTML reports
  • Postman HTML reports

โš™๏ธ Configuration Management

  • YAML-based config system
  • Environment support (dev, staging, etc.)
  • CLI overrides (browser, env)

๐Ÿงพ Logging

  • Centralized logging system
  • Logs for UI, API, DB layers

๐Ÿš€ CI/CD Pipeline

  • GitHub Actions integration
  • Automated test execution
  • Allure report deployment (GitHub Pages)
  • Postman test execution via Newman

๐Ÿงช Mock API Server

  • Built with FastAPI
  • Ensures deterministic and reliable API tests

๐Ÿงฑ Project Structure

fullstack-qa-automation-framework
โ”‚
โ”œโ”€โ”€ tests/
โ”‚   โ”œโ”€โ”€ ui/
โ”‚   โ”œโ”€โ”€ api/
โ”‚   โ””โ”€โ”€ db/
โ”‚
โ”œโ”€โ”€ pages/
โ”‚
โ”œโ”€โ”€ framework/
โ”‚   โ”œโ”€โ”€ core/
โ”‚   โ”œโ”€โ”€ api/
โ”‚   โ”œโ”€โ”€ db/
โ”‚   โ””โ”€โ”€ utils/
โ”‚
โ”œโ”€โ”€ mock_server/
โ”‚
โ”œโ”€โ”€ postman/
โ”‚
โ”œโ”€โ”€ config/
โ”‚
โ”œโ”€โ”€ reports/
โ”œโ”€โ”€ screenshots/
โ”œโ”€โ”€ logs/
โ”‚
โ”œโ”€โ”€ conftest.py
โ”œโ”€โ”€ pytest.ini
โ”œโ”€โ”€ requirements.txt
โ””โ”€โ”€ README.md

๐Ÿง  Framework Architecture

UI Layer

Handles frontend automation using Selenium and Page Object Model.

API Layer

Handles backend validation using:

  • Python API client
  • Postman + Newman

DB Layer

Validates backend data using SQL queries.

Integration Layer

Combines:

  • API responses
  • Database data to validate consistency across systems.

โ–ถ๏ธ Running Tests

๐Ÿ”น Install dependencies

pip install -r requirements.txt

๐Ÿ”น Run all tests

pytest tests --env=dev

๐Ÿ”น Run with parallel execution

pytest tests -n 4

๐Ÿ”น Run specific layer

pytest tests/ui
pytest tests/api
pytest tests/db

๐Ÿ“Š Reporting

Allure Report

pytest --alluredir=allure-results
allure serve allure-results

๐Ÿ‘‰ CI Report (GitHub Pages): https://cyphermorgan.github.io/fullstack-qa-automation-framework/


Postman (Newman)

newman run postman/Hybrid_QA_API.postman_collection.json

HTML report:

reports/postman_report.html

๐Ÿงช Mock API Server

Run locally:

uvicorn mock_server.app:app --reload

Base URL:

http://127.0.0.1:8000

๐Ÿ”„ CI/CD Pipeline

GitHub Actions automatically:

  • Runs UI + API + DB tests
  • Executes Postman collection
  • Generates Allure report
  • Deploys report to GitHub Pages

๐Ÿ” Example Test Flow

Start CI pipeline
    โ†“
Start Mock API
    โ†“
Run PyTest (UI + API + DB)
    โ†“
Run Postman (Newman)
    โ†“
Validate API โ†” DB consistency
    โ†“
Generate Allure report
    โ†“
Deploy report to GitHub Pages

๐Ÿš€ What This Project Demonstrates

  • Real-world QA automation architecture
  • Multi-layer validation strategy
  • CI/CD integration
  • Clean, scalable framework design
  • Strong debugging & reporting practices

๐Ÿ”ฎ Future Enhancements

  • Docker containerization
  • Cross-browser grid execution (Selenium Grid)
  • Allure + Newman report integration
  • Performance testing integration
  • Cloud execution (BrowserStack / Sauce Labs)

๐Ÿ‘ค Author

Built as a hands-on project to simulate a real-world QA automation framework used in modern engineering teams.


โญ If you like this project

Give it a โญ and feel free to fork & extend it!

Contributors