CR-TST-010 · MASTER TEST PLAN & TEST SUITE

Master Test Plan & Test Suite

Test strategy, levels, environments, automation split, defect management and a structured suite of 1,000+ test cases across all modules — including the UAT subset.

ConfidentialVersion: 1.0Date: 06 Jun 2026
Implementation status — planned catalogue vs. current automation. The 1,000+ structured cases below are the planned test catalogue (the target suite + UAT subset), not an executed automated suite. The automation that exists in the repo today is the e2e/ harness — custom Node scripts (api/*.mjs API suites, dashboard-smoke.mjs, dashboard-qa.mjs, RBAC checks) run against a live, seeded system. Unit/integration/contract suites, a CI test pyramid and coverage gates are roadmap; coverage figures here are targets.

Test Strategy

Quality is built in at every level — from unit tests in CI to business UAT before go-live. Testing traces to the SRS functional requirements and PRD acceptance criteria.

LevelScopeOwnerMode
UnitFunctions, rules, calculations.EngineeringAutomated (CI)
IntegrationService ↔ DB ↔ queue ↔ partner stubs.Engineering / QAAutomated
API / ContractEndpoint behaviour vs OpenAPI.QAAutomated
System (E2E)Cross-module business flows.QAAutomated + Manual
PerformanceThroughput, latency, soak.QA / SREAutomated (tooling)
SecuritySAST/DAST, RBAC, pen-test.SecurityAutomated + Manual
UATBusiness acceptance & pilot.the Bank businessManual
RegressionStability across releases.QAAutomated

Test Suite Summary

Coverage by Module

CodeModuleTotalAutomatedManualUATP0/P1

Environments & Data

PhaseEnvironmentDataGate
Unit / IntegrationDEVSyntheticCoverage ≥ 80%, all green.
System / APISITMasked / syntheticAll P0 pass, no open P0 defects.
Performance / SecurityPRE-PRODMasked, prod-like volumeNFR targets met; no critical vulns.
UAT / PilotUATMasked production-likeBusiness sign-off on UAT subset.

Entry & Exit Criteria

GateEntryExit
System testBuild deployed to SIT; smoke pass.100% P0 & ≥95% P1 pass; no open P0/P1.
UATSystem test exit met; UAT data ready.UAT subset pass; business sign-off; known issues accepted.
Go-liveUAT sign-off; perf & security clear; DR tested.Cutover checklist complete (see CR-IMP-011).

Automation Approach

Defect Management

SeverityDefinitionTarget fix SLA
S1Blocker — financial error, data loss, outage.Immediate / hotfix.
S2Major — key function broken, no workaround.Within sprint.
S3Minor — workaround exists.Next release.
S4Cosmetic / low.Backlog.

Sample Detailed Test Cases

Representative fully-specified cases; the complete generated suite follows in §10.

IDPre-conditionStepsExpected resultType
TS-ACC-0001Active Signature card; 2pts/₹100 rule.Post ₹5,000 eligible POS purchase.100 pts credited; ledger entry references txn & rule.Functional
TS-ACC-0002Dining 3× accelerator active.Post ₹2,000 dining (MCC 5812).120 pts credited (3× base).Functional
TS-ACC-0003Cash advance excluded.Post a cash-advance txn.0 pts; accrual_status = excluded.Negative
TS-ACC-0004Cycle cap 5,000 pts; 4,900 already earned.Post txn earning 300 pts.100 pts credited; 200 capped; cap event logged.Boundary
TS-RDM-0001Balance 6,000; voucher GV-AMZ-500 = 5,000 pts.Redeem with valid OTP.5,000 debited; voucher issued; history updated.Functional
TS-RDM-0002Balance 3,200; voucher = 5,000 pts.Attempt redemption.422 INSUFFICIENT_BALANCE; no debit.Negative
TS-RDM-0003Fulfilment partner returns failure.Redeem; partner errors.Points auto-reversed; customer notified; exception logged.Integration
TS-ADM-0001Maker submits campaign.Same user attempts approval.Blocked — self-approval not allowed.Security
TS-ENG-0001Event evt-upi-000123 already ingested and rewarded.Replay POST /api/v1/events with the same eventRef.201 with duplicate: true; identical response body; no second scratch card or ledger credit.Negative
TS-ENG-0002Account has never sent UPI_TRANSACTION; "First UPI transaction" rule active (first_occurrence).Post a UPI event above min_amount_minor; then post a second UPI event.First event matches and issues one ISSUED scratch card (expiresAt = issue + 30 days); second event does not match the first-occurrence rule.Functional
TS-ENG-0003UPI_STREAK_3_WEEKLY milestone active; account at 2/3 in current week.Post the 3rd UPI event in the same ISO week.milestone_progress → completed → rewarded; streak scratch card issued; a 4th event starts fresh progress, not a second reward in-window.Functional
TS-ENG-0004ISSUED scratch card with hidden POINTS prize.POST /scratch-cards/:id/scratch twice.Both calls return the same prize and ledgerEntryId; exactly one ACCRUAL ledger credit (source_type scratch_card); balance credited once.Boundary
TS-ENG-0005Scratch card past expiresAt (state EXPIRED).Attempt POST /scratch-cards/:id/scratch.409 returned; card stays EXPIRED; no prize revealed; no ledger credit.Negative

Complete Generated Test Suite

The full structured suite (auto-generated, traceable to module & requirement). Use the filters to review on screen; printing includes all cases.

IDModuleScenarioTypePriorityExecutionUAT