Skip to content

Domain specifications / D10-ESS / 15. Testing and Verification Requirements

15. Testing and Verification Requirements

15.1 Verification Strategy

  • Unit testing. Policy rules, precedence rules, state transitions, timer logic, validation rules and version resolution (PRS 17.1).
  • Component testing. Each shared service against its contract, including idempotency, concurrency checks and error responses.
  • Policy and content testing. A maintained policy test pack of allowed and denied cases by context is executed before every policy activation (SEC-003, SEC-013). Terminology releases run impact analysis and binding validation (SDLC-003).
  • Integration testing. Contract tests with every consuming domain for decision, audit, terminology, notification, workflow, document and configuration interfaces; identity-source feeds; security-event forwarding.
  • End-to-end workflow testing. WF-ESS-001 to WF-ESS-008 executed end to end; shared services exercised within the Tier 1 clinical scenarios owned by other domains (ACC-002).
  • Performance testing. Decision, validation and audit-intake load at agreed peak; propagation timing; notification bursts; isolation of Tier 3 and Tier 4 callers.
  • Resilience testing. Failure injection for each shared service to verify the degraded behaviour in section 8.6; restart with running timers; failover and restore (ACC-006).
  • Security testing. Threat model, access-control tests against every administrative function, MFA path tests, audit completeness and tamper-detection tests, penetration testing (SEC-011, ACC-003).
  • Privacy testing. Consent and label enforcement for read, export and exchange; masking; data subject request workflow (SEC-012, SEC-017).
  • Usability testing. Break-the-Glass, notification acknowledgement and task handling with representative clinicians; workspace tasks with stewards and administrators (SAFE-006).
  • User acceptance testing. By the Security and Privacy Office, Data Governance Council, stewards, identity administrators and clinical representatives.
  • Operational readiness testing. Monitoring, runbooks, recovery, export of configuration, terminology mappings and audit (ACC-008, ACC-009).

Test evidence records test case, requirement, build, environment, data classification, tester, date, outcome and approver, and uses synthetic or de-identified data (PRS 17.3).

15.2 Test Scenario Catalogue

