# appiummal/pytest_framework_practice architecture

> Architecture diagram of the GitHub repository appiummal/pytest_framework_practice, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/appiummal/pytest_framework_practice
- Repository: https://github.com/appiummal/pytest_framework_practice

## Overview

#### Purpose and Entry Points
This is a Python UI test automation repository for checkbox interactions. The executable test entry point is `tests/test_checkbox.py`; pytest-wide setup is likely supplied by `conftest.py`. Tests operate through page objects rather than directly driving browser APIs.

#### Test Execution Layer
`tests/test_checkbox.py` defines the user-facing test scenarios and assertions. `conftest.py` is the suite integration boundary for fixtures, browser lifecycle setup, and shared test context. This layer should remain focused on scenario intent, delegating UI mechanics to pages and actions.

#### Configuration and Runtime Initialization
Configuration originates in `config/config.py` and is loaded through `utils/config_loader.py`. These modules establish environment-specific test settings such as target application details, browser selection, or execution behavior. Configuration is consumed before driver and page construction.

#### Browser Driver Boundary
`core/driver_factory.py` owns WebDriver creation and likely teardown-compatible driver selection. It is the principal boundary between the test framework and the browser automation runtime (typically Selenium/WebDriver). Browser-specific changes should be isolated here rather than spread across tests or page objects.

#### Interaction and Synchronization Core
`core/actions.py` centralizes reusable browser interactions, while `core/wait_helpers.py` encapsulates explicit waiting and readiness behavior. Together they protect page objects from low-level WebDriver calls and timing concerns. `core/exceptions.py` provides the domain-specific failure boundary for automation errors.

#### Page Object Model
`pages/base_page.py` provides shared page capabilities and connects page objects to the driver/actions layer. `pages/checkbox_page.py` models the checkbox screen’s locators and business-level operations. The intended flow is test → page method → action/wait helper → WebDriver, keeping selectors and UI behavior out of test cases.

#### Reporting and Observability
`utils/logger.py` supplies execution logging across framework layers. `utils/report_manager.py` manages test-report artifacts or report integration. These are cross-cutting services: tests and framework components can emit diagnostics, while reporting aggregates execution outcomes without owning browser control flow.

