# 1997-bit/formulacion-pruebas architecture

> Architecture diagram of the GitHub repository 1997-bit/formulacion-pruebas, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/1997-bit/formulacion-pruebas
- Repository: https://github.com/1997-bit/formulacion-pruebas

## Overview

Formulacion-pruebas is a PHP web application for managing software-test formulation and execution: users authenticate, organize work by project and requirement, define test cases and techniques, record outcomes, incidents and evidence, and review reports. The sampled request path shows the front controller dispatching to the cases controller, which delegates case operations to a service that coordinates persistence and history. The README documents additional capabilities whose individual wiring was not sampled; those are represented without guessed connections.

Main entry points: [`services/CasoServicio.php`](https://github.com/1997-bit/formulacion-pruebas/blob/main/services/CasoServicio.php) (Case workflow), [`controllers/CasosControlador.php`](https://github.com/1997-bit/formulacion-pruebas/blob/main/controllers/CasosControlador.php) (Case controller), [`public/index.php`](https://github.com/1997-bit/formulacion-pruebas/blob/main/public/index.php) (Web entry point), [`models/FilasModelo.php`](https://github.com/1997-bit/formulacion-pruebas/blob/main/models/FilasModelo.php) (Form row persistence)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_request["Request handling"]
  node_entry["Web entry point<br/>[index.php]"]
  node_case_controller["Case controller"]
  node_case_views["Case forms and results<br/>[formulario.php]"]
  node_access["Authentication<br/>[AccesoServicio.php]"]
end

subgraph group_planning["Test planning"]
  node_projects["Projects"]
  node_requirements["Requirements"]
  node_test_design["Black- and white-box techniques"]
  node_decision_tables["Decision tables"]
  node_boundary_values["Boundary values"]
  node_coverage["Coverage"]
  node_test_plans["Test plans<br/>[PlanServicio.php]"]
end

subgraph group_execution["Execution records"]
  node_case_service["Case workflow<br/>[CasoServicio.php]"]
  node_case_model[("Case persistence<br/>[CasoModelo.php]")]
  node_row_model[("Form row persistence<br/>[FilasModelo.php]")]
  node_incidents["Incident tracking"]
  node_evidence[("Evidence and uploads")]
  node_history["Change history<br/>[Historial.php]"]
end

subgraph group_analysis["Review and reporting"]
  node_reports["Reports and closure"]
  node_self_assessment["Self-assessment"]
end

subgraph group_shared["Shared services"]
  node_database[("Database connection<br/>[Conexion.php]")]
  node_views["View rendering<br/>[Vista.php]"]
  node_csrf["CSRF protection<br/>[Csrf.php]"]
  node_catalogs["Domain catalogs<br/>[Catalogo.php]"]
end

node_tester(("Admin or tester"))

node_tester -->|"submits requests"| node_entry
node_entry -->|"checks session"| node_access
node_entry -->|"dispatches action"| node_case_controller
node_case_controller -->|"calls case operations"| node_case_service
node_case_controller -.->|"renders form"| node_case_views
node_case_service -->|"reads and updates cases"| node_case_model
node_case_service -->|"checks row fingerprints"| node_row_model
node_case_service -->|"records changes"| node_history
node_row_model -->|"executes queries"| node_database
node_case_service -->|"loads requirements"| node_requirements
node_case_service -->|"loads evidence records"| node_evidence
node_case_service -->|"checks open incidents"| node_incidents
node_case_controller -->|"renders pages"| node_views
node_case_controller -.->|"uses request tokens"| node_csrf
node_case_service -->|"validates catalog values"| node_catalogs

click node_entry "https://github.com/1997-bit/formulacion-pruebas/blob/main/public/index.php"
click node_case_controller "https://github.com/1997-bit/formulacion-pruebas/blob/main/controllers/CasosControlador.php"
click node_case_views "https://github.com/1997-bit/formulacion-pruebas/blob/main/views/casos/formulario.php"
click node_access "https://github.com/1997-bit/formulacion-pruebas/blob/main/services/AccesoServicio.php"
click node_projects "https://github.com/1997-bit/formulacion-pruebas/blob/main/controllers/ProyectosControlador.php"
click node_requirements "https://github.com/1997-bit/formulacion-pruebas/blob/main/services/RequerimientoServicio.php"
click node_test_design "https://github.com/1997-bit/formulacion-pruebas/blob/main/services/ClasesEquivalenciaServicio.php"
click node_decision_tables "https://github.com/1997-bit/formulacion-pruebas/blob/main/services/TablaDecisionServicio.php"
click node_boundary_values "https://github.com/1997-bit/formulacion-pruebas/blob/main/services/ValorLimiteServicio.php"
click node_coverage "https://github.com/1997-bit/formulacion-pruebas/blob/main/services/CoberturaServicio.php"
click node_test_plans "https://github.com/1997-bit/formulacion-pruebas/blob/main/services/PlanServicio.php"
click node_case_service "https://github.com/1997-bit/formulacion-pruebas/blob/main/services/CasoServicio.php"
click node_case_model "https://github.com/1997-bit/formulacion-pruebas/blob/main/models/CasoModelo.php"
click node_row_model "https://github.com/1997-bit/formulacion-pruebas/blob/main/models/FilasModelo.php"
click node_incidents "https://github.com/1997-bit/formulacion-pruebas/blob/main/services/IncidenteServicio.php"
click node_evidence "https://github.com/1997-bit/formulacion-pruebas/blob/main/models/EvidenciaModelo.php"
click node_history "https://github.com/1997-bit/formulacion-pruebas/blob/main/services/Historial.php"
click node_reports "https://github.com/1997-bit/formulacion-pruebas/blob/main/services/ReporteServicio.php"
click node_self_assessment "https://github.com/1997-bit/formulacion-pruebas/blob/main/services/AutoevaluacionServicio.php"
click node_database "https://github.com/1997-bit/formulacion-pruebas/blob/main/config/Conexion.php"
click node_views "https://github.com/1997-bit/formulacion-pruebas/blob/main/core/Vista.php"
click node_csrf "https://github.com/1997-bit/formulacion-pruebas/blob/main/core/Csrf.php"
click node_catalogs "https://github.com/1997-bit/formulacion-pruebas/blob/main/helpers/Catalogo.php"

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_entry,node_case_controller,node_case_views,node_access toneBlue
class node_projects,node_requirements,node_test_design,node_decision_tables,node_boundary_values,node_coverage,node_test_plans toneAmber
class node_case_service,node_case_model,node_row_model,node_incidents,node_evidence,node_history toneMint
class node_reports,node_self_assessment toneRose
class node_database,node_views,node_csrf,node_catalogs,node_tester toneIndigo
```

## Components

### Request handling

- [Web entry point](https://github.com/1997-bit/formulacion-pruebas/blob/main/public/index.php): `public/index.php`
- [Case controller](https://github.com/1997-bit/formulacion-pruebas/blob/main/controllers/CasosControlador.php): `controllers/CasosControlador.php`
- [Case forms and results](https://github.com/1997-bit/formulacion-pruebas/blob/main/views/casos/formulario.php): `views/casos/formulario.php`
- [Authentication](https://github.com/1997-bit/formulacion-pruebas/blob/main/services/AccesoServicio.php): `services/AccesoServicio.php`

### Test planning

- [Projects](https://github.com/1997-bit/formulacion-pruebas/blob/main/controllers/ProyectosControlador.php): `controllers/ProyectosControlador.php`
- [Requirements](https://github.com/1997-bit/formulacion-pruebas/blob/main/services/RequerimientoServicio.php): `services/RequerimientoServicio.php`
- [Black- and white-box techniques](https://github.com/1997-bit/formulacion-pruebas/blob/main/services/ClasesEquivalenciaServicio.php): `services/ClasesEquivalenciaServicio.php`
- [Decision tables](https://github.com/1997-bit/formulacion-pruebas/blob/main/services/TablaDecisionServicio.php): `services/TablaDecisionServicio.php`
- [Boundary values](https://github.com/1997-bit/formulacion-pruebas/blob/main/services/ValorLimiteServicio.php): `services/ValorLimiteServicio.php`
- [Coverage](https://github.com/1997-bit/formulacion-pruebas/blob/main/services/CoberturaServicio.php): `services/CoberturaServicio.php`
- [Test plans](https://github.com/1997-bit/formulacion-pruebas/blob/main/services/PlanServicio.php): `services/PlanServicio.php`

### Execution records

- [Case workflow](https://github.com/1997-bit/formulacion-pruebas/blob/main/services/CasoServicio.php): `services/CasoServicio.php`
- [Case persistence](https://github.com/1997-bit/formulacion-pruebas/blob/main/models/CasoModelo.php): `models/CasoModelo.php`
- [Form row persistence](https://github.com/1997-bit/formulacion-pruebas/blob/main/models/FilasModelo.php): `models/FilasModelo.php`
- [Incident tracking](https://github.com/1997-bit/formulacion-pruebas/blob/main/services/IncidenteServicio.php): `services/IncidenteServicio.php`
- [Evidence and uploads](https://github.com/1997-bit/formulacion-pruebas/blob/main/models/EvidenciaModelo.php): `models/EvidenciaModelo.php`
- [Change history](https://github.com/1997-bit/formulacion-pruebas/blob/main/services/Historial.php): `services/Historial.php`

### Review and reporting

- [Reports and closure](https://github.com/1997-bit/formulacion-pruebas/blob/main/services/ReporteServicio.php): `services/ReporteServicio.php`
- [Self-assessment](https://github.com/1997-bit/formulacion-pruebas/blob/main/services/AutoevaluacionServicio.php): `services/AutoevaluacionServicio.php`

### Shared services

- [Database connection](https://github.com/1997-bit/formulacion-pruebas/blob/main/config/Conexion.php): `config/Conexion.php`
- [View rendering](https://github.com/1997-bit/formulacion-pruebas/blob/main/core/Vista.php): `core/Vista.php`
- [CSRF protection](https://github.com/1997-bit/formulacion-pruebas/blob/main/core/Csrf.php): `core/Csrf.php`
- [Domain catalogs](https://github.com/1997-bit/formulacion-pruebas/blob/main/helpers/Catalogo.php): `helpers/Catalogo.php`

### Other components

- **Admin or tester**

## Connections

- Admin or tester → Web entry point: submits requests (evidence: `README.md`)
- Web entry point → Authentication: checks session (evidence: `public/index.php`)
- Web entry point → Case controller: dispatches action (evidence: `public/index.php`)
- Case controller → Case workflow: calls case operations (evidence: `controllers/CasosControlador.php`)
- Case controller → Case forms and results: renders form
- Case workflow → Case persistence: reads and updates cases (evidence: `services/CasoServicio.php`)
- Case workflow → Form row persistence: checks row fingerprints (evidence: `services/CasoServicio.php`)
- Case workflow → Change history: records changes (evidence: `services/CasoServicio.php`)
- Form row persistence → Database connection: executes queries (evidence: `models/FilasModelo.php`)
- Case workflow → Requirements: loads requirements (evidence: `services/CasoServicio.php`)
- Case workflow → Evidence and uploads: loads evidence records (evidence: `services/CasoServicio.php`)
- Case workflow → Incident tracking: checks open incidents (evidence: `services/CasoServicio.php`)
- Case controller → View rendering: renders pages (evidence: `controllers/CasosControlador.php`)
- Case controller → CSRF protection: uses request tokens
- Case workflow → Domain catalogs: validates catalog values (evidence: `services/CasoServicio.php`)
