# vijay2181/python-robot-framework architecture

> Architecture diagram of the GitHub repository vijay2181/python-robot-framework, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-06-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vijay2181/python-robot-framework
- Repository: https://github.com/vijay2181/python-robot-framework

## Overview

##### Project type and purpose
- This is a **keyword-driven test automation** project built with **Robot Framework** and a small **Python library**.
- Purpose: Unit-test the methods of a `CalculatorLibrary` Python class, generate logs/reports, and fit into CI/CD pipelines.

##### File structure
- **test/**
– CalculatorLibrary.py  (Custom Python class exposing methods as Robot keywords)
– calculator_test.robot (Robot Framework test suite invoking those keywords)
– output.xml, log.html, report.html (Execution artifacts)
- No other code; all logic resides in the library and the test suite.

##### README for additional insights
- Describes how Robot Framework:
– Scans the `.robot` file for tests
– Imports `CalculatorLibrary.py` and turns each public method into a keyword
– Executes tests step by step, comparing results with built-in assertions
- Shows commands to run tests and view artifacts
- Mentions integration points for CI/CD (Jenkins, GitHub Actions, etc.)

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph "CI/CD Pipeline"
        CI["CI/CD Service"]:::cicd
    end

    subgraph "Test Automation Domain"
        Runner["Robot Framework Runner"]:::runner
        Suite["Test Suite: calculator_test.robot"]:::testSuite
        Library["CalculatorLibrary.py"]:::library
        Outputs["Artifacts: output.xml, log.html, report.html"]:::outputs
    end

    CI -->|triggers tests| Runner
    Runner -->|reads test suite| Suite
    Suite -->|invokes keywords| Library
    Library -->|returns results| Runner
    Runner -->|generates artifacts| Outputs
    Outputs -->|publishes artifacts| CI

    classDef cicd   fill:#E0BBE4,stroke:#000,stroke-width:1px;
    classDef runner fill:#D3D3D3,stroke:#000,stroke-width:1px,rx:5,ry:5;
    classDef testSuite fill:#ADD8E6,stroke:#000,stroke-width:1px;
    classDef library fill:#98FB98,stroke:#000,stroke-width:1px;
    classDef outputs fill:#FFA500,stroke:#000,stroke-width:1px;
```
