# naveenanimation20/nov2025pomframework architecture

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

- Interactive diagram: https://gitdiagram.com/naveenanimation20/nov2025pomframework
- Repository: https://github.com/naveenanimation20/nov2025pomframework

## Overview

#### Purpose and execution model
This is a Java UI test automation framework for OpenCart workflows, organized around Selenium-style page objects and TestNG suites. Maven is the build/dependency entry point (`pom.xml`); CI is configured through `Jenkinsfile`. TestNG runner XML files select browser and regression/sanity execution scopes under `src/test/resources/testrunners/`.

#### Test lifecycle and orchestration
`BaseTest` is the test-layer entry point, responsible for shared setup/teardown and exposing initialized page objects to scenario classes. Feature tests drive user journeys such as home navigation, authentication, registration, and product details.
- `src/test/java/com/opencart/qa/base/BaseTest.java`
- `src/test/java/com/opencart/qa/tests/LoginPageTest.java`
- `src/test/java/com/opencart/qa/tests/ProductInfoPageTest.java`

#### Browser driver boundary
Browser creation is centralized rather than embedded in tests or page objects. `DriverFactory` owns WebDriver lifecycle; `OptionsManager` supplies browser-specific options. This isolates runtime browser selection and driver configuration from test flow.
- `src/main/java/com/opencart/qa/factory/DriverFactory.java`
- `src/main/java/com/opencart/qa/factory/OptionsManager.java`
- `src/test/resources/testrunners/chrome.xml`

#### Page-object interaction layer
Page classes represent OpenCart screens and encapsulate locators and UI actions. Tests should compose these page APIs rather than directly operating browser elements. Navigation/control flow generally proceeds from `HomePage` or `LoginPage` to search results and product information, with separate registration coverage.
- `src/main/java/com/opencart/qa/pages/HomePage.java`
- `src/main/java/com/opencart/qa/pages/ResultsPage.java`
- `src/main/java/com/opencart/qa/pages/ProductInfoPage.java`

#### UI abstraction and failure handling
`ElementUtil` and `JavaScriptUtil` form the lower-level interaction boundary for waits, element actions, and JavaScript-backed operations. Framework-specific browser, element, and general exceptions standardize failure signaling across pages and lifecycle code.
- `src/main/java/com/opencart/qa/utils/ElementUtil.java`
- `src/main/java/com/opencart/qa/utils/JavaScriptUtil.java`
- `src/main/java/com/opencart/qa/exceptions/BrowserException.java`

#### Environment and test data flow
Runtime configuration supports a base properties file plus dev, QA, stage, and UAT environment variants. Structured test inputs are supplied from Excel and CSV resources through dedicated readers, allowing data-driven registration and other test cases without hardcoding values in test classes.
- `src/test/resources/config/config.properties`
- `src/test/resources/config/config.qa.properties`
- `src/main/java/com/opencart/qa/utils/ExcelUtil.java`

#### Reporting, retries, and delivery integration
TestNG listeners provide retry behavior, annotation transformation, and Allure reporting hooks. Suite XML files determine the test selection passed to Maven/TestNG, while Jenkins provides the CI execution boundary. The principal external runtime services are the target OpenCart deployment, a local/remote browser driver, and Allure-compatible reporting output.
- `src/main/java/com/opencart/qa/listeners/TestAllureListener.java`
- `src/main/java/com/opencart/qa/listeners/Retry.java`
- `Jenkinsfile`

Main entry points: [`src/test/java/com/opencart/qa/base/BaseTest.java`](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/test/java/com/opencart/qa/base/BaseTest.java) (Base test), [`src/main/java/com/opencart/qa/factory/DriverFactory.java`](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/factory/DriverFactory.java) (Driver factory), [`src/test/resources/testrunners/chrome.xml`](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/test/resources/testrunners/chrome.xml) (Chrome suite), [`src/main/java/com/opencart/qa/utils/ElementUtil.java`](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/utils/ElementUtil.java) (Element util)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_delivery["Build &amp; CI"]
  node_maven{{"Maven build<br/>build entry point<br/>[pom.xml]"}}
  node_jenkins["Jenkins CI<br/>CI pipeline"]
end