Test ID Requirement ID Scenario Test Type Expected Result
TEST-ESS-001 FR-ESS-IAM-001 Joiner, duplicate identity, leaver with open session, clinical role on unlinked account Functional One account per person; duplicate refused; session denied after leaver; role refused
TEST-ESS-002 FR-ESS-IAM-002 Each protected path without second factor; step-up; failed full sign-ins to threshold; inactivity on desktop and handheld; maximum lifetime; three failed PINs; PIN without badge or remote; second person equal to requester; suspended account token Security Access refused without MFA; step-up enforced; account Blocked and unblocked after the block period; screen locked with session and drafts kept; warning then session end; badge path closed, account not Blocked; PIN refused; authorization refused; token denied
TEST-ESS-003 FR-ESS-IAM-003 Service identity out-of-scope call, interactive sign-on attempt, overdue rotation, on-behalf-of audit; wall display reading an unconfigured board or writing Security Denied and audited; alert; overdue flagged; both identities in audit; display request denied and audited
TEST-ESS-004 FR-ESS-IAM-004 Scoped assignment used out of scope; revocation in campaign; segregation-of-duties conflict; prescriber verifies own order; privileged item unreviewed at due date Functional / Security No permit out of scope; revoked permission stops working; conflict refused; Deny with segregation-of-duties reason; privileged assignment suspended
TEST-ESS-005 FR-ESS-AUZ-001 Policy test pack by role, specialty, unit, assignment, shift, network or device posture and action; no applicable policy; service-level enforcement behind hidden control Security All cases as expected; default deny; service denies
TEST-ESS-006 FR-ESS-AUZ-002 Permitted clinician invokes emergency access Clinical safety Immediate access; session, alert and review task created
TEST-ESS-007 FR-ESS-AUZ-002 Session expiry; non-permitted role calls API directly; screen lock during session; fast user switch and return within and after the window Security Access ends at expiry; direct call refused and audited; session continues through the lock with its clock running; session suspended, then resumed with the time left or ended
TEST-ESS-008 FR-ESS-AUZ-002 Review overdue Functional Escalation to supervisor or privacy officer
TEST-ESS-009 FR-ESS-AUZ-002 Invocation while notification and workflow services are down Resilience Access proceeds; alert and task created after recovery
TEST-ESS-010 FR-ESS-AUZ-003 Labelled data on read, export and exchange; unknown label Privacy Redaction per consent and legal basis; most restrictive handling
TEST-ESS-011 FR-ESS-AUZ-004 Grant used for other patient, after expiry, after revocation; scope beyond launching user Security All denied
TEST-ESS-012 FR-ESS-CNS-001 Record, supersede, withdraw, expire; as-of query; patient merge Functional Versions retained; events emitted; correct as-of result; conflicts flagged
TEST-ESS-013 FR-ESS-CNS-002 Exchange before and after withdrawal; deny directive with emergency session Privacy Permit then deny; exception recorded with legal basis
TEST-ESS-014 FR-ESS-CNS-003 Masking by role; data subject request across two domains; overdue request; erasure of medical record data in retention; response time Privacy Mask obligation applied; tasks per domain; escalation; Refused with retention basis; response within 3 x 24 hours
TEST-ESS-015 FR-ESS-TRM-001 Publish release; release inactivating a code in use; as-of expansion; safety-relevant value set with one reviewer Functional Pinned lookups unaffected; publication blocked; historical membership returned; approval blocked until a second steward reviews
TEST-ESS-016 FR-ESS-TRM-002 Inactive code, unknown code, invalid unit; service down with local copy; invalid binding in pipeline Functional / Resilience Explicit results, no substitution; validation from copy with version; pipeline fails
TEST-ESS-017 FR-ESS-TRM-003 Unmapped local laboratory code from interface Clinical safety "Unmapped" returned; stewardship item created
TEST-ESS-018 FR-ESS-TRM-003 Ambiguous map; as-of translation; resolution notification Functional Candidates returned as ambiguous; historical map version used; reporter notified
TEST-ESS-019 FR-ESS-MDM-001 Unapproved change; retired entity resolution; register completeness Functional Prior version served; retired entity resolves; every domain has owner and workflow
TEST-ESS-020 FR-ESS-MDM-002 Multi-facility hierarchy; retire ward with active rooms; as-of query Functional Hierarchy resolves; retirement blocked; historical structure returned
TEST-ESS-021 FR-ESS-MDM-003 Licence expiry; departed practitioner authorship; external practitioner; performer without a current privilege; SPK expiry Functional Credential lapsed and access affected; historical name resolves; no account created; refused with the missing privilege named, emergency override audited and reviewed; privileges Expired and event published
TEST-ESS-022 FR-ESS-AUD-001 Each SEC-006 and SEC-019 action type per domain; duplicate; malformed; denied attempt; count reconciliation; event of an unregistered type; category fields Security Conforming event for each; one record; quarantine; denied event; mismatch raised; quarantined; mandatory fields of its category present
TEST-ESS-023 FR-ESS-AUD-002 Attempt to alter or delete; out-of-band tamper; audited query; application administrator access; export Security No function permits change; tamper detected; query audited; access denied; export parses
TEST-ESS-024 FR-ESS-AUD-003 Destination outage and recovery; forwarding reconciliation; evidence hold Integration No gap after recovery; mismatch raised; disposal refused
TEST-ESS-025 FR-ESS-NTF-001 On-call recipient resolution; duplicate request; critical without policy Functional Current holder notified; one notification; rejected
TEST-ESS-026 FR-ESS-NTF-001 All channels fail Clinical safety Delivery Failed; requester informed; operations worklist item; escalation proceeds
TEST-ESS-027 FR-ESS-NTF-002 Timer expiry, second-step acknowledgement, chain exhaustion Clinical safety Escalation timestamped; stops on acknowledgement; exhausted item open and visible
TEST-ESS-028 FR-ESS-WFL-001 Restart mid-instance; duplicate step delivery; permanent failure with compensation; new version during run Resilience Resumes; one business effect; Compensated; original version retained
TEST-ESS-029 FR-ESS-WFL-002 Assignee suspended; overdue task; queue without eligible users; manual reassignment Functional Returned to queue; escalated; stuck alert; audit with reason
TEST-ESS-030 FR-ESS-CFG-001 Promote approved change; rollback; scoped override; as-of resolution; hash mismatch; export Functional Promotion audited; prior behaviour restored; correct scope; historical version; refused; export parses
TEST-ESS-031 FR-ESS-CFG-002 Extension via registered point with core regression; feature-flag change; plug-in without review Functional Core unaffected; audited; refused
TEST-ESS-032 FR-ESS-DOC-001 Search by patient, encounter, type, author, date; unauthorized resolution; new version of signed document; legal hold disposal; out-of-band alteration; upload of a non-permitted format, an oversize file and a renamed executable Functional / Security Found; denied and audited; both versions retrievable; refused; mismatch detected; each rejected
TEST-ESS-033 FR-ESS-REG-001 Legacy code resolution; identifier without authority; unknown practitioner identifier Integration Entity returned; rejected; stewardship item and "unknown"
TEST-ESS-034 FR-ESS-DGV-001 Ownership lookup; steward deactivated; item routing Functional Owner and steward returned; reassignment task; routed correctly
TEST-ESS-035 FR-ESS-DGV-002 Rule violation rejection detail; item lifecycle; report by category; overdue item; Critical item past 24 hours Functional Field, rule and reason given; assigned, resolved, measured; five categories shown; escalated; escalated to data owner and Clinical governance committee
TEST-ESS-036 FR-ESS-DGV-003 Trace dashboard value to versions; clinical datum provenance; non-conforming contract Analysis / Inspection Versions resolve; provenance present; reported non-conforming
TEST-ESS-037 FR-ESS-CFG-003 Catalogue search; deprecation notice; retirement with consumers; ADR completeness; retirement date inside the notice period Inspection / Functional Schema, scopes, versions, lifecycle shown; consumers notified; refused; fields present; refused without an approved exception
TEST-ESS-038 WF-ESS-001, WF-ESS-008 Joiner to recertification end to end End-to-end Account, roles and evidence consistent
TEST-ESS-039 NFR-ESS-001, NFR-ESS-002, NFR-ESS-005 Peak load on decision, terminology and audit intake; analytics caller saturation Performance Targets met; Tier 1 callers unaffected
TEST-ESS-040 NFR-ESS-003, NFR-ESS-006 Time from revocation, withdrawal and Break-the-Glass to effect and alert Performance Within propagation and alerting objectives
TEST-ESS-041 Section 8.6; FR-ESS-AUZ-001 Decision service outage during Tier 1 read Resilience / Clinical safety Cached decision or emergency access available; use audited
TEST-ESS-042 FR-ESS-NTF-002 Notification service restart with running and overdue timers Resilience No timer lost; overdue timers fire
TEST-ESS-043 FR-ESS-WFL-001 Recovery after outage with medication or billing step pending Clinical safety No blind replay; owning domain reconciliation applied
TEST-ESS-044 FR-ESS-AUD-001; BR-ESS-022 Audit service outage during clinical activity Resilience Events buffered and delivered; reconciliation clean; failure policy applied if buffering unavailable
TEST-ESS-045 NFR-ESS-012, NFR-ESS-014 Failover and restore of shared services including audit integrity verification Operational readiness RTO and RPO met; integrity verified
TEST-ESS-046 UX-ESS-001 to UX-ESS-006 Accessibility and usability of shared components and workspaces Usability Findings resolved or accepted

