# anubandi/selenium-testng-frameworkoct2026 architecture

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

- Interactive diagram: https://gitdiagram.com/anubandi/selenium-testng-frameworkoct2026
- Repository: https://github.com/anubandi/selenium-testng-frameworkoct2026

## Overview

This repository is a Java Selenium/TestNG UI automation framework for SauceDemo. The documented workflow is TestNG running login tests, with BaseTest preparing the browser and page objects; tests exercise page objects using reusable Selenium actions, while configuration supplies browser and URL settings. Failure handling captures screenshots and connects them to an HTML report. The graph focuses on that runtime framework and excludes CI/build machinery. Source excerpts were unavailable, so relationships are limited to those documented in the README; unsampled implementation details are not inferred.

Main entry points: [`src/test/java/BaseTest.java`](https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/BaseTest.java) (Base test), [`testng.xml`](https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/testng.xml) (Suite and groups), [`src/test/java/ConfigReader.java`](https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/ConfigReader.java) (Config reader), [`src/test/java/ExtentManager.java`](https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/ExtentManager.java) (Report setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_execution["Test execution"]
  node_suite["Suite and groups<br/>[testng.xml]"]
  node_base["Base test<br/>[BaseTest.java]"]
  node_login_test["Login tests"]
  node_practice_test["Practice login tests<br/>[LoginTest.java]"]
  node_practice_no_pom["No-POM login test"]
end

subgraph group_pages["Page interactions"]
  node_login_page["Login page object<br/>[LoginPage.java]"]
  node_practice_login_page["Practice login page<br/>[Loginpage.java]"]
  node_inventory_page["Inventory page<br/>[InventoryPage.java]"]
end

subgraph group_support["Test support"]
  node_common_actions["Reusable actions<br/>[CommonActions.java]"]
  node_config_reader["Config reader<br/>[ConfigReader.java]"]
  node_config["Runtime configuration<br/>[config.properties]"]
  node_extent["Report setup<br/>[ExtentManager.java]"]
  node_screenshots["Failure screenshots<br/>[BaseTest.java]"]
  node_html_report["HTML report<br/>[ExtentManager.java]"]
end

node_testng(("TestNG runner"))

node_testng -->|"runs suite"| node_suite
node_suite -->|"groups tests"| node_login_test
node_base -->|"creates page object"| node_login_page
node_base -->|"creates page object"| node_inventory_page
node_config_reader -->|"reads settings"| node_config
node_base -->|"uses configuration"| node_config_reader
node_base -->|"captures on failure"| node_screenshots
node_base -->|"creates reporting"| node_extent
node_extent -->|"produces report"| node_html_report
node_screenshots -->|"attaches evidence"| node_html_report

click node_suite "https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/testng.xml"
click node_base "https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/BaseTest.java"
click node_login_test "https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/LoginTest_DataProvider.java"
click node_practice_test "https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/practsise/LoginTest.java"
click node_practice_no_pom "https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/practsise/LoginTestWithNoPOM.java"
click node_login_page "https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/LoginPage.java"
click node_practice_login_page "https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/practsise/Loginpage.java"
click node_inventory_page "https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/practsise/InventoryPage.java"
click node_common_actions "https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/CommonActions.java"
click node_config_reader "https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/ConfigReader.java"
click node_config "https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/resources/config.properties"
click node_extent "https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/ExtentManager.java"
click node_screenshots "https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/BaseTest.java"
click node_html_report "https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/ExtentManager.java"

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_suite,node_base,node_login_test,node_practice_test,node_practice_no_pom toneBlue
class node_login_page,node_practice_login_page,node_inventory_page toneAmber
class node_common_actions,node_config_reader,node_config,node_extent,node_screenshots,node_html_report toneMint
class node_testng toneIndigo
```

## Components

### Test execution

- [Suite and groups](https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/testng.xml): `testng.xml`
- [Base test](https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/BaseTest.java): `src/test/java/BaseTest.java`
- [Login tests](https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/LoginTest_DataProvider.java): `src/test/java/LoginTest_DataProvider.java`
- [Practice login tests](https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/practsise/LoginTest.java): `src/test/java/practsise/LoginTest.java`
- [No-POM login test](https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/practsise/LoginTestWithNoPOM.java): `src/test/java/practsise/LoginTestWithNoPOM.java`

### Page interactions

- [Login page object](https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/LoginPage.java): `src/test/java/LoginPage.java`
- [Practice login page](https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/practsise/Loginpage.java): `src/test/java/practsise/Loginpage.java`
- [Inventory page](https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/practsise/InventoryPage.java): `src/test/java/practsise/InventoryPage.java`

### Test support

- [Reusable actions](https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/CommonActions.java): `src/test/java/CommonActions.java`
- [Config reader](https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/ConfigReader.java): `src/test/java/ConfigReader.java`
- [Runtime configuration](https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/resources/config.properties): `src/test/resources/config.properties`
- [Report setup](https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/ExtentManager.java): `src/test/java/ExtentManager.java`
- [Failure screenshots](https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/BaseTest.java): `src/test/java/BaseTest.java`
- [HTML report](https://github.com/anubandi/selenium-testng-frameworkoct2026/blob/main/src/test/java/ExtentManager.java): `src/test/java/ExtentManager.java`

### Other components

- **TestNG runner**

## Connections

- TestNG runner → Suite and groups: runs suite (evidence: `README.md`)
- Suite and groups → Login tests: groups tests (evidence: `README.md`)
- Base test → Login page object: creates page object (evidence: `README.md`)
- Base test → Inventory page: creates page object (evidence: `README.md`)
- Config reader → Runtime configuration: reads settings (evidence: `README.md`)
- Base test → Config reader: uses configuration (evidence: `README.md`)
- Base test → Failure screenshots: captures on failure (evidence: `README.md`)
- Base test → Report setup: creates reporting (evidence: `README.md`)
- Report setup → HTML report: produces report (evidence: `README.md`)
- Failure screenshots → HTML report: attaches evidence (evidence: `README.md`)
