# djtikas/playwright-web-auto-framework architecture

> Architecture diagram of the GitHub repository djtikas/playwright-web-auto-framework, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/djtikas/playwright-web-auto-framework
- Repository: https://github.com/djtikas/playwright-web-auto-framework

## Overview

This is a Playwright/pytest UI regression-testing framework for a backend management system. Its main workflow is to launch tests, exercise login and management pages, and report results with failure artifacts; tests also cover registration, projects, modules, environments, and multi-account behavior. The README additionally documents interface mocking and Jenkins/Docker CI. Source excerpts show pytest setup, browser artifact capture, page objects, and notifications; several test and mock implementations were not sampled, so their internal calls are not inferred.

Main entry points: [`conftest.py`](https://github.com/djtikas/playwright-web-auto-framework/blob/main/conftest.py) (Pytest setup), [`cases`](https://github.com/djtikas/playwright-web-auto-framework/tree/main/cases) (Regression cases), [`run.py`](https://github.com/djtikas/playwright-web-auto-framework/blob/main/run.py) (Run entry), [`plugins/pytest_playwright.py`](https://github.com/djtikas/playwright-web-auto-framework/blob/main/plugins/pytest_playwright.py) (Failure artifacts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_execution["Test execution"]
  node_run["Run entry<br/>[run.py]"]
  node_pytest["Pytest setup<br/>[conftest.py]"]
  node_cases["Regression cases"]
end

subgraph group_domain["UI test domains"]
  node_auth["Auth tests"]
  node_project["Project tests"]
  node_module["Module tests"]
  node_env["Environment tests"]
  node_accounts["Account tests"]
  node_validation["Validation data<br/>[validation_data.py]"]
  node_loginpage["Login page<br/>[login_page.py]"]
  node_registerpage["Registration page<br/>[register_page.py]"]
  node_projectpage["Project pages"]
  node_modulepage["Module pages"]
  node_envpage["Environment page<br/>[env_list_page.py]"]
end

subgraph group_support["Browser and reporting"]
  node_artifacts["Failure artifacts"]
  node_allure["Allure reporting"]
end

subgraph group_integration["Integrations"]
  node_mock["Interface mocks"]
  node_webapp(("Tested web app"))
  node_dingtalk(("DingTalk"))
  node_jenkins["Jenkins and Docker CI"]
end

node_developer(("Test author"))

node_developer -->|"starts"| node_run
node_run -->|"invokes"| node_pytest
node_pytest -->|"discovers"| node_cases
node_pytest -->|"registers"| node_artifacts
node_pytest -->|"configures results"| node_allure
node_cases -.->|"uses data"| node_validation
node_loginpage -->|"drives browser"| node_webapp
node_registerpage -->|"drives browser"| node_webapp
node_projectpage -->|"drives browser"| node_webapp
node_modulepage -->|"drives browser"| node_webapp
node_envpage -->|"drives browser"| node_webapp
node_artifacts -->|"attaches captures"| node_allure
node_cases -.->|"mocks interfaces"| node_mock
node_pytest -->|"sends summary"| node_dingtalk
node_jenkins -.->|"runs regression"| node_run

click node_run "https://github.com/djtikas/playwright-web-auto-framework/blob/main/run.py"
click node_pytest "https://github.com/djtikas/playwright-web-auto-framework/blob/main/conftest.py"
click node_cases "https://github.com/djtikas/playwright-web-auto-framework/tree/main/cases"
click node_auth "https://github.com/djtikas/playwright-web-auto-framework/tree/main/cases/test_auth"
click node_project "https://github.com/djtikas/playwright-web-auto-framework/tree/main/cases/test_project"
click node_module "https://github.com/djtikas/playwright-web-auto-framework/tree/main/cases/test_module"
click node_env "https://github.com/djtikas/playwright-web-auto-framework/tree/main/cases"
click node_accounts "https://github.com/djtikas/playwright-web-auto-framework/tree/main/cases/test_more_accounts"
click node_validation "https://github.com/djtikas/playwright-web-auto-framework/blob/main/cases/common/validation_data.py"
click node_loginpage "https://github.com/djtikas/playwright-web-auto-framework/blob/main/pages/login_page.py"
click node_registerpage "https://github.com/djtikas/playwright-web-auto-framework/blob/main/pages/register_page.py"
click node_projectpage "https://github.com/djtikas/playwright-web-auto-framework/blob/main/pages/project_list_page.py"
click node_modulepage "https://github.com/djtikas/playwright-web-auto-framework/blob/main/pages/module_list_page.py"
click node_envpage "https://github.com/djtikas/playwright-web-auto-framework/blob/main/pages/env_list_page.py"
click node_artifacts "https://github.com/djtikas/playwright-web-auto-framework/blob/main/plugins/pytest_playwright.py"
click node_mock "https://github.com/djtikas/playwright-web-auto-framework/tree/main/mocks"
click node_jenkins "https://github.com/djtikas/playwright-web-auto-framework/blob/main/Jenkinsfile"

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_run,node_pytest,node_cases toneBlue
class node_auth,node_project,node_module,node_env,node_accounts,node_validation,node_loginpage,node_registerpage,node_projectpage,node_modulepage,node_envpage toneAmber
class node_artifacts,node_allure toneMint
class node_mock,node_webapp,node_dingtalk,node_jenkins toneRose
class node_developer toneIndigo
```

## Components

### Test execution

- [Run entry](https://github.com/djtikas/playwright-web-auto-framework/blob/main/run.py): `run.py`
- [Pytest setup](https://github.com/djtikas/playwright-web-auto-framework/blob/main/conftest.py): `conftest.py`
- [Regression cases](https://github.com/djtikas/playwright-web-auto-framework/tree/main/cases): `cases`

### UI test domains

- [Auth tests](https://github.com/djtikas/playwright-web-auto-framework/tree/main/cases/test_auth): `cases/test_auth`
- [Project tests](https://github.com/djtikas/playwright-web-auto-framework/tree/main/cases/test_project): `cases/test_project`
- [Module tests](https://github.com/djtikas/playwright-web-auto-framework/tree/main/cases/test_module): `cases/test_module`
- [Environment tests](https://github.com/djtikas/playwright-web-auto-framework/tree/main/cases): `cases`
- [Account tests](https://github.com/djtikas/playwright-web-auto-framework/tree/main/cases/test_more_accounts): `cases/test_more_accounts`
- [Validation data](https://github.com/djtikas/playwright-web-auto-framework/blob/main/cases/common/validation_data.py): `cases/common/validation_data.py`
- [Login page](https://github.com/djtikas/playwright-web-auto-framework/blob/main/pages/login_page.py): `pages/login_page.py`
- [Registration page](https://github.com/djtikas/playwright-web-auto-framework/blob/main/pages/register_page.py): `pages/register_page.py`
- [Project pages](https://github.com/djtikas/playwright-web-auto-framework/blob/main/pages/project_list_page.py): `pages/project_list_page.py`
- [Module pages](https://github.com/djtikas/playwright-web-auto-framework/blob/main/pages/module_list_page.py): `pages/module_list_page.py`
- [Environment page](https://github.com/djtikas/playwright-web-auto-framework/blob/main/pages/env_list_page.py): `pages/env_list_page.py`

### Browser and reporting

- [Failure artifacts](https://github.com/djtikas/playwright-web-auto-framework/blob/main/plugins/pytest_playwright.py): `plugins/pytest_playwright.py`
- **Allure reporting**

### Integrations

- [Interface mocks](https://github.com/djtikas/playwright-web-auto-framework/tree/main/mocks): `mocks`
- **Tested web app**
- **DingTalk**
- [Jenkins and Docker CI](https://github.com/djtikas/playwright-web-auto-framework/blob/main/Jenkinsfile): `Jenkinsfile`

### Other components

- **Test author**

## Connections

- Test author → Run entry: starts (evidence: `README.md`)
- Run entry → Pytest setup: invokes (evidence: `run.py`)
- Pytest setup → Regression cases: discovers (evidence: `README.md`)
- Pytest setup → Failure artifacts: registers (evidence: `conftest.py`)
- Pytest setup → Allure reporting: configures results (evidence: `conftest.py`)
- Regression cases → Validation data: uses data
- Login page → Tested web app: drives browser (evidence: `pages/login_page.py`)
- Registration page → Tested web app: drives browser (evidence: `pages/register_page.py`)
- Project pages → Tested web app: drives browser (evidence: `pages/project_list_page.py`)
- Module pages → Tested web app: drives browser (evidence: `pages/module_list_page.py`)
- Environment page → Tested web app: drives browser (evidence: `pages/env_list_page.py`)
- Failure artifacts → Allure reporting: attaches captures (evidence: `plugins/pytest_playwright.py`)
- Regression cases → Interface mocks: mocks interfaces (evidence: `README.md`)
- Pytest setup → DingTalk: sends summary (evidence: `conftest.py`)
- Jenkins and Docker CI → Run entry: runs regression (evidence: `README.md`)