15.3 Acceptance Criteria

Domain 10 is accepted for a release when all of the following hold:

  • All Must requirements in section 5 that are in the agreed release scope pass verification or have an approved, time-bound waiver (ACC-001).
  • WF-ESS-001 to WF-ESS-008 pass end-to-end tests, and the Tier 1 clinical scenarios of other domains pass with Domain 10 services in the path (ACC-002).
  • Contracts IF-ESS-001 to IF-ESS-014 and events EVT-ESS-001 to EVT-ESS-014 are validated with each consuming domain.
  • The policy test pack, consent and label enforcement tests, audit completeness tests and tamper-detection tests pass, and no critical or high vulnerability remains without formal risk acceptance (ACC-003).
  • Performance and propagation targets in section 10 are met at agreed peak load, or revised targets are approved.
  • Degraded-mode behaviour in section 8.6 is demonstrated by failure injection, and failover and restore meet approved objectives (ACC-006).
  • Migration MIG-ESS-001 to MIG-ESS-007 is reconciled and signed off by the named owners.
  • Complete export of configuration, terminology mappings, master data and audit records in documented formats is demonstrated (ACC-008).
  • Clinical governance has approved relevant terminology, Break-the-Glass roles and reason codes, and clinical escalation policies (ACC-010).
  • Runbooks, dashboards, support paths and service catalogue entries are operational (ACC-009).
  • Hazards in section 11.1 are in the hazard log with verified controls, and outstanding risks are formally accepted or resolved.

