148 lines
3.8 KiB
Markdown
148 lines
3.8 KiB
Markdown
# US-MMD003-002: Registrar Pruebas de Banco de Inyectores
|
|
|
|
## Metadata
|
|
|
|
| Campo | Valor |
|
|
|-------|-------|
|
|
| **ID** | US-MMD003-002 |
|
|
| **Epica** | EPIC-MMD-003 - Diagnosticos |
|
|
| **Modulo** | diagnosticos |
|
|
| **Prioridad** | P0 |
|
|
| **Story Points** | 8 |
|
|
| **Sprint** | Sprint 3 |
|
|
| **Estado** | Backlog |
|
|
|
|
---
|
|
|
|
## Historia de Usuario
|
|
|
|
**Como** mecanico,
|
|
**quiero** registrar los resultados de pruebas de banco de inyectores,
|
|
**para** documentar el estado de cada inyector y justificar la reparacion.
|
|
|
|
## Descripcion Detallada
|
|
|
|
Las pruebas de banco evaluan el funcionamiento de los inyectores diesel fuera del motor. Se miden parametros como presion de apertura, patron de spray, retorno, goteo y caudal. El sistema compara contra valores de referencia.
|
|
|
|
---
|
|
|
|
## Criterios de Aceptacion
|
|
|
|
**Escenario 1: Crear prueba de inyector**
|
|
```gherkin
|
|
DADO que pruebo un inyector Cummins ISX
|
|
CUANDO registro los resultados:
|
|
| Parametro | Valor | Unidad |
|
|
| Numero serie | 4954434 | - |
|
|
| Presion apertura | 2950 | PSI |
|
|
| Patron spray | Uniforme | - |
|
|
| Retorno | 18 | ml/min |
|
|
| Goteo | Ninguno | - |
|
|
| Caudal | 48 | ml/100 |
|
|
ENTONCES el sistema guarda la prueba
|
|
Y compara vs valores de referencia
|
|
```
|
|
|
|
**Escenario 2: Ver resultado vs referencia**
|
|
```gherkin
|
|
DADO que registro presion apertura 2950 PSI
|
|
CUANDO el sistema compara con referencia (2800-3200 PSI)
|
|
ENTONCES muestra:
|
|
| Parametro | Valor | Referencia | Estado |
|
|
| Presion apertura | 2950 | 2800-3200 | ✅ OK |
|
|
```
|
|
|
|
**Escenario 3: Detectar valor fuera de rango**
|
|
```gherkin
|
|
DADO que registro caudal 65 ml/100
|
|
CUANDO el sistema compara con referencia (45-55 ml/100)
|
|
ENTONCES muestra:
|
|
| Parametro | Valor | Referencia | Estado |
|
|
| Caudal | 65 | 45-55 | ❌ FUERA |
|
|
Y sugiere "Inyector con caudal excesivo - requiere calibracion"
|
|
```
|
|
|
|
**Escenario 4: Probar multiples inyectores**
|
|
```gherkin
|
|
DADO que pruebo 6 inyectores del mismo motor
|
|
CUANDO registro todos
|
|
ENTONCES veo tabla comparativa:
|
|
| Inyector | Presion | Caudal | Estado |
|
|
| Cil 1 | 2950 | 48 | OK |
|
|
| Cil 2 | 2900 | 52 | OK |
|
|
| Cil 3 | 2600 | 65 | FALLA |
|
|
| ... | | | |
|
|
```
|
|
|
|
**Escenario 5: Generar reporte de prueba**
|
|
```gherkin
|
|
DADO que complete las pruebas
|
|
CUANDO genero reporte PDF
|
|
ENTONCES incluye:
|
|
- Datos del vehiculo
|
|
- Tabla de resultados por inyector
|
|
- Comparacion vs referencia
|
|
- Conclusion y recomendaciones
|
|
```
|
|
|
|
---
|
|
|
|
## Parametros de Prueba
|
|
|
|
| Parametro | Unidad | Descripcion |
|
|
|-----------|--------|-------------|
|
|
| Numero serie | texto | Identificacion del inyector |
|
|
| Presion apertura | PSI | Presion a la que abre |
|
|
| Patron spray | enum | Uniforme, Irregular, Desviado |
|
|
| Retorno | ml/min | Combustible que retorna |
|
|
| Goteo | enum | Ninguno, Leve, Severo |
|
|
| Caudal | ml/100 | Volumen en 100 inyecciones |
|
|
|
|
---
|
|
|
|
## Tareas Tecnicas
|
|
|
|
**Database:**
|
|
- [ ] DB-034: Crear tabla `bench_tests`
|
|
- [ ] DB-035: Crear tabla `injector_tests`
|
|
- [ ] DB-036: Crear tabla `reference_values` con parametros
|
|
|
|
**Backend:**
|
|
- [ ] BE-075: Crear BenchTestEntity
|
|
- [ ] BE-076: Crear InjectorTestEntity
|
|
- [ ] BE-077: Endpoint POST /api/diagnostics/:id/injector-test
|
|
- [ ] BE-078: Comparacion automatica vs referencia
|
|
- [ ] BE-079: Generar reporte PDF
|
|
|
|
**Frontend:**
|
|
- [ ] FE-074: Crear InjectorTestForm
|
|
- [ ] FE-075: Crear ResultComparisonCard
|
|
- [ ] FE-076: Crear InjectorTestTable (multiples)
|
|
- [ ] FE-077: Vista de reporte
|
|
|
|
---
|
|
|
|
## Valores de Referencia (Ejemplo Cummins ISX)
|
|
|
|
| Parametro | Min | Max | Unidad |
|
|
|-----------|-----|-----|--------|
|
|
| Presion apertura | 2800 | 3200 | PSI |
|
|
| Retorno | 0 | 20 | ml/min |
|
|
| Caudal | 45 | 55 | ml/100 |
|
|
|
|
---
|
|
|
|
## Definition of Done (DoD)
|
|
|
|
- [ ] Formulario de prueba de inyector
|
|
- [ ] Comparacion automatica vs referencia
|
|
- [ ] Semaforo visual (OK/FUERA)
|
|
- [ ] Tabla comparativa multiples inyectores
|
|
- [ ] Reporte PDF
|
|
- [ ] Tests pasando
|
|
|
|
---
|
|
|
|
**Creada por:** Requirements-Analyst
|
|
**Fecha:** 2025-12-06
|