Main entry points: [`core/actions.py`](https://github.com/appiummal/pytest_framework_practice/blob/main/core/actions.py) (Browser actions), [`tests/test_checkbox.py`](https://github.com/appiummal/pytest_framework_practice/blob/main/tests/test_checkbox.py) (Checkbox scenarios), [`conftest.py`](https://github.com/appiummal/pytest_framework_practice/blob/main/conftest.py) (Pytest setup), [`core/driver_factory.py`](https://github.com/appiummal/pytest_framework_practice/blob/main/core/driver_factory.py) (Driver factory)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_tests["Test Suite"]
  node_checkbox_tests["Checkbox scenarios<br/>pytest tests<br/>[test_checkbox.py]"]
  node_pytest_setup["Pytest setup<br/>fixture boundary<br/>[conftest.py]"]
end

subgraph group_framework["Automation Core"]
  node_driver_factory{{"Driver factory<br/>WebDriver boundary<br/>[driver_factory.py]"}}
  node_actions["Browser actions<br/>interaction layer<br/>[actions.py]"]
  node_wait_helpers["Wait helpers<br/>synchronization layer<br/>[wait_helpers.py]"]
  node_automation_errors["Automation exceptions<br/>failure boundary<br/>[exceptions.py]"]
end

subgraph group_pages["Page Objects"]
  node_base_page["Base page<br/>page foundation<br/>[base_page.py]"]
  node_checkbox_page["Checkbox page<br/>page object<br/>[checkbox_page.py]"]
end

subgraph group_support["Configuration &amp; Observability"]
  node_config["Test configuration<br/>settings source<br/>[config.py]"]
  node_config_loader["Config loader<br/>configuration service<br/>[config_loader.py]"]
  node_logger["Logger<br/>cross-cutting logging<br/>[logger.py]"]
  node_report_manager["Report manager<br/>reporting service<br/>[report_manager.py]"]
end

node_webdriver(("Browser runtime<br/>Selenium/WebDriver"))

node_checkbox_tests -->|"runs with fixtures"| node_pytest_setup
node_checkbox_tests -->|"uses"| node_checkbox_page
node_pytest_setup -->|"loads settings"| node_config_loader
node_config_loader -->|"reads"| node_config
node_pytest_setup -->|"initializes driver"| node_driver_factory
node_driver_factory -->|"creates"| node_webdriver
node_checkbox_page -->|"extends"| node_base_page
node_base_page -->|"delegates interactions"| node_actions
node_actions -->|"synchronizes with"| node_wait_helpers
node_actions -->|"drives"| node_webdriver
node_wait_helpers -->|"waits on"| node_webdriver
node_actions -.->|"raises"| node_automation_errors
node_checkbox_tests -.->|"reports outcomes"| node_report_manager
node_actions -.->|"logs diagnostics"| node_logger
node_report_manager -.->|"logs report events"| node_logger

click node_checkbox_tests "https://github.com/appiummal/pytest_framework_practice/blob/main/tests/test_checkbox.py"
click node_pytest_setup "https://github.com/appiummal/pytest_framework_practice/blob/main/conftest.py"
click node_config "https://github.com/appiummal/pytest_framework_practice/blob/main/config/config.py"
click node_config_loader "https://github.com/appiummal/pytest_framework_practice/blob/main/utils/config_loader.py"
click node_driver_factory "https://github.com/appiummal/pytest_framework_practice/blob/main/core/driver_factory.py"
click node_actions "https://github.com/appiummal/pytest_framework_practice/blob/main/core/actions.py"
click node_wait_helpers "https://github.com/appiummal/pytest_framework_practice/blob/main/core/wait_helpers.py"
click node_automation_errors "https://github.com/appiummal/pytest_framework_practice/blob/main/core/exceptions.py"
click node_base_page "https://github.com/appiummal/pytest_framework_practice/blob/main/pages/base_page.py"
click node_checkbox_page "https://github.com/appiummal/pytest_framework_practice/blob/main/pages/checkbox_page.py"
click node_logger "https://github.com/appiummal/pytest_framework_practice/blob/main/utils/logger.py"
click node_report_manager "https://github.com/appiummal/pytest_framework_practice/blob/main/utils/report_manager.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_checkbox_tests,node_pytest_setup toneBlue
class node_driver_factory,node_actions,node_wait_helpers,node_automation_errors toneAmber
class node_base_page,node_checkbox_page toneMint
class node_config,node_config_loader,node_logger,node_report_manager toneRose
class node_webdriver toneNeutral
```

## Components

### Test Suite

- [Checkbox scenarios](https://github.com/appiummal/pytest_framework_practice/blob/main/tests/test_checkbox.py): pytest tests · User-facing checkbox assertions. · `tests/test_checkbox.py`
- [Pytest setup](https://github.com/appiummal/pytest_framework_practice/blob/main/conftest.py): fixture boundary · Shared browser lifecycle and test context. · `conftest.py`

### Automation Core

- [Driver factory](https://github.com/appiummal/pytest_framework_practice/blob/main/core/driver_factory.py): WebDriver boundary · Creates and selects browser drivers. · `core/driver_factory.py`
- [Browser actions](https://github.com/appiummal/pytest_framework_practice/blob/main/core/actions.py): interaction layer · Reusable low-level browser operations. · `core/actions.py`
- [Wait helpers](https://github.com/appiummal/pytest_framework_practice/blob/main/core/wait_helpers.py): synchronization layer · Explicit readiness and timing behavior. · `core/wait_helpers.py`
- [Automation exceptions](https://github.com/appiummal/pytest_framework_practice/blob/main/core/exceptions.py): failure boundary · `core/exceptions.py`

### Page Objects

- [Base page](https://github.com/appiummal/pytest_framework_practice/blob/main/pages/base_page.py): page foundation · Connects pages to driver actions. · `pages/base_page.py`
- [Checkbox page](https://github.com/appiummal/pytest_framework_practice/blob/main/pages/checkbox_page.py): page object · Checkbox locators and business-level operations. · `pages/checkbox_page.py`

### Configuration & Observability

- [Test configuration](https://github.com/appiummal/pytest_framework_practice/blob/main/config/config.py): settings source · `config/config.py`
- [Config loader](https://github.com/appiummal/pytest_framework_practice/blob/main/utils/config_loader.py): configuration service · `utils/config_loader.py`
- [Logger](https://github.com/appiummal/pytest_framework_practice/blob/main/utils/logger.py): cross-cutting logging · `utils/logger.py`
- [Report manager](https://github.com/appiummal/pytest_framework_practice/blob/main/utils/report_manager.py): reporting service · Aggregates test-report artifacts and outcomes. · `utils/report_manager.py`

### Other components

- **Browser runtime**: Selenium/WebDriver

## Connections

- Checkbox scenarios → Pytest setup: runs with fixtures
- Checkbox scenarios → Checkbox page: uses
- Pytest setup → Config loader: loads settings
- Config loader → Test configuration: reads
- Pytest setup → Driver factory: initializes driver
- Driver factory → Browser runtime: creates
- Checkbox page → Base page: extends
- Base page → Browser actions: delegates interactions
- Browser actions → Wait helpers: synchronizes with
- Browser actions → Browser runtime: drives
- Wait helpers → Browser runtime: waits on
- Browser actions → Automation exceptions: raises
- Checkbox scenarios → Report manager: reports outcomes
- Browser actions → Logger: logs diagnostics
- Report manager → Logger: logs report events
