# marcosgabrielms/trabalho-testesfuncionais-esiii architecture

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

- Interactive diagram: https://gitdiagram.com/marcosgabrielms/trabalho-testesfuncionais-esiii
- Repository: https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii

## Overview

This repository is a functional-testing coursework project: its main workflow runs browser tests against demonstration systems and produces execution reports. The README documents the A/B challenge suites, resolved examples, and prior-project tests; sampled code shows the prior project’s web, stock, and reservation layers. Several test and system modules are represented by their enclosing directories because their source was not excerpted; the graph omits unverified implementation links.

Main entry points: [`rodar_trabalho2.py`](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/rodar_trabalho2.py) (Run suites), [`projeto-anterior/sistema/web.py`](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/projeto-anterior/sistema/web.py) (Web adapter), [`conftest.py`](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/conftest.py) (Browser fixtures), [`pacote-A/desafio`](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/tree/main/pacote-A/desafio) (A enrollment tests)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_suites["Functional test suites"]
  node_run["Run suites<br/>[rodar_trabalho2.py]"]
  node_shared["Browser fixtures<br/>[conftest.py]"]
  node_aexample["A order example"]
  node_amatr["A enrollment tests"]
  node_bexample["B login example"]
  node_binscr["B enrollment tests"]
  node_priorcases["Prior project tests"]
  node_outputs["Execution reports"]
  node_apihelper["API state helper<br/>[apoio.py]"]
end

subgraph group_demo["Demonstration systems"]
  node_systema["A demo application<br/>[app.py]"]
  node_systemb["B demo application<br/>[app.py]"]
end

subgraph group_prior["Prior project"]
  node_priorweb["Web adapter<br/>[web.py]"]
  node_stock["Stock service<br/>[estoque_service.py]"]
  node_productrepo["Product repository"]
  node_product["Product model<br/>[produto.py]"]
  node_reservservice["Reservation service<br/>[service.py]"]
  node_reservrepo["Reservation repository<br/>[repository.py]"]
  node_sqlite[("SQLite store")]
  node_jsonstore[("JSON file store")]
end

node_tester(("Test operator"))

node_tester -->|"starts"| node_run
node_run -->|"runs"| node_aexample
node_run -->|"runs"| node_amatr
node_run -->|"runs"| node_bexample
node_run -->|"runs"| node_binscr
node_run -->|"runs"| node_priorcases
node_run -->|"writes reports"| node_outputs
node_aexample -.->|"uses fixtures"| node_shared
node_amatr -.->|"uses fixtures"| node_shared
node_bexample -.->|"uses fixtures"| node_shared
node_binscr -.->|"uses fixtures"| node_shared
node_priorcases -.->|"uses fixtures"| node_shared
node_aexample -->|"tests"| node_systema
node_amatr -->|"tests"| node_systema
node_bexample -->|"tests"| node_systemb
node_binscr -->|"tests"| node_systemb
node_priorcases -->|"tests"| node_priorweb
node_amatr -.->|"prepares state"| node_apihelper
node_binscr -.->|"prepares state"| node_apihelper
node_priorcases -.->|"prepares state"| node_apihelper
node_priorweb -->|"calls"| node_stock
node_priorweb -->|"configures"| node_productrepo
node_priorweb -->|"calls"| node_reservservice
node_priorweb -->|"configures"| node_reservrepo
node_stock -.->|"reads and updates"| node_productrepo
node_productrepo -->|"creates"| node_product
node_reservservice -->|"reads and saves"| node_reservrepo
node_productrepo -->|"executes SQL"| node_sqlite
node_reservrepo -->|"reads and writes"| node_jsonstore

