# nouralhaddad/app_website_validation architecture

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

- Interactive diagram: https://gitdiagram.com/nouralhaddad/app_website_validation
- Repository: https://github.com/nouralhaddad/app_website_validation

## Overview

This repository is a Selenium/Pytest suite for checking public website content. The intended workflow is to run the test entry point, open a configured site in a browser, inspect page elements through page objects, and produce an HTML results report. The sampled code confirms browser setup and page-object behavior; the test implementations were not sampled, so their detailed calls are not asserted here. The README documents the validation and reporting capabilities.

Main entry points: [`tests`](https://github.com/nouralhaddad/app_website_validation/tree/master/tests) (Website checks), [`run_tests.py`](https://github.com/nouralhaddad/app_website_validation/blob/master/run_tests.py) (Pytest entry point), [`pages/home_page.py`](https://github.com/nouralhaddad/app_website_validation/blob/master/pages/home_page.py) (Homepage checks), [`utils/browser.py`](https://github.com/nouralhaddad/app_website_validation/blob/master/utils/browser.py) (Chrome driver setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_execution["Test execution"]
  node_runner["Pytest entry point<br/>[run_tests.py]"]
  node_suite["Website checks"]
  node_report["HTML results report"]
end

subgraph group_browser["Browser and configuration"]
  node_settings["Site settings<br/>[settings.py]"]
  node_driver["Chrome driver setup<br/>[browser.py]"]
end

subgraph group_pages["Page objects"]
  node_basepage["Page interactions<br/>[base_page.py]"]
  node_homepage["Homepage checks<br/>[home_page.py]"]
  node_loginpage["Login page object<br/>[login_page.py]"]
end

node_user(("Test runner user"))
node_website["Public website"]

node_user -->|"runs"| node_runner
node_runner -->|"invokes tests"| node_suite
node_runner -->|"generates report"| node_report
node_settings -->|"configures"| node_driver
node_suite -->|"validates content"| node_website
node_suite -.->|"uses browser"| node_driver
node_suite -.->|"checks page"| node_homepage
node_homepage -->|"inherits interactions"| node_basepage

click node_runner "https://github.com/nouralhaddad/app_website_validation/blob/master/run_tests.py"
click node_suite "https://github.com/nouralhaddad/app_website_validation/tree/master/tests"
click node_settings "https://github.com/nouralhaddad/app_website_validation/blob/master/config/settings.py"
click node_driver "https://github.com/nouralhaddad/app_website_validation/blob/master/utils/browser.py"
click node_basepage "https://github.com/nouralhaddad/app_website_validation/blob/master/pages/base_page.py"
click node_homepage "https://github.com/nouralhaddad/app_website_validation/blob/master/pages/home_page.py"
click node_loginpage "https://github.com/nouralhaddad/app_website_validation/blob/master/pages/login_page.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_runner,node_suite,node_report,node_user toneBlue
class node_settings,node_driver toneAmber
class node_basepage,node_homepage,node_loginpage toneMint
class node_website toneIndigo
```

## Components

### Test execution

- [Pytest entry point](https://github.com/nouralhaddad/app_website_validation/blob/master/run_tests.py): `run_tests.py`
- [Website checks](https://github.com/nouralhaddad/app_website_validation/tree/master/tests): `tests`
- **HTML results report**

### Browser and configuration

- [Site settings](https://github.com/nouralhaddad/app_website_validation/blob/master/config/settings.py): `config/settings.py`
- [Chrome driver setup](https://github.com/nouralhaddad/app_website_validation/blob/master/utils/browser.py): `utils/browser.py`

### Page objects

- [Page interactions](https://github.com/nouralhaddad/app_website_validation/blob/master/pages/base_page.py): `pages/base_page.py`
- [Homepage checks](https://github.com/nouralhaddad/app_website_validation/blob/master/pages/home_page.py): `pages/home_page.py`
- [Login page object](https://github.com/nouralhaddad/app_website_validation/blob/master/pages/login_page.py): `pages/login_page.py`

### Other components

- **Test runner user**
- **Public website**

## Connections

- Test runner user → Pytest entry point: runs (evidence: `README.md`)
- Pytest entry point → Website checks: invokes tests (evidence: `run_tests.py`)
- Pytest entry point → HTML results report: generates report (evidence: `run_tests.py`)
- Site settings → Chrome driver setup: configures (evidence: `utils/browser.py`)
- Website checks → Public website: validates content (evidence: `README.md`)
- Website checks → Chrome driver setup: uses browser
- Website checks → Homepage checks: checks page
- Homepage checks → Page interactions: inherits interactions (evidence: `pages/home_page.py`)
