# amitsinh49/myproject architecture

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

- Interactive diagram: https://gitdiagram.com/amitsinh49/myproject
- Repository: https://github.com/amitsinh49/myproject

## Overview

This repository is a small Selenium/TestNG browser-automation project. Its main workflow launches Firefox, navigates to Amazon Canada, and exercises an account sign-up flow while saving screenshots. The only substantive runtime source shown is one class, so its setup, navigation, and interaction stages share that source path. Generated TestNG reports and report scripts are excluded. The source excerpt does not show the report artifacts being produced at runtime.

Main entry points: [`src/amazon1/TestNgAmazon.java`](https://github.com/amitsinh49/myproject/blob/master/src/amazon1/TestNgAmazon.java) (Site navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_automation["Browser automation"]
  node_setup["Browser setup<br/>[TestNgAmazon.java]"]
  node_navigation["Site navigation<br/>[TestNgAmazon.java]"]
  node_signup["Account signup<br/>[TestNgAmazon.java]"]
end

node_testng(("TestNG runner"))
node_firefox["Firefox browser"]
node_amazon["Amazon Canada"]
node_screenshots[("Screenshot files")]

node_testng -->|"runs setup"| node_setup
node_testng -->|"runs before"| node_navigation
node_testng -->|"runs test"| node_signup
node_setup -->|"creates driver"| node_firefox
node_navigation -->|"navigates"| node_firefox
node_navigation -->|"opens site"| node_amazon
node_navigation -->|"writes captures"| node_screenshots
node_signup -->|"interacts with"| node_firefox
node_signup -->|"submits signup"| node_amazon
node_signup -->|"writes captures"| node_screenshots

click node_setup "https://github.com/amitsinh49/myproject/blob/master/src/amazon1/TestNgAmazon.java"
click node_navigation "https://github.com/amitsinh49/myproject/blob/master/src/amazon1/TestNgAmazon.java"
click node_signup "https://github.com/amitsinh49/myproject/blob/master/src/amazon1/TestNgAmazon.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_setup,node_navigation,node_signup,node_firefox toneBlue
class node_testng,node_amazon toneIndigo
class node_screenshots toneAmber
```

## Components

### Browser automation

- [Browser setup](https://github.com/amitsinh49/myproject/blob/master/src/amazon1/TestNgAmazon.java): `src/amazon1/TestNgAmazon.java`
- [Site navigation](https://github.com/amitsinh49/myproject/blob/master/src/amazon1/TestNgAmazon.java): `src/amazon1/TestNgAmazon.java`
- [Account signup](https://github.com/amitsinh49/myproject/blob/master/src/amazon1/TestNgAmazon.java): `src/amazon1/TestNgAmazon.java`

### Other components

- **TestNG runner**
- **Firefox browser**
- **Amazon Canada**
- **Screenshot files**

## Connections

- TestNG runner → Browser setup: runs setup (evidence: `src/amazon1/TestNgAmazon.java`)
- TestNG runner → Site navigation: runs before (evidence: `src/amazon1/TestNgAmazon.java`)
- TestNG runner → Account signup: runs test (evidence: `src/amazon1/TestNgAmazon.java`)
- Browser setup → Firefox browser: creates driver (evidence: `src/amazon1/TestNgAmazon.java`)
- Site navigation → Firefox browser: navigates (evidence: `src/amazon1/TestNgAmazon.java`)
- Site navigation → Amazon Canada: opens site (evidence: `src/amazon1/TestNgAmazon.java`)
- Site navigation → Screenshot files: writes captures (evidence: `src/amazon1/TestNgAmazon.java`)
- Account signup → Firefox browser: interacts with (evidence: `src/amazon1/TestNgAmazon.java`)
- Account signup → Amazon Canada: submits signup (evidence: `src/amazon1/TestNgAmazon.java`)
- Account signup → Screenshot files: writes captures (evidence: `src/amazon1/TestNgAmazon.java`)
