Pruebas de API con Newman para Banco API (.NET 8).
| Summary Item | Total | Failed |
|---|---|---|
| Requests | 12 | 0 |
| Prerequest Scripts | 0 | 0 |
| Test Scripts | 12 | 0 |
| Assertions | 24 | 0 |
| Skipped Tests | 0 | - |
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.39.1 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | e0a6ab83-8f42-41e3-84c6-158a60f9905f |
| Host | localhost:5000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Content-Type | application/json; charset=utf-8 |
| Date | Sat, 14 Nov 2026 00:22:39 GMT |
| Server | Kestrel |
| Transfer-Encoding | chunked |
{"estado":"ok"}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status 200 | 1 | 0 | 0 |
| La API responde ok | 1 | 0 | 0 |
| Total | 2 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.39.1 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | b03528c2-9c14-4f1a-a5dd-e8c6f6f587ba |
| Host | localhost:5000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Content-Type | application/json; charset=utf-8 |
| Date | Sat, 14 Nov 2026 00:22:39 GMT |
| Server | Kestrel |
| Transfer-Encoding | chunked |
[{"id":1,"titular":"Ana Torres","saldo":1500},{"id":2,"titular":"Luis Ramos","saldo":320.50}]
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status 200 | 1 | 0 | 0 |
| Devuelve una lista con cuentas | 1 | 0 | 0 |
| Responde en menos de 500 ms | 1 | 0 | 0 |
| Total | 3 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.39.1 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | c807aff9-4e84-42c4-abc4-9df10b7ccb31 |
| Host | localhost:5000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Content-Type | application/json; charset=utf-8 |
| Date | Sat, 14 Nov 2026 00:22:39 GMT |
| Server | Kestrel |
| Transfer-Encoding | chunked |
{"id":1,"titular":"Ana Torres","saldo":1500}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status 200 | 1 | 0 | 0 |
| Datos de la cuenta 1 | 1 | 0 | 0 |
| Cumple el esquema | 1 | 0 | 0 |
| Total | 3 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.39.1 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 477707a7-bdfd-421a-a194-f7da92767a80 |
| Host | localhost:5000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Content-Type | application/json; charset=utf-8 |
| Date | Sat, 14 Nov 2026 00:22:39 GMT |
| Server | Kestrel |
| Transfer-Encoding | chunked |
{"error":"La cuenta 999 no existe"}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status 404 | 1 | 0 | 0 |
| Mensaje de error | 1 | 0 | 0 |
| Total | 2 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| User-Agent | PostmanRuntime/7.39.1 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 80edde1d-0dbb-463d-b0dc-9b6c2d92360b |
| Host | localhost:5000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 45 |
{"titular":"Maria Quispe","saldoInicial":100}
| Header Name | Header Value |
|---|---|
| Content-Type | application/json; charset=utf-8 |
| Date | Sat, 14 Nov 2026 00:22:39 GMT |
| Server | Kestrel |
| Location | /api/cuentas/3 |
| Transfer-Encoding | chunked |
{"id":3,"titular":"Maria Quispe","saldo":100}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status 201 Created | 1 | 0 | 0 |
| Devuelve la cabecera Location | 1 | 0 | 0 |
| Cuenta creada con los datos enviados | 1 | 0 | 0 |
| Total | 3 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| User-Agent | PostmanRuntime/7.39.1 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 8d87f0ef-1651-4066-8d5d-c7f10429c223 |
| Host | localhost:5000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 32 |
{"titular":"","saldoInicial":50}
| Header Name | Header Value |
|---|---|
| Content-Type | application/json; charset=utf-8 |
| Date | Sat, 14 Nov 2026 00:22:39 GMT |
| Server | Kestrel |
| Transfer-Encoding | chunked |
{"error":"El titular es obligatorio"}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status 400 | 1 | 0 | 0 |
| Mensaje de validación | 1 | 0 | 0 |
| Total | 2 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| User-Agent | PostmanRuntime/7.39.1 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 057e84f2-f32b-44b4-bb12-7569444e050c |
| Host | localhost:5000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 13 |
{"monto":200}
| Header Name | Header Value |
|---|---|
| Content-Type | application/json; charset=utf-8 |
| Date | Sat, 14 Nov 2026 00:22:39 GMT |
| Server | Kestrel |
| Transfer-Encoding | chunked |
{"id":3,"titular":"Maria Quispe","saldo":300}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status 200 | 1 | 0 | 0 |
| El saldo aumenta a 300 | 1 | 0 | 0 |
| Total | 2 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| User-Agent | PostmanRuntime/7.39.1 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | fa1fc5ab-02db-4479-8705-f0edd9f73478 |
| Host | localhost:5000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 13 |
{"monto":-50}
| Header Name | Header Value |
|---|---|
| Content-Type | application/json; charset=utf-8 |
| Date | Sat, 14 Nov 2026 00:22:39 GMT |
| Server | Kestrel |
| Transfer-Encoding | chunked |
{"error":"El monto debe ser mayor a cero"}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status 400 | 1 | 0 | 0 |
| Total | 1 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| User-Agent | PostmanRuntime/7.39.1 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | fa3ae172-f248-4cf3-842e-5ebdb433a56d |
| Host | localhost:5000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 14 |
{"monto":1000}
| Header Name | Header Value |
|---|---|
| Content-Type | application/json; charset=utf-8 |
| Date | Sat, 14 Nov 2026 00:22:39 GMT |
| Server | Kestrel |
| Transfer-Encoding | chunked |
{"error":"Saldo insuficiente"}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status 422 | 1 | 0 | 0 |
| Mensaje de saldo insuficiente | 1 | 0 | 0 |
| Total | 2 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| User-Agent | PostmanRuntime/7.39.1 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 43c33724-7e77-40d0-aa02-54d42ce6e1c7 |
| Host | localhost:5000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 12 |
{"monto":50}
| Header Name | Header Value |
|---|---|
| Content-Type | application/json; charset=utf-8 |
| Date | Sat, 14 Nov 2026 00:22:39 GMT |
| Server | Kestrel |
| Transfer-Encoding | chunked |
{"id":3,"titular":"Maria Quispe","saldo":250}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status 200 | 1 | 0 | 0 |
| El saldo baja a 250 | 1 | 0 | 0 |
| Total | 2 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.39.1 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 54e27ac9-29ca-43a5-b6e7-d851006b9af6 |
| Host | localhost:5000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Date | Sat, 14 Nov 2026 00:22:39 GMT |
| Server | Kestrel |
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status 204 No Content | 1 | 0 | 0 |
| Total | 1 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.39.1 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | b53d60f9-1217-49b2-ad8d-033b2b0a758b |
| Host | localhost:5000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Content-Type | application/json; charset=utf-8 |
| Date | Sat, 14 Nov 2026 00:22:39 GMT |
| Server | Kestrel |
| Transfer-Encoding | chunked |
{"error":"La cuenta 3 no existe"}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status 404 | 1 | 0 | 0 |
| Total | 1 | 0 | 0 |
| Test Name | Assertion Error |
|---|