15.4 Requirement Verification Matrix

Requirement ID Test ID Verification Method Result Evidence
FR-ESS-IAM-001 TEST-ESS-001, TEST-ESS-038 Test Pending To be recorded
FR-ESS-IAM-002 TEST-ESS-002 Test Pending To be recorded
FR-ESS-IAM-003 TEST-ESS-003 Test Pending To be recorded
FR-ESS-IAM-004 TEST-ESS-004, TEST-ESS-038 Test Pending To be recorded
FR-ESS-AUZ-001 TEST-ESS-005, TEST-ESS-039, TEST-ESS-041 Test Pending To be recorded
FR-ESS-AUZ-002 TEST-ESS-006 to TEST-ESS-009, TEST-ESS-040 Test Pending To be recorded
FR-ESS-AUZ-003 TEST-ESS-010 Test Pending To be recorded
FR-ESS-AUZ-004 TEST-ESS-011 Test Pending To be recorded
FR-ESS-CNS-001 TEST-ESS-012 Test Pending To be recorded
FR-ESS-CNS-002 TEST-ESS-013 Test Pending To be recorded
FR-ESS-CNS-003 TEST-ESS-014 Test Pending To be recorded
FR-ESS-TRM-001 TEST-ESS-015 Test Pending To be recorded
FR-ESS-TRM-002 TEST-ESS-016, TEST-ESS-039 Test Pending To be recorded
FR-ESS-TRM-003 TEST-ESS-017, TEST-ESS-018 Test Pending To be recorded
FR-ESS-MDM-001 TEST-ESS-019 Test / Inspection Pending To be recorded
FR-ESS-MDM-002 TEST-ESS-020 Test Pending To be recorded
FR-ESS-MDM-003 TEST-ESS-021 Test Pending To be recorded
FR-ESS-AUD-001 TEST-ESS-022, TEST-ESS-044 Test Pending To be recorded
FR-ESS-AUD-002 TEST-ESS-023, TEST-ESS-045 Test Pending To be recorded
FR-ESS-AUD-003 TEST-ESS-024 Test Pending To be recorded
FR-ESS-NTF-001 TEST-ESS-025, TEST-ESS-026 Test Pending To be recorded
FR-ESS-NTF-002 TEST-ESS-027, TEST-ESS-042 Test Pending To be recorded
FR-ESS-WFL-001 TEST-ESS-028, TEST-ESS-043 Test Pending To be recorded
FR-ESS-WFL-002 TEST-ESS-029 Test Pending To be recorded
FR-ESS-DOC-001 TEST-ESS-032 Test Pending To be recorded
FR-ESS-REG-001 TEST-ESS-033 Test Pending To be recorded
FR-ESS-DGV-001 TEST-ESS-034 Test / Inspection Pending To be recorded
FR-ESS-DGV-002 TEST-ESS-035 Test Pending To be recorded
FR-ESS-DGV-003 TEST-ESS-036 Analysis / Inspection Pending To be recorded
FR-ESS-CFG-001 TEST-ESS-030 Test Pending To be recorded
FR-ESS-CFG-002 TEST-ESS-031 Test Pending To be recorded
FR-ESS-CFG-003 TEST-ESS-037 Inspection / Test Pending To be recorded

← 14. Technical and Architectural Constraints | Contents | Identifier index | 16. Implementation and Deployment Considerations →