Skip to content

This repository serves as a demonstration of a scalable, maintainable, and extensible end-to-end (E2E) automation infrastructure for testing ExpandTesting Practice Site. The goal is to establish a robust framework that can handle automation for different testing scenarios effectively.

Notifications You must be signed in to change notification settings

dankush/expandtesting-e2e-infra

Repository files navigation

QA Automation Framework

A scalable test automation framework built with Python and pytest.

Project Structure

This repository serves as a demonstration of a scalable, maintainable, and extensible end-to-end (E2E) and integration automation infrastructure for testing the ExpandTesting Practice Site. The goal is to establish a robust framework that can handle automation for different testing scenarios effectively.

Features

  • Modular API client with proper error handling
  • Type-annotated Python code following PEP 8
  • Pytest-based test execution
  • Integration and E2E test coverage
  • Data generation utilities
  • Parallel test execution support

Setup

  1. Install dependencies:
pip install -r requirements.txt
  1. Run tests:
# Run all tests
pytest

# Run with parallelization
pytest -n auto

# Run specific test type
pytest tests/e2e/
pytest tests/integration/

Key Components

  • APIClient: Core client for making HTTP requests
  • Data Models: Pydantic models for request/response validation
  • Fixtures: Reusable test components in conftest.py
  • Utils: Helper functions for test data generation

Dependencies

  • Python 3.10+
  • pytest
  • requests
  • pydantic
  • pytest-xdist (parallel execution)

Best Practices

  • Use type hints consistently
  • Follow PEP 8 style guide
  • Write descriptive test names
  • Use fixtures for test setup
  • Clean up test data after execution
  • Handle errors appropriately
  • Document code with docstrings

About

This repository serves as a demonstration of a scalable, maintainable, and extensible end-to-end (E2E) automation infrastructure for testing ExpandTesting Practice Site. The goal is to establish a robust framework that can handle automation for different testing scenarios effectively.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published