# ayub-223/test-automation-framework---java-selenium architecture

> Architecture diagram of the GitHub repository ayub-223/test-automation-framework---java-selenium, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ayub-223/test-automation-framework---java-selenium
- Repository: https://github.com/ayub-223/test-automation-framework---java-selenium

## Overview

This repository is presented as a Selenium/TestNG web-UI automation framework. Its principal workflow is to initialize a browser, run test scenarios through page objects, handle OTP retrieval when required, and validate business workflows such as wallet, product, and transaction flows. The README also documents API validation and selected-run recording/highlighting. Source excerpts cover only a standalone Hello World entry point, so relationships below rely on README descriptions; implementation details and individual test-to-page calls remain unverified.

Main entry points: [`src/test/java/Test`](https://github.com/ayub-223/test-automation-framework---java-selenium/tree/main/src/test/java/Test) (TestNG scenarios), [`src/test/java/Test/EndToEndTest.java`](https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Test/EndToEndTest.java) (End-to-end flow), [`src/test/java/Test/TransactionPageTest_demo.java`](https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Test/TransactionPageTest_demo.java) (Transaction tests), [`src/test/java/Utilities/OTPUtils.java`](https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Utilities/OTPUtils.java) (OTP retrieval)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_execution["Test execution"]
  node_runner["TestNG scenarios"]
  node_e2e["End-to-end flow<br/>[EndToEndTest.java]"]
  node_transaction_test["Transaction tests"]
  node_export_test["Export validation"]
  node_base["Browser setup<br/>[BaseTest.java]"]
end

subgraph group_pages["Page interactions"]
  node_login["Login page<br/>[LoginPage.java]"]
  node_wallet["Wallet page<br/>[WalletPage.java]"]
  node_product["Product page<br/>[productpage.java]"]
  node_transaction["Transaction page"]
end

subgraph group_support["Automation support"]
  node_otp["OTP retrieval<br/>[OTPUtils.java]"]
  node_otp_python["OTP helper<br/>[otp_reader.py]"]
  node_highlight["UI highlighting"]
  node_recording["Screen recording"]
  node_api_validation["API validation"]
end

subgraph group_integrations["External systems"]
  node_browser(("Browser"))
  node_web_app(("Web application"))
  node_email(("Email environment"))
end

node_runner -->|"initializes"| node_base
node_runner -->|"runs"| node_e2e
node_runner -->|"runs"| node_transaction_test
node_runner -->|"runs"| node_export_test
node_base -->|"sets up"| node_browser
node_e2e -->|"uses page objects"| node_login
node_e2e -->|"uses page objects"| node_wallet
node_e2e -->|"uses page objects"| node_product
node_transaction_test -->|"uses page objects"| node_transaction
node_export_test -->|"validates exports"| node_transaction
node_login -->|"interacts with"| node_web_app
node_otp -->|"retrieves OTP"| node_email
node_otp_python -.->|"supports"| node_otp
node_e2e -->|"uses OTP"| node_otp
node_transaction_test -.->|"may validate API"| node_api_validation
node_runner -->|"uses utility"| node_highlight
node_runner -->|"records selected flows"| node_recording

click node_runner "https://github.com/ayub-223/test-automation-framework---java-selenium/tree/main/src/test/java/Test"
click node_e2e "https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Test/EndToEndTest.java"
click node_transaction_test "https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Test/TransactionPageTest_demo.java"
click node_export_test "https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Test/Transaction_30_90_days_export.java"
click node_base "https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/base/BaseTest.java"
click node_login "https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Pages/LoginPage.java"
click node_wallet "https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Pages/WalletPage.java"
click node_product "https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Pages/productpage.java"
click node_transaction "https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Pages/transaction_page.java"
click node_otp "https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Utilities/OTPUtils.java"
click node_otp_python "https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Utilities/otp_reader.py"
click node_highlight "https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Utilities/HighlightUtility.java"
click node_recording "https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Utilities/ScreenRecorderUtil.java"
click node_api_validation "https://github.com/ayub-223/test-automation-framework---java-selenium/tree/main/src/test/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_runner,node_e2e,node_transaction_test,node_export_test,node_base toneBlue
class node_login,node_wallet,node_product,node_transaction toneAmber
class node_otp,node_otp_python,node_highlight,node_recording,node_api_validation toneMint
class node_browser,node_web_app,node_email toneRose
```

## Components

### Test execution

- [TestNG scenarios](https://github.com/ayub-223/test-automation-framework---java-selenium/tree/main/src/test/java/Test): `src/test/java/Test`
- [End-to-end flow](https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Test/EndToEndTest.java): `src/test/java/Test/EndToEndTest.java`
- [Transaction tests](https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Test/TransactionPageTest_demo.java): `src/test/java/Test/TransactionPageTest_demo.java`
- [Export validation](https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Test/Transaction_30_90_days_export.java): `src/test/java/Test/Transaction_30_90_days_export.java`
- [Browser setup](https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/base/BaseTest.java): `src/test/java/base/BaseTest.java`

### Page interactions

- [Login page](https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Pages/LoginPage.java): `src/test/java/Pages/LoginPage.java`
- [Wallet page](https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Pages/WalletPage.java): `src/test/java/Pages/WalletPage.java`
- [Product page](https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Pages/productpage.java): `src/test/java/Pages/productpage.java`
- [Transaction page](https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Pages/transaction_page.java): `src/test/java/Pages/transaction_page.java`

### Automation support

- [OTP retrieval](https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Utilities/OTPUtils.java): `src/test/java/Utilities/OTPUtils.java`
- [OTP helper](https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Utilities/otp_reader.py): `src/test/java/Utilities/otp_reader.py`
- [UI highlighting](https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Utilities/HighlightUtility.java): `src/test/java/Utilities/HighlightUtility.java`
- [Screen recording](https://github.com/ayub-223/test-automation-framework---java-selenium/blob/main/src/test/java/Utilities/ScreenRecorderUtil.java): `src/test/java/Utilities/ScreenRecorderUtil.java`
- [API validation](https://github.com/ayub-223/test-automation-framework---java-selenium/tree/main/src/test/java): `src/test/java`

### External systems

- **Browser**
- **Web application**
- **Email environment**

## Connections

- TestNG scenarios → Browser setup: initializes (evidence: `README.md`)
- TestNG scenarios → End-to-end flow: runs (evidence: `README.md`)
- TestNG scenarios → Transaction tests: runs (evidence: `README.md`)
- TestNG scenarios → Export validation: runs (evidence: `README.md`)
- Browser setup → Browser: sets up (evidence: `README.md`)
- End-to-end flow → Login page: uses page objects (evidence: `README.md`)
- End-to-end flow → Wallet page: uses page objects (evidence: `README.md`)
- End-to-end flow → Product page: uses page objects (evidence: `README.md`)
- Transaction tests → Transaction page: uses page objects (evidence: `README.md`)
- Export validation → Transaction page: validates exports (evidence: `README.md`)
- Login page → Web application: interacts with (evidence: `README.md`)
- OTP retrieval → Email environment: retrieves OTP (evidence: `README.md`)
- OTP helper → OTP retrieval: supports
- End-to-end flow → OTP retrieval: uses OTP (evidence: `README.md`)
- Transaction tests → API validation: may validate API
- TestNG scenarios → UI highlighting: uses utility (evidence: `README.md`)
- TestNG scenarios → Screen recording: records selected flows (evidence: `README.md`)