click node_run "https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/rodar_trabalho2.py"
click node_shared "https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/conftest.py"
click node_aexample "https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/tree/main/pacote-A/exemplo"
click node_amatr "https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/tree/main/pacote-A/desafio"
click node_bexample "https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/tree/main/pacote-B/exemplo"
click node_binscr "https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/tree/main/pacote-B/desafio"
click node_priorcases "https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/tree/main/projeto-anterior"
click node_outputs "https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/tree/main/resultados"
click node_apihelper "https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/apoio.py"
click node_systema "https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/sistemas/pacote-A/app.py"
click node_systemb "https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/sistemas/pacote-B/app.py"
click node_priorweb "https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/projeto-anterior/sistema/web.py"
click node_stock "https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/projeto-anterior/sistema/estoque_service.py"
click node_productrepo "https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/projeto-anterior/sistema/produto_repository.py"
click node_product "https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/projeto-anterior/sistema/produto.py"
click node_reservservice "https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/projeto-anterior/sistema/reserva_laboratorios/service.py"
click node_reservrepo "https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/projeto-anterior/sistema/reserva_laboratorios/repository.py"

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_run,node_shared,node_aexample,node_amatr,node_bexample,node_binscr,node_priorcases,node_outputs,node_apihelper toneBlue
class node_systema,node_systemb toneAmber
class node_priorweb,node_stock,node_productrepo,node_product,node_reservservice,node_reservrepo,node_sqlite,node_jsonstore toneMint
class node_tester toneIndigo
```

## Components

### Functional test suites

- [Run suites](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/rodar_trabalho2.py): `rodar_trabalho2.py`
- [Browser fixtures](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/conftest.py): `conftest.py`
- [A order example](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/tree/main/pacote-A/exemplo): `pacote-A/exemplo`
- [A enrollment tests](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/tree/main/pacote-A/desafio): `pacote-A/desafio`
- [B login example](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/tree/main/pacote-B/exemplo): `pacote-B/exemplo`
- [B enrollment tests](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/tree/main/pacote-B/desafio): `pacote-B/desafio`
- [Prior project tests](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/tree/main/projeto-anterior): `projeto-anterior`
- [Execution reports](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/tree/main/resultados): `resultados`
- [API state helper](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/apoio.py): `apoio.py`

### Demonstration systems

- [A demo application](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/sistemas/pacote-A/app.py): `sistemas/pacote-A/app.py`
- [B demo application](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/sistemas/pacote-B/app.py): `sistemas/pacote-B/app.py`

### Prior project

- [Web adapter](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/projeto-anterior/sistema/web.py): `projeto-anterior/sistema/web.py`
- [Stock service](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/projeto-anterior/sistema/estoque_service.py): `projeto-anterior/sistema/estoque_service.py`
- [Product repository](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/projeto-anterior/sistema/produto_repository.py): `projeto-anterior/sistema/produto_repository.py`
- [Product model](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/projeto-anterior/sistema/produto.py): `projeto-anterior/sistema/produto.py`
- [Reservation service](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/projeto-anterior/sistema/reserva_laboratorios/service.py): `projeto-anterior/sistema/reserva_laboratorios/service.py`
- [Reservation repository](https://github.com/marcosgabrielms/trabalho-testesfuncionais-esiii/blob/main/projeto-anterior/sistema/reserva_laboratorios/repository.py): `projeto-anterior/sistema/reserva_laboratorios/repository.py`
- **SQLite store**
- **JSON file store**

### Other components

- **Test operator**

## Connections

- Test operator → Run suites: starts (evidence: `README.md`)
- Run suites → A order example: runs (evidence: `README.md`)
- Run suites → A enrollment tests: runs (evidence: `README.md`)
- Run suites → B login example: runs (evidence: `README.md`)
- Run suites → B enrollment tests: runs (evidence: `README.md`)
- Run suites → Prior project tests: runs (evidence: `README.md`)
- Run suites → Execution reports: writes reports (evidence: `README.md`)
- A order example → Browser fixtures: uses fixtures
- A enrollment tests → Browser fixtures: uses fixtures
- B login example → Browser fixtures: uses fixtures
- B enrollment tests → Browser fixtures: uses fixtures
- Prior project tests → Browser fixtures: uses fixtures
- A order example → A demo application: tests (evidence: `README.md`)
- A enrollment tests → A demo application: tests (evidence: `README.md`)
- B login example → B demo application: tests (evidence: `README.md`)
- B enrollment tests → B demo application: tests (evidence: `README.md`)
- Prior project tests → Web adapter: tests (evidence: `README.md`)
- A enrollment tests → API state helper: prepares state (evidence: `pacote-A/desafio/conftest.py`)
- B enrollment tests → API state helper: prepares state (evidence: `pacote-B/desafio/conftest.py`)
- Prior project tests → API state helper: prepares state (evidence: `projeto-anterior/conftest.py`)
- Web adapter → Stock service: calls (evidence: `projeto-anterior/sistema/web.py`)
- Web adapter → Product repository: configures (evidence: `projeto-anterior/sistema/web.py`)
- Web adapter → Reservation service: calls (evidence: `projeto-anterior/sistema/web.py`)
- Web adapter → Reservation repository: configures (evidence: `projeto-anterior/sistema/web.py`)
- Stock service → Product repository: reads and updates
- Product repository → Product model: creates (evidence: `projeto-anterior/sistema/produto_repository.py`)
- Reservation service → Reservation repository: reads and saves (evidence: `projeto-anterior/sistema/reserva_laboratorios/service.py`)
- Product repository → SQLite store: executes SQL (evidence: `projeto-anterior/sistema/produto_repository.py`)
- Reservation repository → JSON file store: reads and writes (evidence: `projeto-anterior/sistema/reserva_laboratorios/repository.py`)