subgraph group_test["Test Orchestration"]
  node_suite["Chrome suite<br/>TestNG suite<br/>[chrome.xml]"]
  node_base_test["Base test<br/>test lifecycle<br/>[BaseTest.java]"]
  node_login_test["Login tests<br/>feature tests<br/>[LoginPageTest.java]"]
  node_product_test["Product tests<br/>feature tests"]
end

subgraph group_browser["Browser Runtime"]
  node_driver_factory["Driver factory<br/>WebDriver lifecycle<br/>[DriverFactory.java]"]
  node_options["Options manager<br/>browser options"]
  node_browser_driver(("Browser driver<br/>external runtime"))
end

subgraph group_pages["Page Objects"]
  node_home["Home page<br/>page object<br/>[HomePage.java]"]
  node_results["Results page<br/>page object<br/>[ResultsPage.java]"]
  node_product_info["Product info page<br/>page object"]
end

subgraph group_support["Framework Support"]
  node_element_util["Element util<br/>UI interaction<br/>[ElementUtil.java]"]
  node_js_util["JavaScript util<br/>UI interaction"]
  node_browser_exception["Browser exception<br/>failure contract"]
  node_config["QA configuration<br/>environment properties"]
  node_excel["Excel data reader<br/>test data<br/>[ExcelUtil.java]"]
  node_listener["Allure listener<br/>TestNG listener"]
  node_retry["Retry policy<br/>TestNG retry<br/>[Retry.java]"]
end

node_opencart(("OpenCart deployment<br/>target application"))

node_jenkins -->|"runs"| node_maven
node_maven -->|"selects"| node_suite
node_suite -->|"executes"| node_base_test
node_base_test -->|"initializes"| node_driver_factory
node_driver_factory -->|"uses"| node_options
node_driver_factory -->|"creates"| node_browser_driver
node_config -->|"configures"| node_base_test
node_base_test -->|"shared lifecycle"| node_login_test
node_base_test -->|"shared lifecycle"| node_product_test
node_login_test -->|"uses"| node_home
node_product_test -->|"uses"| node_product_info
node_home -->|"searches to"| node_results
node_results -->|"opens"| node_product_info
node_home -->|"interacts through"| node_element_util
node_results -->|"interacts through"| node_element_util
node_product_info -->|"interacts through"| node_element_util
node_element_util -.->|"JavaScript actions"| node_js_util
node_driver_factory -.->|"signals failures"| node_browser_exception
node_excel -.->|"test inputs"| node_login_test
node_retry -.->|"retries failures"| node_suite
node_listener -.->|"reports execution"| node_suite
node_browser_driver -->|"drives UI against"| node_opencart

