# ed-qa/full-example-tests-for-practice-software-testing architecture

> Architecture diagram of the GitHub repository ed-qa/full-example-tests-for-practice-software-testing, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ed-qa/full-example-tests-for-practice-software-testing
- Repository: https://github.com/ed-qa/full-example-tests-for-practice-software-testing

## Overview

This repository is a Python Playwright/pytest QA suite for the public Practice Software Testing e-commerce app. Its main workflow is to run browser scenarios, use page models and shared helpers to interact with the site, and capture test outcomes; separate API checks exercise deterministic local product fixtures and public API behavior. The README documents the broader scenario coverage and reporting intent, but most test implementations were not sampled, so those branches are shown at the suite level.

Main entry points: [`pages/base_page.py`](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/blob/main/pages/base_page.py) (Base page), [`tests/e2e`](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/tree/main/tests/e2e) (E-commerce flows), [`tests/api`](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/tree/main/tests/api) (Product API checks), [`tests/smoke`](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/tree/main/tests/smoke) (Readiness smoke)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Test Runtime"]
  node_pytest["pytest runner"]
  node_settings["Browser settings<br/>[conftest.py]"]
end

subgraph group_browser["Browser Scenarios"]
  node_e2e["E-commerce flows"]
  node_smoke["Readiness smoke"]
  node_responsive["Responsive checks"]
  node_visual["Visual demo"]
  node_pages["Page models"]
  node_basepage["Base page<br/>[base_page.py]"]
  node_homepage["Home interactions<br/>[home_page.py]"]
  node_loginpage["Login interactions<br/>[login_page.py]"]
  node_registerpage["Registration interactions<br/>[register_page.py]"]
  node_contactpage["Contact interactions<br/>[contact_page.py]"]
  node_support["Shared assertions"]
end

subgraph group_api["API Checks"]
  node_api_tests["Product API checks"]
  node_fixtures[("Local product fixtures<br/>[api_fixtures.py]")]
  node_models["Product models<br/>[models.py]"]
  node_contract["Contract validation<br/>[contract.py]"]
end

node_engineer(("QA engineer"))
node_site["Practice site"]
node_public_api["Public API"]

node_engineer -->|"runs"| node_pytest
node_pytest -->|"loads settings"| node_settings
node_pytest -->|"runs suite"| node_e2e
node_pytest -->|"runs suite"| node_smoke
node_pytest -->|"runs checks"| node_responsive
node_pytest -->|"runs demo"| node_visual
node_e2e -->|"uses models"| node_pages
node_e2e -->|"uses helpers"| node_support
node_pages -->|"extends"| node_basepage
node_homepage -->|"extends"| node_basepage
node_loginpage -->|"extends"| node_basepage
node_registerpage -->|"extends"| node_basepage
node_contactpage -->|"extends"| node_basepage
node_e2e -->|"exercises workflows"| node_site
node_smoke -->|"checks readiness"| node_site
node_responsive -->|"checks layouts"| node_site
node_visual -->|"checks baseline"| node_site
node_pytest -->|"runs suite"| node_api_tests
node_api_tests -->|"uses fixtures"| node_fixtures
node_api_tests -->|"checks contracts"| node_contract
node_fixtures -->|"creates products"| node_models
node_contract -->|"validates data"| node_models
node_api_tests -->|"smoke checks"| node_public_api

