# jagadeeshkumar-1/mobile-ui-automation architecture

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

- Interactive diagram: https://gitdiagram.com/jagadeeshkumar-1/mobile-ui-automation
- Repository: https://github.com/jagadeeshkumar-1/mobile-ui-automation

## Overview

This repository is a Java/Appium mobile UI test framework for the Sauce Labs My Demo App. Its principal workflow is a TestNG scenario using typed page objects to exercise login, product browsing, cart, and checkout on an Android emulator. BaseTest manages the Android driver lifecycle, while BasePage supplies shared interactions. The graph follows the README’s architecture and documented navigation examples; source excerpts were unavailable, so relationships are limited to those documented there.

Main entry points: [`src/test/java/com/nextbillion/pages/ProductsPage.java`](https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/pages/ProductsPage.java) (Products Page), [`src/test/java/com/nextbillion/tests/CartTest.java`](https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/tests/CartTest.java) (Cart Test), [`src/test/java/com/nextbillion/tests/CheckoutTest.java`](https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/tests/CheckoutTest.java) (Checkout Test), [`src/test/java/com/nextbillion/pages/CartPage.java`](https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/pages/CartPage.java) (Cart Page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_tests["Test Scenarios"]
  node_login_test["Login Test<br/>[LoginTest.java]"]
  node_cart_test["Cart Test<br/>[CartTest.java]"]
  node_checkout_test["Checkout Test<br/>[CheckoutTest.java]"]
end

subgraph group_pages["Page Objects"]
  node_login_page["Login Page<br/>[LoginPage.java]"]
  node_products_page["Products Page<br/>[ProductsPage.java]"]
  node_detail_page["Product Detail"]
  node_cart_page["Cart Page<br/>[CartPage.java]"]
  node_checkout_page["Checkout Page<br/>[CheckoutPage.java]"]
end

subgraph group_base["Driver Foundation"]
  node_base_page["Shared Interactions<br/>[BasePage.java]"]
  node_base_test["Driver Lifecycle<br/>[BaseTest.java]"]
end

subgraph group_runtime["Mobile Runtime"]
  node_android_driver["Android Driver"]
  node_appium["Appium Server"]
  node_android_app["Demo App Emulator"]
end

node_qa(("Test Operator"))

node_qa -->|"runs"| node_login_test
node_qa -->|"runs"| node_cart_test
node_qa -->|"runs"| node_checkout_test
node_login_test -->|"exercises login"| node_login_page
node_cart_test -->|"adds item"| node_products_page
node_cart_test -->|"verifies cart"| node_cart_page
node_checkout_test -->|"starts flow"| node_products_page
node_checkout_test -->|"exercises checkout"| node_checkout_page
node_products_page -->|"navigates to login"| node_login_page
node_products_page -->|"opens product"| node_detail_page
node_products_page -->|"opens cart"| node_cart_page
node_cart_page -->|"proceeds to checkout"| node_checkout_page
node_base_test -->|"creates and destroys"| node_android_driver
node_base_test -->|"provides driver setup"| node_base_page
node_base_page -->|"wraps interactions"| node_android_driver
node_android_driver -->|"connects to"| node_appium
node_appium -->|"drives on emulator"| node_android_app

click node_login_test "https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/tests/LoginTest.java"
click node_cart_test "https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/tests/CartTest.java"
click node_checkout_test "https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/tests/CheckoutTest.java"
click node_login_page "https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/pages/LoginPage.java"
click node_products_page "https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/pages/ProductsPage.java"
click node_detail_page "https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/pages/ProductDetailPage.java"
click node_cart_page "https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/pages/CartPage.java"
click node_checkout_page "https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/pages/CheckoutPage.java"
click node_base_page "https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/base/BasePage.java"
click node_base_test "https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/base/BaseTest.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_login_test,node_cart_test,node_checkout_test toneBlue
class node_login_page,node_products_page,node_detail_page,node_cart_page,node_checkout_page toneAmber
class node_base_page,node_base_test toneMint
class node_android_driver,node_appium,node_android_app toneRose
class node_qa toneIndigo
```

## Components

### Test Scenarios

- [Login Test](https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/tests/LoginTest.java): `src/test/java/com/nextbillion/tests/LoginTest.java`
- [Cart Test](https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/tests/CartTest.java): `src/test/java/com/nextbillion/tests/CartTest.java`
- [Checkout Test](https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/tests/CheckoutTest.java): `src/test/java/com/nextbillion/tests/CheckoutTest.java`

### Page Objects

- [Login Page](https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/pages/LoginPage.java): `src/test/java/com/nextbillion/pages/LoginPage.java`
- [Products Page](https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/pages/ProductsPage.java): `src/test/java/com/nextbillion/pages/ProductsPage.java`
- [Product Detail](https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/pages/ProductDetailPage.java): `src/test/java/com/nextbillion/pages/ProductDetailPage.java`
- [Cart Page](https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/pages/CartPage.java): `src/test/java/com/nextbillion/pages/CartPage.java`
- [Checkout Page](https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/pages/CheckoutPage.java): `src/test/java/com/nextbillion/pages/CheckoutPage.java`

### Driver Foundation

- [Shared Interactions](https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/base/BasePage.java): `src/test/java/com/nextbillion/base/BasePage.java`
- [Driver Lifecycle](https://github.com/jagadeeshkumar-1/mobile-ui-automation/blob/main/src/test/java/com/nextbillion/base/BaseTest.java): `src/test/java/com/nextbillion/base/BaseTest.java`

### Mobile Runtime

- **Android Driver**
- **Appium Server**
- **Demo App Emulator**

### Other components

- **Test Operator**

## Connections

- Test Operator → Login Test: runs (evidence: `README.md`)
- Test Operator → Cart Test: runs (evidence: `README.md`)
- Test Operator → Checkout Test: runs (evidence: `README.md`)
- Login Test → Login Page: exercises login (evidence: `README.md`)
- Cart Test → Products Page: adds item (evidence: `README.md`)
- Cart Test → Cart Page: verifies cart (evidence: `README.md`)
- Checkout Test → Products Page: starts flow (evidence: `README.md`)
- Checkout Test → Checkout Page: exercises checkout (evidence: `README.md`)
- Products Page → Login Page: navigates to login (evidence: `README.md`)
- Products Page → Product Detail: opens product (evidence: `README.md`)
- Products Page → Cart Page: opens cart (evidence: `README.md`)
- Cart Page → Checkout Page: proceeds to checkout (evidence: `README.md`)
- Driver Lifecycle → Android Driver: creates and destroys (evidence: `README.md`)
- Driver Lifecycle → Shared Interactions: provides driver setup (evidence: `README.md`)
- Shared Interactions → Android Driver: wraps interactions (evidence: `README.md`)
- Android Driver → Appium Server: connects to (evidence: `README.md`)
- Appium Server → Demo App Emulator: drives on emulator (evidence: `README.md`)