click node_maven "https://github.com/naveenanimation20/nov2025pomframework/blob/main/pom.xml"
click node_jenkins "https://github.com/naveenanimation20/nov2025pomframework/blob/main/Jenkinsfile"
click node_suite "https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/test/resources/testrunners/chrome.xml"
click node_base_test "https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/test/java/com/opencart/qa/base/BaseTest.java"
click node_login_test "https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/test/java/com/opencart/qa/tests/LoginPageTest.java"
click node_product_test "https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/test/java/com/opencart/qa/tests/ProductInfoPageTest.java"
click node_driver_factory "https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/factory/DriverFactory.java"
click node_options "https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/factory/OptionsManager.java"
click node_home "https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/pages/HomePage.java"
click node_results "https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/pages/ResultsPage.java"
click node_product_info "https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/pages/ProductInfoPage.java"
click node_element_util "https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/utils/ElementUtil.java"
click node_js_util "https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/utils/JavaScriptUtil.java"
click node_browser_exception "https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/exceptions/BrowserException.java"
click node_config "https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/test/resources/config/config.qa.properties"
click node_excel "https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/utils/ExcelUtil.java"
click node_listener "https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/listeners/TestAllureListener.java"
click node_retry "https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/listeners/Retry.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_maven,node_jenkins toneBlue
class node_suite,node_base_test,node_login_test,node_product_test toneAmber
class node_driver_factory,node_options,node_browser_driver toneMint
class node_home,node_results,node_product_info toneRose
class node_element_util,node_js_util,node_browser_exception,node_config,node_excel,node_listener,node_retry toneIndigo
class node_opencart toneNeutral
```

## Components

### Build & CI

- [Maven build](https://github.com/naveenanimation20/nov2025pomframework/blob/main/pom.xml): build entry point · Builds dependencies and executes selected TestNG suites. · `pom.xml`
- [Jenkins CI](https://github.com/naveenanimation20/nov2025pomframework/blob/main/Jenkinsfile): CI pipeline · `Jenkinsfile`

### Test Orchestration

- [Chrome suite](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/test/resources/testrunners/chrome.xml): TestNG suite · Selects Chrome test execution scope. · `src/test/resources/testrunners/chrome.xml`
- [Base test](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/test/java/com/opencart/qa/base/BaseTest.java): test lifecycle · Shared setup and teardown expose initialized page objects. · `src/test/java/com/opencart/qa/base/BaseTest.java`
- [Login tests](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/test/java/com/opencart/qa/tests/LoginPageTest.java): feature tests · `src/test/java/com/opencart/qa/tests/LoginPageTest.java`
- [Product tests](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/test/java/com/opencart/qa/tests/ProductInfoPageTest.java): feature tests · `src/test/java/com/opencart/qa/tests/ProductInfoPageTest.java`

### Browser Runtime

- [Driver factory](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/factory/DriverFactory.java): WebDriver lifecycle · `src/main/java/com/opencart/qa/factory/DriverFactory.java`
- [Options manager](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/factory/OptionsManager.java): browser options · `src/main/java/com/opencart/qa/factory/OptionsManager.java`
- **Browser driver**: external runtime · Local or remote browser WebDriver.

### Page Objects

- [Home page](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/pages/HomePage.java): page object · `src/main/java/com/opencart/qa/pages/HomePage.java`
- [Results page](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/pages/ResultsPage.java): page object · `src/main/java/com/opencart/qa/pages/ResultsPage.java`
- [Product info page](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/pages/ProductInfoPage.java): page object · `src/main/java/com/opencart/qa/pages/ProductInfoPage.java`

### Framework Support

- [Element util](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/utils/ElementUtil.java): UI interaction · Provides waits and element actions. · `src/main/java/com/opencart/qa/utils/ElementUtil.java`
- [JavaScript util](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/utils/JavaScriptUtil.java): UI interaction · `src/main/java/com/opencart/qa/utils/JavaScriptUtil.java`
- [Browser exception](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/exceptions/BrowserException.java): failure contract · `src/main/java/com/opencart/qa/exceptions/BrowserException.java`
- [QA configuration](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/test/resources/config/config.qa.properties): environment properties · Environment-specific runtime settings. · `src/test/resources/config/config.qa.properties`
- [Excel data reader](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/utils/ExcelUtil.java): test data · Supplies structured data-driven inputs. · `src/main/java/com/opencart/qa/utils/ExcelUtil.java`
- [Allure listener](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/listeners/TestAllureListener.java): TestNG listener · Publishes Allure-compatible reporting hooks. · `src/main/java/com/opencart/qa/listeners/TestAllureListener.java`
- [Retry policy](https://github.com/naveenanimation20/nov2025pomframework/blob/main/src/main/java/com/opencart/qa/listeners/Retry.java): TestNG retry · `src/main/java/com/opencart/qa/listeners/Retry.java`

### Other components

- **OpenCart deployment**: target application

## Connections

- Jenkins CI → Maven build: runs
- Maven build → Chrome suite: selects
- Chrome suite → Base test: executes
- Base test → Driver factory: initializes
- Driver factory → Options manager: uses
- Driver factory → Browser driver: creates
- QA configuration → Base test: configures
- Base test → Login tests: shared lifecycle
- Base test → Product tests: shared lifecycle
- Login tests → Home page: uses
- Product tests → Product info page: uses
- Home page → Results page: searches to
- Results page → Product info page: opens
- Home page → Element util: interacts through
- Results page → Element util: interacts through
- Product info page → Element util: interacts through
- Element util → JavaScript util: JavaScript actions
- Driver factory → Browser exception: signals failures
- Excel data reader → Login tests: test inputs
- Retry policy → Chrome suite: retries failures
- Allure listener → Chrome suite: reports execution
- Browser driver → OpenCart deployment: drives UI against