click node_settings "https://github.com/ed-qa/full-example-tests-for-practice-software-testing/blob/main/conftest.py"
click node_e2e "https://github.com/ed-qa/full-example-tests-for-practice-software-testing/tree/main/tests/e2e"
click node_smoke "https://github.com/ed-qa/full-example-tests-for-practice-software-testing/tree/main/tests/smoke"
click node_responsive "https://github.com/ed-qa/full-example-tests-for-practice-software-testing/tree/main/tests/e2e"
click node_visual "https://github.com/ed-qa/full-example-tests-for-practice-software-testing/tree/main/tests/visual"
click node_pages "https://github.com/ed-qa/full-example-tests-for-practice-software-testing/tree/main/pages"
click node_basepage "https://github.com/ed-qa/full-example-tests-for-practice-software-testing/blob/main/pages/base_page.py"
click node_homepage "https://github.com/ed-qa/full-example-tests-for-practice-software-testing/blob/main/pages/home_page.py"
click node_loginpage "https://github.com/ed-qa/full-example-tests-for-practice-software-testing/blob/main/pages/login_page.py"
click node_registerpage "https://github.com/ed-qa/full-example-tests-for-practice-software-testing/blob/main/pages/register_page.py"
click node_contactpage "https://github.com/ed-qa/full-example-tests-for-practice-software-testing/blob/main/pages/contact_page.py"
click node_support "https://github.com/ed-qa/full-example-tests-for-practice-software-testing/tree/main/tests/support"
click node_api_tests "https://github.com/ed-qa/full-example-tests-for-practice-software-testing/tree/main/tests/api"
click node_fixtures "https://github.com/ed-qa/full-example-tests-for-practice-software-testing/blob/main/utils/api_fixtures.py"
click node_models "https://github.com/ed-qa/full-example-tests-for-practice-software-testing/blob/main/utils/models.py"
click node_contract "https://github.com/ed-qa/full-example-tests-for-practice-software-testing/blob/main/utils/contract.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_pytest,node_settings toneBlue
class node_e2e,node_smoke,node_responsive,node_visual,node_pages,node_basepage,node_homepage,node_loginpage,node_registerpage,node_contactpage,node_support toneAmber
class node_api_tests,node_fixtures,node_models,node_contract,node_public_api toneMint
class node_engineer,node_site toneIndigo
```

## Components

### Test Runtime

- **pytest runner**
- [Browser settings](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/blob/main/conftest.py): `conftest.py`

### Browser Scenarios

- [E-commerce flows](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/tree/main/tests/e2e): `tests/e2e`
- [Readiness smoke](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/tree/main/tests/smoke): `tests/smoke`
- [Responsive checks](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/tree/main/tests/e2e): `tests/e2e`
- [Visual demo](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/tree/main/tests/visual): `tests/visual`
- [Page models](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/tree/main/pages): `pages`
- [Base page](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/blob/main/pages/base_page.py): `pages/base_page.py`
- [Home interactions](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/blob/main/pages/home_page.py): `pages/home_page.py`
- [Login interactions](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/blob/main/pages/login_page.py): `pages/login_page.py`
- [Registration interactions](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/blob/main/pages/register_page.py): `pages/register_page.py`
- [Contact interactions](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/blob/main/pages/contact_page.py): `pages/contact_page.py`
- [Shared assertions](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/tree/main/tests/support): `tests/support`

### API Checks

- [Product API checks](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/tree/main/tests/api): `tests/api`
- [Local product fixtures](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/blob/main/utils/api_fixtures.py): `utils/api_fixtures.py`
- [Product models](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/blob/main/utils/models.py): `utils/models.py`
- [Contract validation](https://github.com/ed-qa/full-example-tests-for-practice-software-testing/blob/main/utils/contract.py): `utils/contract.py`

### Other components

- **QA engineer**
- **Practice site**
- **Public API**

## Connections

- QA engineer → pytest runner: runs (evidence: `README.md`)
- pytest runner → Browser settings: loads settings (evidence: `conftest.py`)
- pytest runner → E-commerce flows: runs suite (evidence: `README.md`)
- pytest runner → Readiness smoke: runs suite (evidence: `README.md`)
- pytest runner → Responsive checks: runs checks (evidence: `README.md`)
- pytest runner → Visual demo: runs demo (evidence: `README.md`)
- E-commerce flows → Page models: uses models (evidence: `README.md`)
- E-commerce flows → Shared assertions: uses helpers (evidence: `README.md`)
- Page models → Base page: extends (evidence: `pages/base_page.py`)
- Home interactions → Base page: extends (evidence: `pages/home_page.py`)
- Login interactions → Base page: extends (evidence: `pages/login_page.py`)
- Registration interactions → Base page: extends (evidence: `pages/register_page.py`)
- Contact interactions → Base page: extends (evidence: `pages/contact_page.py`)
- E-commerce flows → Practice site: exercises workflows (evidence: `README.md`)
- Readiness smoke → Practice site: checks readiness (evidence: `README.md`)
- Responsive checks → Practice site: checks layouts (evidence: `README.md`)
- Visual demo → Practice site: checks baseline (evidence: `README.md`)
- pytest runner → Product API checks: runs suite (evidence: `README.md`)
- Product API checks → Local product fixtures: uses fixtures (evidence: `README.md`)
- Product API checks → Contract validation: checks contracts (evidence: `README.md`)
- Local product fixtures → Product models: creates products (evidence: `utils/api_fixtures.py`)
- Contract validation → Product models: validates data (evidence: `utils/contract.py`)
- Product API checks → Public API: smoke checks (evidence: `README.md`)
