# giofelix/proyecto-demo-hibrido-practica architecture

> Architecture diagram of the GitHub repository giofelix/proyecto-demo-hibrido-practica, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/giofelix/proyecto-demo-hibrido-practica
- Repository: https://github.com/giofelix/proyecto-demo-hibrido-practica

## Overview

This repository is a browser-and-API test automation project. Its main workflow runs Postman collections through Newman and UI checks through Playwright, then combines their results in Allure; the API runner also creates per-collection HTML reports. The collections and UI tests are the product, rather than an application being tested. The UI test implementation and Jenkins pipeline are not shown, so the graph only connects components where the configuration or runner documents the relationship.

Main entry points: [`scripts/run-api-tests.js`](https://github.com/giofelix/proyecto-demo-hibrido-practica/blob/main/scripts/run-api-tests.js) (Newman runner), [`playwright.config.js`](https://github.com/giofelix/proyecto-demo-hibrido-practica/blob/main/playwright.config.js) (Playwright config), [`package.json`](https://github.com/giofelix/proyecto-demo-hibrido-practica/blob/main/package.json) (Test commands), [`tests/api/Libros_favoritos.postman_collection.json`](https://github.com/giofelix/proyecto-demo-hibrido-practica/blob/main/tests/api/Libros_favoritos.postman_collection.json) (Favorite books suite)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["API testing"]
  node_api_runner["Newman runner<br/>[run-api-tests.js]"]
  node_books["Favorite books suite"]
  node_pets["Pet store suite"]
end

subgraph group_ui["UI testing"]
  node_playwright["Playwright config"]
  node_ui_tests["UI test suite<br/>[example.spec.js]"]
end

subgraph group_reporting["Test reporting"]
  node_allure[("Allure results")]
  node_api_html["API HTML reports"]
end

node_developer(("Test operator"))
node_commands["Test commands<br/>[package.json]"]

node_developer -->|"starts tests"| node_commands
node_commands -->|"runs API tests"| node_api_runner
node_commands -->|"runs UI tests"| node_playwright
node_api_runner -->|"runs collection"| node_books
node_api_runner -->|"runs collection"| node_pets
node_playwright -->|"discovers tests"| node_ui_tests
node_api_runner -->|"writes results"| node_allure
node_playwright -->|"writes results"| node_allure
node_api_runner -->|"generates reports"| node_api_html

click node_commands "https://github.com/giofelix/proyecto-demo-hibrido-practica/blob/main/package.json"
click node_api_runner "https://github.com/giofelix/proyecto-demo-hibrido-practica/blob/main/scripts/run-api-tests.js"
click node_books "https://github.com/giofelix/proyecto-demo-hibrido-practica/blob/main/tests/api/Libros_favoritos.postman_collection.json"
click node_pets "https://github.com/giofelix/proyecto-demo-hibrido-practica/blob/main/tests/api/Tienda_mascotas.postman_collection.json"
click node_playwright "https://github.com/giofelix/proyecto-demo-hibrido-practica/blob/main/playwright.config.js"
click node_ui_tests "https://github.com/giofelix/proyecto-demo-hibrido-practica/blob/main/tests/ui/example.spec.js"

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_runner,node_books,node_pets toneBlue
class node_playwright,node_ui_tests toneAmber
class node_allure,node_api_html toneMint
class node_developer toneIndigo
class node_commands toneTeal
```

## Components

### API testing

- [Newman runner](https://github.com/giofelix/proyecto-demo-hibrido-practica/blob/main/scripts/run-api-tests.js): `scripts/run-api-tests.js`
- [Favorite books suite](https://github.com/giofelix/proyecto-demo-hibrido-practica/blob/main/tests/api/Libros_favoritos.postman_collection.json): `tests/api/Libros_favoritos.postman_collection.json`
- [Pet store suite](https://github.com/giofelix/proyecto-demo-hibrido-practica/blob/main/tests/api/Tienda_mascotas.postman_collection.json): `tests/api/Tienda_mascotas.postman_collection.json`

### UI testing

- [Playwright config](https://github.com/giofelix/proyecto-demo-hibrido-practica/blob/main/playwright.config.js): `playwright.config.js`
- [UI test suite](https://github.com/giofelix/proyecto-demo-hibrido-practica/blob/main/tests/ui/example.spec.js): `tests/ui/example.spec.js`

### Test reporting

- **Allure results**
- **API HTML reports**

### Other components

- **Test operator**
- [Test commands](https://github.com/giofelix/proyecto-demo-hibrido-practica/blob/main/package.json): `package.json`

## Connections

- Test operator → Test commands: starts tests (evidence: `package.json`)
- Test commands → Newman runner: runs API tests (evidence: `package.json`)
- Test commands → Playwright config: runs UI tests (evidence: `package.json`)
- Newman runner → Favorite books suite: runs collection (evidence: `scripts/run-api-tests.js`)
- Newman runner → Pet store suite: runs collection (evidence: `scripts/run-api-tests.js`)
- Playwright config → UI test suite: discovers tests (evidence: `playwright.config.js`)
- Newman runner → Allure results: writes results (evidence: `scripts/run-api-tests.js`)
- Playwright config → Allure results: writes results (evidence: `playwright.config.js`)
- Newman runner → API HTML reports: generates reports (evidence: `scripts/run-api-tests.js`)
