# ericksontest/sqa-automation-demo architecture

> Architecture diagram of the GitHub repository ericksontest/sqa-automation-demo, 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/ericksontest/sqa-automation-demo
- Repository: https://github.com/ericksontest/sqa-automation-demo

## Overview

This repository is a compact C# quality-automation framework for testing the external Restful Booker application. Its main journey is NUnit tests creating and checking bookings through the typed API client, then— in the flagship E2E scenario—verifying the same booking in the admin UI. Separate API and browser suites cover their respective risks; builders, models, settings, waits, and diagnostics support those stages. Relationships beyond the sampled framework code follow the README’s architecture description; test implementations and several framework helpers were not sampled.

Main entry points: [`src/SeniorQaAutomation.Framework/Api/BookingApiClient.cs`](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/Api/BookingApiClient.cs) (Booking API client), [`tests/SeniorQaAutomation.Tests/Ui`](https://github.com/ericksontest/sqa-automation-demo/tree/SQA/tests/SeniorQaAutomation.Tests/Ui) (UI checks), [`src/SeniorQaAutomation.Framework/PageObjects/AdminRoomsPage.cs`](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/PageObjects/AdminRoomsPage.cs) (Admin rooms), [`src/SeniorQaAutomation.Framework/PageObjects/PageObject.cs`](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/PageObjects/PageObject.cs) (Page object base)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_suites["Test suites"]
  node_api_tests["API checks<br/>[BookingApiTests.cs]"]
  node_ui_tests["UI checks<br/>[Ui]"]
  node_e2e_tests["Booking journey"]
end

subgraph group_api["API testing"]
  node_api_client["Booking API client"]
  node_api_response["API responses<br/>[ApiResponse.cs]"]
  node_api_exception["Client errors"]
  node_booking_model["Booking contract<br/>[Booking.cs]"]
  node_booking_dates["Booking dates<br/>[BookingDates.cs]"]
  node_booking_data["Booking builder<br/>[BookingBuilder.cs]"]
end

subgraph group_browser["Browser testing"]
  node_driver["Browser setup<br/>[DriverFactory.cs]"]
  node_waits["Explicit waits<br/>[WaitHelper.cs]"]
  node_page_base["Page object base<br/>[PageObject.cs]"]
  node_home_page["Home page<br/>[HomePage.cs]"]
  node_login_page["Admin login<br/>[AdminLoginPage.cs]"]
  node_rooms_page["Admin rooms<br/>[AdminRoomsPage.cs]"]
  node_room_details["Room details"]
  node_diagnostics["Browser diagnostics"]
end

subgraph group_framework["Shared framework"]
  node_settings["Test settings<br/>[TestSettings.cs]"]
end

node_sut{{"Restful Booker"}}
node_results["Test evidence"]

node_api_tests -->|"uses"| node_api_client
node_ui_tests -->|"uses"| node_home_page
node_ui_tests -->|"uses"| node_login_page
node_e2e_tests -->|"creates booking"| node_api_client
node_e2e_tests -->|"checks booking"| node_rooms_page
node_api_tests -->|"builds data"| node_booking_data
node_e2e_tests -->|"builds data"| node_booking_data
node_api_client -->|"sends HTTP"| node_sut
node_rooms_page -->|"drives browser"| node_sut
node_api_client -->|"reads settings"| node_settings
node_api_client -->|"returns response"| node_api_response
node_api_client -->|"serializes booking"| node_booking_model
node_api_response -->|"throws"| node_api_exception
node_booking_model -->|"contains dates"| node_booking_dates
node_driver -->|"reads settings"| node_settings
node_page_base -->|"creates waits"| node_waits
node_home_page -->|"extends"| node_page_base
node_login_page -->|"extends"| node_page_base
node_login_page -->|"opens after login"| node_rooms_page
node_rooms_page -->|"extends"| node_page_base
node_rooms_page -->|"opens room"| node_room_details
node_room_details -->|"extends"| node_page_base
node_ui_tests -.->|"configures browser"| node_driver
node_ui_tests -->|"captures failures"| node_diagnostics
node_api_tests -->|"reports TRX"| node_results
node_ui_tests -->|"attaches evidence"| node_results

click node_api_tests "https://github.com/ericksontest/sqa-automation-demo/blob/SQA/tests/SeniorQaAutomation.Tests/Api/BookingApiTests.cs"
click node_ui_tests "https://github.com/ericksontest/sqa-automation-demo/tree/SQA/tests/SeniorQaAutomation.Tests/Ui"
click node_e2e_tests "https://github.com/ericksontest/sqa-automation-demo/blob/SQA/tests/SeniorQaAutomation.Tests/E2E/ApiToUiBookingTests.cs"
click node_api_client "https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/Api/BookingApiClient.cs"
click node_api_response "https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/Api/ApiResponse.cs"
click node_api_exception "https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/Api/ApiClientException.cs"
click node_booking_model "https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/Models/Booking.cs"
click node_booking_dates "https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/Models/BookingDates.cs"
click node_booking_data "https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/TestData/BookingBuilder.cs"
click node_settings "https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/Configuration/TestSettings.cs"
click node_driver "https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/Ui/DriverFactory.cs"
click node_waits "https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/Ui/WaitHelper.cs"
click node_page_base "https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/PageObjects/PageObject.cs"
click node_home_page "https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/PageObjects/HomePage.cs"
click node_login_page "https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/PageObjects/AdminLoginPage.cs"
click node_rooms_page "https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/PageObjects/AdminRoomsPage.cs"
click node_room_details "https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/PageObjects/AdminRoomDetailsPage.cs"
click node_diagnostics "https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/Ui/BrowserDiagnostics.cs"

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_api_tests,node_ui_tests,node_e2e_tests toneBlue
class node_api_client,node_api_response,node_api_exception,node_booking_model,node_booking_dates,node_booking_data toneAmber
class node_driver,node_waits,node_page_base,node_home_page,node_login_page,node_rooms_page,node_room_details,node_diagnostics toneMint
class node_settings toneRose
class node_sut,node_results toneIndigo
```

## Components

### Test suites

- [API checks](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/tests/SeniorQaAutomation.Tests/Api/BookingApiTests.cs): `tests/SeniorQaAutomation.Tests/Api/BookingApiTests.cs`
- [UI checks](https://github.com/ericksontest/sqa-automation-demo/tree/SQA/tests/SeniorQaAutomation.Tests/Ui): `tests/SeniorQaAutomation.Tests/Ui`
- [Booking journey](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/tests/SeniorQaAutomation.Tests/E2E/ApiToUiBookingTests.cs): `tests/SeniorQaAutomation.Tests/E2E/ApiToUiBookingTests.cs`

### API testing

- [Booking API client](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/Api/BookingApiClient.cs): `src/SeniorQaAutomation.Framework/Api/BookingApiClient.cs`
- [API responses](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/Api/ApiResponse.cs): `src/SeniorQaAutomation.Framework/Api/ApiResponse.cs`
- [Client errors](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/Api/ApiClientException.cs): `src/SeniorQaAutomation.Framework/Api/ApiClientException.cs`
- [Booking contract](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/Models/Booking.cs): `src/SeniorQaAutomation.Framework/Models/Booking.cs`
- [Booking dates](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/Models/BookingDates.cs): `src/SeniorQaAutomation.Framework/Models/BookingDates.cs`
- [Booking builder](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/TestData/BookingBuilder.cs): `src/SeniorQaAutomation.Framework/TestData/BookingBuilder.cs`

### Browser testing

- [Browser setup](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/Ui/DriverFactory.cs): `src/SeniorQaAutomation.Framework/Ui/DriverFactory.cs`
- [Explicit waits](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/Ui/WaitHelper.cs): `src/SeniorQaAutomation.Framework/Ui/WaitHelper.cs`
- [Page object base](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/PageObjects/PageObject.cs): `src/SeniorQaAutomation.Framework/PageObjects/PageObject.cs`
- [Home page](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/PageObjects/HomePage.cs): `src/SeniorQaAutomation.Framework/PageObjects/HomePage.cs`
- [Admin login](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/PageObjects/AdminLoginPage.cs): `src/SeniorQaAutomation.Framework/PageObjects/AdminLoginPage.cs`
- [Admin rooms](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/PageObjects/AdminRoomsPage.cs): `src/SeniorQaAutomation.Framework/PageObjects/AdminRoomsPage.cs`
- [Room details](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/PageObjects/AdminRoomDetailsPage.cs): `src/SeniorQaAutomation.Framework/PageObjects/AdminRoomDetailsPage.cs`
- [Browser diagnostics](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/Ui/BrowserDiagnostics.cs): `src/SeniorQaAutomation.Framework/Ui/BrowserDiagnostics.cs`

### Shared framework

- [Test settings](https://github.com/ericksontest/sqa-automation-demo/blob/SQA/src/SeniorQaAutomation.Framework/Configuration/TestSettings.cs): `src/SeniorQaAutomation.Framework/Configuration/TestSettings.cs`

### Other components

- **Restful Booker**
- **Test evidence**

## Connections

- API checks → Booking API client: uses (evidence: `README.md`)
- UI checks → Home page: uses (evidence: `README.md`)
- UI checks → Admin login: uses (evidence: `README.md`)
- Booking journey → Booking API client: creates booking (evidence: `README.md`)
- Booking journey → Admin rooms: checks booking (evidence: `README.md`)
- API checks → Booking builder: builds data (evidence: `README.md`)
- Booking journey → Booking builder: builds data (evidence: `README.md`)
- Booking API client → Restful Booker: sends HTTP (evidence: `README.md`)
- Admin rooms → Restful Booker: drives browser (evidence: `README.md`)
- Booking API client → Test settings: reads settings (evidence: `src/SeniorQaAutomation.Framework/Api/BookingApiClient.cs`)
- Booking API client → API responses: returns response (evidence: `src/SeniorQaAutomation.Framework/Api/BookingApiClient.cs`)
- Booking API client → Booking contract: serializes booking (evidence: `src/SeniorQaAutomation.Framework/Api/BookingApiClient.cs`)
- API responses → Client errors: throws (evidence: `src/SeniorQaAutomation.Framework/Api/ApiResponse.cs`)
- Booking contract → Booking dates: contains dates (evidence: `src/SeniorQaAutomation.Framework/Models/Booking.cs`)
- Browser setup → Test settings: reads settings (evidence: `src/SeniorQaAutomation.Framework/Ui/DriverFactory.cs`)
- Page object base → Explicit waits: creates waits (evidence: `src/SeniorQaAutomation.Framework/PageObjects/PageObject.cs`)
- Home page → Page object base: extends (evidence: `src/SeniorQaAutomation.Framework/PageObjects/HomePage.cs`)
- Admin login → Page object base: extends (evidence: `src/SeniorQaAutomation.Framework/PageObjects/AdminLoginPage.cs`)
- Admin login → Admin rooms: opens after login (evidence: `src/SeniorQaAutomation.Framework/PageObjects/AdminLoginPage.cs`)
- Admin rooms → Page object base: extends (evidence: `src/SeniorQaAutomation.Framework/PageObjects/AdminRoomsPage.cs`)
- Admin rooms → Room details: opens room (evidence: `src/SeniorQaAutomation.Framework/PageObjects/AdminRoomsPage.cs`)
- Room details → Page object base: extends (evidence: `src/SeniorQaAutomation.Framework/PageObjects/AdminRoomDetailsPage.cs`)
- UI checks → Browser setup: configures browser
- UI checks → Browser diagnostics: captures failures (evidence: `README.md`)
- API checks → Test evidence: reports TRX (evidence: `README.md`)
- UI checks → Test evidence: attaches evidence (evidence: `README.md`)
