# redabuziane/automationlogin architecture

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

- Interactive diagram: https://gitdiagram.com/redabuziane/automationlogin
- Repository: https://github.com/redabuziane/automationlogin

## Overview

This repository is a Selenium-based Java login-test automation project. Its apparent workflow is a test run setting up a browser, navigating to the practice login site, exercising the login page, and producing a report; failures can capture screenshots, and suite teardown emails the report. Excel utilities and logging are additional runtime capabilities. LoginTest and ExcelUtils callers were not excerpted, so those links are left unverified rather than inferred; the graph reflects only the visible setup and reporting calls.

Main entry points: [`src/main/java/base/BaseTest.java`](https://github.com/redabuziane/automationlogin/blob/main/src/main/java/base/BaseTest.java) (Test lifecycle), [`src/main/java/utils/ExtentReportManager.java`](https://github.com/redabuziane/automationlogin/blob/main/src/main/java/utils/ExtentReportManager.java) (Report manager), [`src/test/java/test`](https://github.com/redabuziane/automationlogin/tree/main/src/test/java/test) (Login test), [`src/main/java/utils/Emailutils.java`](https://github.com/redabuziane/automationlogin/blob/main/src/main/java/utils/Emailutils.java) (Report email)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_execution["Test execution"]
  node_login_test["Login test"]
  node_base_test["Test lifecycle<br/>[BaseTest.java]"]
end

subgraph group_interaction["Login interaction"]
  node_browser["Chrome browser"]
  node_practice_site["Practice login site"]
  node_login_page["Login page object<br/>[LoginPage.java]"]
end

subgraph group_reporting["Reporting"]
  node_report_manager["Report manager"]
  node_report_file["Extent report"]
  node_screenshots["Failure screenshots"]
  node_email_util["Report email<br/>[Emailutils.java]"]
end

subgraph group_utilities["Utilities"]
  node_excel_utils["Excel data utility<br/>[ExcelUtils.java]"]
  node_logger["Logger<br/>[log.java]"]
  node_test_data["Workbook data<br/>[testdata.xlsx]"]
end

node_qa(("Test runner"))
node_smtp["Gmail SMTP"]

node_qa -.->|"runs"| node_login_test
node_login_test -.->|"uses lifecycle"| node_base_test
node_login_test -.->|"exercises"| node_login_page
node_base_test -->|"starts and quits"| node_browser
node_base_test -->|"navigates to"| node_practice_site
node_base_test -->|"creates report"| node_report_manager
node_base_test -->|"captures on failure"| node_report_manager
node_base_test -->|"emails report"| node_email_util
node_base_test -->|"logs lifecycle"| node_logger
node_login_page -->|"logs click"| node_logger
node_report_manager -->|"writes report"| node_report_file
node_report_manager -->|"saves captures"| node_screenshots
node_email_util -->|"sends email"| node_smtp
node_email_util -->|"attaches report"| node_report_file
node_excel_utils -.->|"reads workbook"| node_test_data

click node_login_test "https://github.com/redabuziane/automationlogin/tree/main/src/test/java/test"
click node_base_test "https://github.com/redabuziane/automationlogin/blob/main/src/main/java/base/BaseTest.java"
click node_login_page "https://github.com/redabuziane/automationlogin/blob/main/src/main/java/pages/LoginPage.java"
click node_report_manager "https://github.com/redabuziane/automationlogin/blob/main/src/main/java/utils/ExtentReportManager.java"
click node_report_file "https://github.com/redabuziane/automationlogin/tree/main/reports"
click node_screenshots "https://github.com/redabuziane/automationlogin/tree/main/screenshots"
click node_email_util "https://github.com/redabuziane/automationlogin/blob/main/src/main/java/utils/Emailutils.java"
click node_excel_utils "https://github.com/redabuziane/automationlogin/blob/main/src/main/java/utils/ExcelUtils.java"
click node_logger "https://github.com/redabuziane/automationlogin/blob/main/src/main/java/utils/log.java"
click node_test_data "https://github.com/redabuziane/automationlogin/blob/main/testdata/testdata.xlsx"

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_login_test,node_base_test toneBlue
class node_browser,node_practice_site,node_login_page toneAmber
class node_report_manager,node_report_file,node_screenshots,node_email_util toneMint
class node_excel_utils,node_logger,node_test_data toneRose
class node_qa,node_smtp toneIndigo
```

## Components

### Test execution

- [Login test](https://github.com/redabuziane/automationlogin/tree/main/src/test/java/test): `src/test/java/test`
- [Test lifecycle](https://github.com/redabuziane/automationlogin/blob/main/src/main/java/base/BaseTest.java): `src/main/java/base/BaseTest.java`

### Login interaction

- **Chrome browser**
- **Practice login site**
- [Login page object](https://github.com/redabuziane/automationlogin/blob/main/src/main/java/pages/LoginPage.java): `src/main/java/pages/LoginPage.java`

### Reporting

- [Report manager](https://github.com/redabuziane/automationlogin/blob/main/src/main/java/utils/ExtentReportManager.java): `src/main/java/utils/ExtentReportManager.java`
- [Extent report](https://github.com/redabuziane/automationlogin/tree/main/reports): `reports`
- [Failure screenshots](https://github.com/redabuziane/automationlogin/tree/main/screenshots): `screenshots`
- [Report email](https://github.com/redabuziane/automationlogin/blob/main/src/main/java/utils/Emailutils.java): `src/main/java/utils/Emailutils.java`

### Utilities

- [Excel data utility](https://github.com/redabuziane/automationlogin/blob/main/src/main/java/utils/ExcelUtils.java): `src/main/java/utils/ExcelUtils.java`
- [Logger](https://github.com/redabuziane/automationlogin/blob/main/src/main/java/utils/log.java): `src/main/java/utils/log.java`
- [Workbook data](https://github.com/redabuziane/automationlogin/blob/main/testdata/testdata.xlsx): `testdata/testdata.xlsx`

### Other components

- **Test runner**
- **Gmail SMTP**

## Connections

- Test runner → Login test: runs
- Login test → Test lifecycle: uses lifecycle
- Login test → Login page object: exercises
- Test lifecycle → Chrome browser: starts and quits (evidence: `src/main/java/base/BaseTest.java`)
- Test lifecycle → Practice login site: navigates to (evidence: `src/main/java/base/BaseTest.java`)
- Test lifecycle → Report manager: creates report (evidence: `src/main/java/base/BaseTest.java`)
- Test lifecycle → Report manager: captures on failure (evidence: `src/main/java/base/BaseTest.java`)
- Test lifecycle → Report email: emails report (evidence: `src/main/java/base/BaseTest.java`)
- Test lifecycle → Logger: logs lifecycle (evidence: `src/main/java/base/BaseTest.java`)
- Login page object → Logger: logs click (evidence: `src/main/java/pages/LoginPage.java`)
- Report manager → Extent report: writes report (evidence: `src/main/java/utils/ExtentReportManager.java`)
- Report manager → Failure screenshots: saves captures (evidence: `src/main/java/utils/ExtentReportManager.java`)
- Report email → Gmail SMTP: sends email (evidence: `src/main/java/utils/Emailutils.java`)
- Report email → Extent report: attaches report (evidence: `src/main/java/utils/Emailutils.java`)
- Excel data utility → Workbook data: reads workbook
