# siddhantraut/selenium_appium_automtion_framework_java architecture

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

- Interactive diagram: https://gitdiagram.com/siddhantraut/selenium_appium_automtion_framework_java
- Repository: https://github.com/siddhantraut/selenium_appium_automtion_framework_java

## Overview

This is a Java web and mobile test-automation framework. The principal workflow is a TestNG test extending BaseTest, which manages a browser or mobile driver for the test and closes it afterward; configuration selects the target and platform capabilities. The README documents browser, Android, and iOS support, plus logging and automatic browser-driver management. Relationships below are based on README documentation only: source excerpts were not provided, so implementation-level calls between the framework classes remain unverified.

Main entry points: [`src/main/java/org/example/driver/DriverFactory.java`](https://github.com/siddhantraut/selenium_appium_automtion_framework_java/blob/main/src/main/java/org/example/driver/DriverFactory.java) (Driver factory), [`src/test/java/org/example/base/BaseTest.java`](https://github.com/siddhantraut/selenium_appium_automtion_framework_java/blob/main/src/test/java/org/example/base/BaseTest.java) (Base test lifecycle), [`src/test/java/org/example/tests/SampleTest.java`](https://github.com/siddhantraut/selenium_appium_automtion_framework_java/blob/main/src/test/java/org/example/tests/SampleTest.java) (Sample test), [`src/main/java/org/example/utils/ConfigurationManager.java`](https://github.com/siddhantraut/selenium_appium_automtion_framework_java/blob/main/src/main/java/org/example/utils/ConfigurationManager.java) (Configuration manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_tests["Test execution"]
  node_sample_test["Sample test<br/>[SampleTest.java]"]
  node_base_test["Base test lifecycle<br/>[BaseTest.java]"]
  node_testng["TestNG engine"]
end

subgraph group_runtime["Driver management"]
  node_driver_factory["Driver factory<br/>[DriverFactory.java]"]
end

subgraph group_setup["Configuration and capabilities"]
  node_capability_factory["Capability factory"]
  node_configuration_manager["Configuration manager"]
  node_properties["Framework properties<br/>[config.properties]"]
end

subgraph group_targets["Targets and integrations"]
  node_browser["Web browsers"]
  node_mobile_devices["Mobile devices"]
  node_appium["Appium server"]
  node_webdriver_manager["WebDriverManager"]
  node_logging_config["Log4j configuration<br/>[log4j.properties]"]
end

node_test_author(("Test author"))

node_test_author -->|"writes tests"| node_sample_test
node_sample_test -->|"extends"| node_base_test
node_testng -->|"runs tests"| node_sample_test
node_base_test -.->|"manages driver"| node_driver_factory
node_driver_factory -.->|"selects from config"| node_configuration_manager
node_configuration_manager -->|"loads properties"| node_properties
node_driver_factory -.->|"uses capabilities"| node_capability_factory
node_driver_factory -->|"creates web driver"| node_browser
node_driver_factory -->|"creates mobile driver"| node_mobile_devices
node_driver_factory -->|"connects via"| node_appium
node_driver_factory -->|"uses for binaries"| node_webdriver_manager
node_base_test -.->|"configures logging"| node_logging_config

click node_sample_test "https://github.com/siddhantraut/selenium_appium_automtion_framework_java/blob/main/src/test/java/org/example/tests/SampleTest.java"
click node_base_test "https://github.com/siddhantraut/selenium_appium_automtion_framework_java/blob/main/src/test/java/org/example/base/BaseTest.java"
click node_driver_factory "https://github.com/siddhantraut/selenium_appium_automtion_framework_java/blob/main/src/main/java/org/example/driver/DriverFactory.java"
click node_capability_factory "https://github.com/siddhantraut/selenium_appium_automtion_framework_java/blob/main/src/main/java/org/example/capabilities/CapabilityFactory.java"
click node_configuration_manager "https://github.com/siddhantraut/selenium_appium_automtion_framework_java/blob/main/src/main/java/org/example/utils/ConfigurationManager.java"
click node_properties "https://github.com/siddhantraut/selenium_appium_automtion_framework_java/blob/main/src/main/resources/config.properties"
click node_logging_config "https://github.com/siddhantraut/selenium_appium_automtion_framework_java/blob/main/src/main/resources/log4j.properties"

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_sample_test,node_base_test,node_testng toneBlue
class node_driver_factory toneAmber
class node_capability_factory,node_configuration_manager,node_properties toneMint
class node_browser,node_mobile_devices,node_appium,node_webdriver_manager,node_logging_config toneRose
class node_test_author toneIndigo
```

## Components

### Test execution

- [Sample test](https://github.com/siddhantraut/selenium_appium_automtion_framework_java/blob/main/src/test/java/org/example/tests/SampleTest.java): `src/test/java/org/example/tests/SampleTest.java`
- [Base test lifecycle](https://github.com/siddhantraut/selenium_appium_automtion_framework_java/blob/main/src/test/java/org/example/base/BaseTest.java): `src/test/java/org/example/base/BaseTest.java`
- **TestNG engine**

### Driver management

- [Driver factory](https://github.com/siddhantraut/selenium_appium_automtion_framework_java/blob/main/src/main/java/org/example/driver/DriverFactory.java): `src/main/java/org/example/driver/DriverFactory.java`

### Configuration and capabilities

- [Capability factory](https://github.com/siddhantraut/selenium_appium_automtion_framework_java/blob/main/src/main/java/org/example/capabilities/CapabilityFactory.java): `src/main/java/org/example/capabilities/CapabilityFactory.java`
- [Configuration manager](https://github.com/siddhantraut/selenium_appium_automtion_framework_java/blob/main/src/main/java/org/example/utils/ConfigurationManager.java): `src/main/java/org/example/utils/ConfigurationManager.java`
- [Framework properties](https://github.com/siddhantraut/selenium_appium_automtion_framework_java/blob/main/src/main/resources/config.properties): `src/main/resources/config.properties`

### Targets and integrations

- **Web browsers**
- **Mobile devices**
- **Appium server**
- **WebDriverManager**
- [Log4j configuration](https://github.com/siddhantraut/selenium_appium_automtion_framework_java/blob/main/src/main/resources/log4j.properties): `src/main/resources/log4j.properties`

### Other components

- **Test author**

## Connections

- Test author → Sample test: writes tests (evidence: `README.md`)
- Sample test → Base test lifecycle: extends (evidence: `README.md`)
- TestNG engine → Sample test: runs tests (evidence: `README.md`)
- Base test lifecycle → Driver factory: manages driver
- Driver factory → Configuration manager: selects from config
- Configuration manager → Framework properties: loads properties (evidence: `README.md`)
- Driver factory → Capability factory: uses capabilities
- Driver factory → Web browsers: creates web driver (evidence: `README.md`)
- Driver factory → Mobile devices: creates mobile driver (evidence: `README.md`)
- Driver factory → Appium server: connects via (evidence: `README.md`)
- Driver factory → WebDriverManager: uses for binaries (evidence: `README.md`)
- Base test lifecycle → Log4j configuration: configures logging
