# Test Specifications

> [← Back to README](../README.md) | [Component Order](./component-order.md) | [Validation Criteria →](./validation-criteria.md)

## Test Approach per Program

### Authentication (COSGN00C)
- Valid user login → Main menu displayed
- Valid admin login → Admin menu displayed
- Invalid user ID → Error message "User not found"
- Invalid password → Error message "Invalid password"
- Empty fields → Error message

### Menu Navigation (COMEN01C, COADM01C)
- Each option (1-12) → Correct program invoked
- Invalid option → Error message
- PF3 → Return to sign-on

### Account Programs (COACTVWC, COACTUPC)
- View valid account → All fields displayed correctly
- Update account → Changes persisted in ACCTDAT
- Invalid account number → Error message
- Field validation (dates, ZIP, status) → Proper error on invalid input

### Card Programs (COCRDLIC, COCRDSLC, COCRDUPC)
- List cards → Pagination works (PF7/PF8)
- View card detail → All fields correct
- Update card → Changes persisted in CARDDAT
- Invalid card number → Error handling

### Transaction Programs (COTRN00C-02C)
- List transactions → Correct filtering and pagination
- View transaction → All fields displayed
- Add transaction → Valid xref, account, and amount → Written to TRANSACT
- Add transaction → Invalid card → Rejection message

### Bill Payment (COBIL00C)
- Valid payment → Transaction recorded, balance updated
- Invalid account → Error handling

### Report (CORPT00C)
- Submit report → JCL written to TD queue JOBS

### User Management (COUSR00C-03C)
- List users → Paginated display
- Add user → New record in USRSEC; duplicate → Error
- Update user → Changes persisted
- Delete user → Record removed with confirmation

### Batch Programs
| Program | Test Case |
|:--------|:----------|
| CBACT01C-03C, CBCUS01C | Load from PS → VSAM file populated correctly |
| CBTRN02C | Valid transactions posted; invalid rejected; balances updated |
| CBACT04C | Interest calculated correctly per disclosure group rates |
| CBTRN03C | Report output matches transaction data |
| CBSTM03A/B | Statement output matches customer/account/transaction data |
| CBEXPORT/CBIMPORT | Round-trip: export then import preserves all data |

### Optional Module Tests
| Program | Test Case |
|:--------|:----------|
| COPAUA0C | MQ request → valid card → approve; invalid card → deny |
| COPAUS0C/1C | Auth summary/detail displayed correctly |
| COTRTLIC | DB2 cursor list → pagination; delete → record removed |
| COTRTUPC | Add/edit transaction type → DB2 record correct |
| COACCT01 | MQ account inquiry → account data returned |
| CODATE01 | MQ date inquiry → system date returned |

---

*See also: [Validation Criteria](./validation-criteria.md) | [Component Order](./component-order.md)*
