# joaoptoaldo/testes-automatizados-de-sistema architecture

> Architecture diagram of the GitHub repository joaoptoaldo/testes-automatizados-de-sistema, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/joaoptoaldo/testes-automatizados-de-sistema
- Repository: https://github.com/joaoptoaldo/testes-automatizados-de-sistema

## Overview

This academic project automates system tests for SauceDemo’s login using C#, Selenium, and NUnit. The documented workflow is to run the login scenarios, drive the login page in a browser, and check successful or rejected login outcomes. The README also describes screenshots and TRX reports as execution evidence. The test implementation was not excerpted, so links involving the test suite and evidence reflect README documentation rather than inspected calls.

Main entry points: [`Tests/LoginTests.cs`](https://github.com/joaoptoaldo/testes-automatizados-de-sistema/blob/main/Tests/LoginTests.cs) (Login scenarios), [`Pages/LoginPage.cs`](https://github.com/joaoptoaldo/testes-automatizados-de-sistema/blob/main/Pages/LoginPage.cs) (Login page object), [`Evidence/Screenshots`](https://github.com/joaoptoaldo/testes-automatizados-de-sistema/tree/main/Evidence/Screenshots) (Screenshots), [`Evidence/TestResults`](https://github.com/joaoptoaldo/testes-automatizados-de-sistema/tree/main/Evidence/TestResults) (TRX results)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_testing["Test execution"]
  node_login_tests["Login scenarios<br/>[LoginTests.cs]"]
end

subgraph group_application["Browser interaction"]
  node_login_page["Login page object<br/>[LoginPage.cs]"]
  node_saucedemo["SauceDemo"]
end

subgraph group_evidence["Run evidence"]
  node_screenshots["Screenshots"]
  node_test_results["TRX results"]
end

node_operator(("Test runner"))

node_operator -->|"runs"| node_login_tests
node_login_tests -.->|"drives login"| node_login_page
node_login_page -->|"navigates and submits"| node_saucedemo
node_login_tests -->|"captures evidence"| node_screenshots
node_login_tests -->|"records results"| node_test_results

click node_login_tests "https://github.com/joaoptoaldo/testes-automatizados-de-sistema/blob/main/Tests/LoginTests.cs"
click node_login_page "https://github.com/joaoptoaldo/testes-automatizados-de-sistema/blob/main/Pages/LoginPage.cs"
click node_screenshots "https://github.com/joaoptoaldo/testes-automatizados-de-sistema/tree/main/Evidence/Screenshots"
click node_test_results "https://github.com/joaoptoaldo/testes-automatizados-de-sistema/tree/main/Evidence/TestResults"

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_tests toneBlue
class node_login_page,node_saucedemo toneAmber
class node_screenshots,node_test_results toneMint
class node_operator toneIndigo
```

## Components

### Test execution

- [Login scenarios](https://github.com/joaoptoaldo/testes-automatizados-de-sistema/blob/main/Tests/LoginTests.cs): `Tests/LoginTests.cs`

### Browser interaction

- [Login page object](https://github.com/joaoptoaldo/testes-automatizados-de-sistema/blob/main/Pages/LoginPage.cs): `Pages/LoginPage.cs`
- **SauceDemo**

### Run evidence

- [Screenshots](https://github.com/joaoptoaldo/testes-automatizados-de-sistema/tree/main/Evidence/Screenshots): `Evidence/Screenshots`
- [TRX results](https://github.com/joaoptoaldo/testes-automatizados-de-sistema/tree/main/Evidence/TestResults): `Evidence/TestResults`

### Other components

- **Test runner**

## Connections

- Test runner → Login scenarios: runs (evidence: `README.md`)
- Login scenarios → Login page object: drives login
- Login page object → SauceDemo: navigates and submits (evidence: `Pages/LoginPage.cs`)
- Login scenarios → Screenshots: captures evidence (evidence: `README.md`)
- Login scenarios → TRX results: records results (evidence: `README.md`)
