# pavlinbg/ozonetests architecture

> Architecture diagram of the GitHub repository pavlinbg/ozonetests, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pavlinbg/ozonetests
- Repository: https://github.com/pavlinbg/ozonetests

## Overview

##### Main Components Identification
The project is a test automation framework with three distinct testing solutions. Here's how to represent the main architectural components:

A. Create three main container blocks representing the test solutions:
- Web Testing Suite
- API Testing Suite
- Mobile Testing Suite

##### Detailed Component Breakdown

For the Web Testing Suite (Most Complex):
- Test Layer (Tests folder)
- Page Objects Layer (Pages folder)
- Actions Layer (Actions folder)
- Base Layer (Base folder)
- Objects Layer (Objects folder)
- Properties Layer (Properties folder)

For the API Testing Suite:
- A simpler structure with:
- Test Cases
- API Endpoints
- Assertion Components

For the Mobile Testing Suite:
- Represent:
- Test Cases
- Mobile Screen Objects
- Mobile Actions

##### Technology Stack Integration

- NUnit (Testing Framework)
- Selenium WebDriver (Web Testing)
- RestSharp (API Testing)
- Appium (Mobile Testing)

##### Key Relationships to Highlight

- How Page Objects are used by Test classes
- Relationship between Actions and Pages
- Demonstrate how Base classes are inherited
- Property file usage across components
- Shared utilities and common patterns

##### Additional Elements

- Configuration management
- Test execution flow
- Reporting mechanism
- External dependencies (browsers, mobile devices, API endpoints)

##### Specific Implementation Details

For Web Testing:
- Hierarchy: BasePage → Specific Pages → Tests
- How OrderActions interact with Pages
- Relationship between User/Book objects and tests

For API Testing:
- Connection between APITests and assertion components
- API endpoint mapping

For Mobile Testing:
- Relationship between MobileAppScreen and test classes
- Device interaction flow

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Legend
        L1[Component]
        L2([External System])
        L3[(Database)]
        L4>Action]
        style L1 fill:#f0f0f0
        L5[Web Component]:::web
        L6[API Component]:::api
        L7[Mobile Component]:::mobile
        L8[Shared Component]:::shared
    end

    subgraph "Web Testing Suite"
        Tests["Test Layer"]:::web
        click Tests "https://github.com/PavlinBG/OzoneTests/tree/master/WebTests/Tests"
        
        Pages["Page Objects Layer"]:::web
        click Pages "https://github.com/PavlinBG/OzoneTests/tree/master/WebTests/Pages"
        
        Actions["Actions Layer"]:::web
        click Actions "https://github.com/PavlinBG/OzoneTests/tree/master/WebTests/Actions"
        
        Base["Base Layer"]:::web
        click Base "https://github.com/PavlinBG/OzoneTests/tree/master/WebTests/Base"
        
        Objects["Objects Layer"]:::web
        click Objects "https://github.com/PavlinBG/OzoneTests/tree/master/WebTests/Objects"
        
        Properties["Properties Layer"]:::web
        click Properties "https://github.com/PavlinBG/OzoneTests/tree/master/WebTests/Properties"
        
        BasePage["Base Page"]:::web
        click BasePage "https://github.com/PavlinBG/OzoneTests/blob/master/WebTests/Pages/BasePage.cs"
        
        OrderActions["Order Actions"]:::web
        click OrderActions "https://github.com/PavlinBG/OzoneTests/blob/master/WebTests/Actions/OrderActions.cs"
        
        HomePage["Home Page"]:::web
        click HomePage "https://github.com/PavlinBG/OzoneTests/blob/master/WebTests/Pages/HomePage.cs"
        
        LoginPage["Login Page"]:::web
        click LoginPage "https://github.com/PavlinBG/OzoneTests/blob/master/WebTests/Pages/LoginPage.cs"
        
        ProductPage["Product Page"]:::web
        click ProductPage "https://github.com/PavlinBG/OzoneTests/blob/master/WebTests/Pages/ProductPage.cs"
        
        ShoppingCart["Shopping Cart"]:::web
        click ShoppingCart "https://github.com/PavlinBG/OzoneTests/blob/master/WebTests/Pages/ShoppingCartPage.cs"
        
        CartReview["Shopping Cart Review"]:::web
        click CartReview "https://github.com/PavlinBG/OzoneTests/blob/master/WebTests/Pages/ShoppingCartReviewPage.cs"
        
        Categories["Categories Tab"]:::web
        click Categories "https://github.com/PavlinBG/OzoneTests/blob/master/WebTests/Pages/CategoriesTab.cs"
        
        Footer["Footer Tab"]:::web
        click Footer "https://github.com/PavlinBG/OzoneTests/blob/master/WebTests/Pages/FooterTab.cs"
    end

    subgraph "API Testing Suite"
        APITests["Test Cases"]:::api
        click APITests "https://github.com/PavlinBG/OzoneTests/blob/master/APITests/APITests.cs"
        
        AssertUrls["Assertion Component"]:::api
        click AssertUrls "https://github.com/PavlinBG/OzoneTests/blob/master/APITests/AssertPageUrls.cs"
        
        Endpoints["API Endpoints"]:::api
    end

    subgraph "Mobile Testing Suite"
        MobileTests["Test Cases"]:::mobile
        click MobileTests "https://github.com/PavlinBG/OzoneTests/blob/master/MobileTests/Tests/MobileTests.cs"
        
        MobileScreen["Mobile Screen Objects"]:::mobile
        click MobileScreen "https://github.com/PavlinBG/OzoneTests/blob/master/MobileTests/Objects/MobileAppScreen.cs"
        
        MobileActions["Mobile Actions"]:::mobile
    end

    subgraph "Domain Objects"
        User["User Object"]:::shared
        click User "https://github.com/PavlinBG/OzoneTests/blob/master/WebTests/Objects/User.cs"
        
        Book["Book Object"]:::shared
        click Book "https://github.com/PavlinBG/OzoneTests/blob/master/WebTests/Objects/Book.cs"
        
        ProductEnums["Product Enums"]:::shared
        click ProductEnums "https://github.com/PavlinBG/OzoneTests/blob/master/WebTests/Enums/Products.cs"
    end

    subgraph "Configuration"
        PropLoader["Properties Loader"]:::shared
        click PropLoader "https://github.com/PavlinBG/OzoneTests/blob/master/WebTests/Base/LoadProperties.cs"
        
        UserProps["User Properties"]:::shared
        click UserProps "https://github.com/PavlinBG/OzoneTests/blob/master/WebTests/Properties/user.properties"
    end

    %% Relationships
    BasePage --> Pages
    Pages --> Actions
    Actions --> Tests
    Properties --> PropLoader
    PropLoader --> Base
    Objects --> Tests
    User --> Tests
    Book --> Tests
    APITests --> AssertUrls
    MobileTests --> MobileScreen
    MobileScreen --> MobileActions

    %% Styling
    classDef web fill:#dae8fc,stroke:#6c8ebf
    classDef api fill:#d5e8d4,stroke:#82b366
    classDef mobile fill:#ffe6cc,stroke:#d79b00
    classDef shared fill:#f5f5f5,stroke:#666666
```
