# srikanth300/automationexerciseframework-selenium-java architecture

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

- Interactive diagram: https://gitdiagram.com/srikanth300/automationexerciseframework-selenium-java
- Repository: https://github.com/srikanth300/automationexerciseframework-selenium-java

## Overview

This repository is a Selenium page-object test automation framework for exercising an e-commerce site. Its scenarios cover account creation, login/logout and deletion, product browsing, checkout, and contact submission; the shared setup creates a browser and opens the configured URL. The graph preserves these scenario and page-object areas alongside browser/configuration and spreadsheet utilities. Test-to-page links are dashed because the test implementations were not excerpted, so their specific calls could not be verified.

Main entry points: [`src/test/java/tests`](https://github.com/srikanth300/automationexerciseframework-selenium-java/tree/master/src/test/java/tests) (Shopping scenarios), [`src/main/java/base/BaseTest.java`](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/base/BaseTest.java) (Test lifecycle), [`src/test/java/tests/ContactUsTest.java`](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/test/java/tests/ContactUsTest.java) (Contact scenario), [`src/main/java/utilities/DriverFactory.java`](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/utilities/DriverFactory.java) (WebDriver factory)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_scenarios["Test scenarios"]
  node_account_tests["Account scenarios"]
  node_auth_tests["Authentication scenarios"]
  node_shopping_tests["Shopping scenarios"]
  node_contact_test["Contact scenario<br/>[ContactUsTest.java]"]
end

subgraph group_pages["Page objects"]
  node_home["Home navigation<br/>[HomePage.java]"]
  node_signup["Signup flow<br/>[SignupPage.java]"]
  node_account_info["Account details"]
  node_account_result["Account outcomes"]
  node_account_deleted["Account deletion"]
  node_login["Login<br/>[LoginPage.java]"]
  node_contact["Contact form<br/>[ContactUsPage.java]"]
  node_products["Product search<br/>[ProductPage.java]"]
  node_product_details["Product details"]
  node_cart["Cart<br/>[CartPage.java]"]
  node_checkout["Checkout<br/>[CheckoutPage.java]"]
  node_payment["Payment<br/>[PaymentPage.java]"]
  node_order_confirmation["Order confirmation"]
end

subgraph group_runtime["Browser runtime"]
  node_base_test["Test lifecycle<br/>[BaseTest.java]"]
  node_driver_factory["WebDriver factory<br/>[DriverFactory.java]"]
  node_config_reader["Configuration reader<br/>[ConfigReader.java]"]
  node_config["Site configuration<br/>[config.properties]"]
end

subgraph group_data["Test data"]
  node_excel_utils["Excel reader<br/>[ExcelUtils.java]"]
  node_testdata["Spreadsheet test data<br/>[TestData.xlsx]"]
end

node_runner(("Test runner"))
node_browser["Chrome browser"]
node_site["AutomationExercise site"]

node_runner -.->|"runs"| node_account_tests
node_runner -.->|"runs"| node_auth_tests
node_runner -.->|"runs"| node_shopping_tests
node_runner -.->|"runs"| node_contact_test
node_account_tests -.->|"exercises"| node_signup
node_account_tests -.->|"exercises"| node_account_info
node_account_tests -.->|"checks"| node_account_result
node_account_tests -.->|"checks"| node_account_deleted
node_auth_tests -.->|"exercises"| node_login
node_auth_tests -.->|"navigates"| node_home
node_shopping_tests -.->|"exercises"| node_products
node_shopping_tests -.->|"exercises"| node_product_details
node_shopping_tests -.->|"exercises"| node_cart
node_shopping_tests -.->|"exercises"| node_checkout
node_shopping_tests -.->|"exercises"| node_payment
node_shopping_tests -.->|"checks"| node_order_confirmation
node_contact_test -.->|"exercises"| node_contact
node_base_test -->|"initializes"| node_driver_factory
node_base_test -->|"reads URL"| node_config_reader
node_config_reader -->|"loads"| node_config
node_driver_factory -->|"creates driver"| node_browser
node_base_test -->|"opens URL"| node_site
node_excel_utils -.->|"reads workbook"| node_testdata

click node_account_tests "https://github.com/srikanth300/automationexerciseframework-selenium-java/tree/master/src/test/java/tests"
click node_auth_tests "https://github.com/srikanth300/automationexerciseframework-selenium-java/tree/master/src/test/java/tests"
click node_shopping_tests "https://github.com/srikanth300/automationexerciseframework-selenium-java/tree/master/src/test/java/tests"
click node_contact_test "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/test/java/tests/ContactUsTest.java"
click node_home "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/HomePage.java"
click node_signup "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/SignupPage.java"
click node_account_info "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/AccountInformationPage.java"
click node_account_result "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/AccountCreatedPage.java"
click node_account_deleted "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/AccountDeletedPage.java"
click node_login "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/LoginPage.java"
click node_contact "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/ContactUsPage.java"
click node_products "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/ProductPage.java"
click node_product_details "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/ProductDetailsPage.java"
click node_cart "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/CartPage.java"
click node_checkout "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/CheckoutPage.java"
click node_payment "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/PaymentPage.java"
click node_order_confirmation "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/OrderConfirmationPage.java"
click node_base_test "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/base/BaseTest.java"
click node_driver_factory "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/utilities/DriverFactory.java"
click node_config_reader "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/utilities/ConfigReader.java"
click node_config "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/resources/config.properties"
click node_excel_utils "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/utilities/ExcelUtils.java"
click node_testdata "https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/test/resources/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_account_tests,node_auth_tests,node_shopping_tests,node_contact_test,node_browser toneBlue
class node_home,node_signup,node_account_info,node_account_result,node_account_deleted,node_login,node_contact,node_products,node_product_details,node_cart,node_checkout,node_payment,node_order_confirmation toneAmber
class node_base_test,node_driver_factory,node_config_reader,node_config toneMint
class node_excel_utils,node_testdata toneRose
class node_runner,node_site toneIndigo
```

## Components

### Test scenarios

- [Account scenarios](https://github.com/srikanth300/automationexerciseframework-selenium-java/tree/master/src/test/java/tests): `src/test/java/tests`
- [Authentication scenarios](https://github.com/srikanth300/automationexerciseframework-selenium-java/tree/master/src/test/java/tests): `src/test/java/tests`
- [Shopping scenarios](https://github.com/srikanth300/automationexerciseframework-selenium-java/tree/master/src/test/java/tests): `src/test/java/tests`
- [Contact scenario](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/test/java/tests/ContactUsTest.java): `src/test/java/tests/ContactUsTest.java`

### Page objects

- [Home navigation](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/HomePage.java): `src/main/java/pages/HomePage.java`
- [Signup flow](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/SignupPage.java): `src/main/java/pages/SignupPage.java`
- [Account details](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/AccountInformationPage.java): `src/main/java/pages/AccountInformationPage.java`
- [Account outcomes](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/AccountCreatedPage.java): `src/main/java/pages/AccountCreatedPage.java`
- [Account deletion](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/AccountDeletedPage.java): `src/main/java/pages/AccountDeletedPage.java`
- [Login](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/LoginPage.java): `src/main/java/pages/LoginPage.java`
- [Contact form](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/ContactUsPage.java): `src/main/java/pages/ContactUsPage.java`
- [Product search](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/ProductPage.java): `src/main/java/pages/ProductPage.java`
- [Product details](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/ProductDetailsPage.java): `src/main/java/pages/ProductDetailsPage.java`
- [Cart](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/CartPage.java): `src/main/java/pages/CartPage.java`
- [Checkout](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/CheckoutPage.java): `src/main/java/pages/CheckoutPage.java`
- [Payment](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/PaymentPage.java): `src/main/java/pages/PaymentPage.java`
- [Order confirmation](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/pages/OrderConfirmationPage.java): `src/main/java/pages/OrderConfirmationPage.java`

### Browser runtime

- [Test lifecycle](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/base/BaseTest.java): `src/main/java/base/BaseTest.java`
- [WebDriver factory](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/utilities/DriverFactory.java): `src/main/java/utilities/DriverFactory.java`
- [Configuration reader](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/utilities/ConfigReader.java): `src/main/java/utilities/ConfigReader.java`
- [Site configuration](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/resources/config.properties): `src/main/resources/config.properties`

### Test data

- [Excel reader](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/main/java/utilities/ExcelUtils.java): `src/main/java/utilities/ExcelUtils.java`
- [Spreadsheet test data](https://github.com/srikanth300/automationexerciseframework-selenium-java/blob/master/src/test/resources/testdata/TestData.xlsx): `src/test/resources/testdata/TestData.xlsx`

### Other components

- **Test runner**
- **Chrome browser**
- **AutomationExercise site**

## Connections

- Test runner → Account scenarios: runs
- Test runner → Authentication scenarios: runs
- Test runner → Shopping scenarios: runs
- Test runner → Contact scenario: runs
- Account scenarios → Signup flow: exercises
- Account scenarios → Account details: exercises
- Account scenarios → Account outcomes: checks
- Account scenarios → Account deletion: checks
- Authentication scenarios → Login: exercises
- Authentication scenarios → Home navigation: navigates
- Shopping scenarios → Product search: exercises
- Shopping scenarios → Product details: exercises
- Shopping scenarios → Cart: exercises
- Shopping scenarios → Checkout: exercises
- Shopping scenarios → Payment: exercises
- Shopping scenarios → Order confirmation: checks
- Contact scenario → Contact form: exercises
- Test lifecycle → WebDriver factory: initializes (evidence: `src/main/java/base/BaseTest.java`)
- Test lifecycle → Configuration reader: reads URL (evidence: `src/main/java/base/BaseTest.java`)
- Configuration reader → Site configuration: loads (evidence: `src/main/java/utilities/ConfigReader.java`)
- WebDriver factory → Chrome browser: creates driver (evidence: `src/main/java/utilities/DriverFactory.java`)
- Test lifecycle → AutomationExercise site: opens URL (evidence: `src/main/java/base/BaseTest.java`)
- Excel reader → Spreadsheet test data: reads workbook
