Verification Matrix — Deactivating Worksites and Projects
Implements: Deactivating Worksites and Projects
MECE Coverage: See MECE Coverage Matrix for complete Mutually Exclusive, Collectively Exhaustive analysis.
Component Scenarios (at a glance)
| ID | Title | ACs Covered | Type |
|---|---|---|---|
| TC-PROT-DEACT-001 | Site Protector deactivates worksite with clear frame | AC-PROT-009-01 | Positive |
| TC-PROT-DEACT-002 | Worksite deactivation confirmation and success | AC-PROT-009-02 | Positive |
| TC-PROT-DEACT-003 | RPO deactivates multi-site PWA when all worksites deactivated | AC-PROT-009-03 | Positive |
| TC-PROT-DEACT-004 | PWA deactivation confirmation and success | AC-PROT-009-04 | Positive |
| TC-PROT-DEACT-005 | Audit trail records deactivation events | AC-PROT-009-05 | Positive |
| TC-PROT-DEACT-006 | Acting Site Protector sees deactivate action | AC-PROT-009-06 | Positive |
| TC-PROT-DEACT-007 | Acting RPO sees deactivate PWA action | AC-PROT-009-07 | Positive |
| TC-PROT-DEACT-008 | Inactive entities hide active-state actions | AC-PROT-009-08 | Positive |
| TC-PROT-DEACT-009 | Worksite deactivation works offline | AC-PROT-009-09 | Positive |
| TC-PROT-DEACT-010 | PWA deactivation requires online connectivity | AC-PROT-009-10 | Positive |
| TC-PROT-DEACT-011 | Workers locked on prevents worksite deactivation | AC-PROT-009-11 | Defensive |
| TC-PROT-DEACT-012 | Plant locked on prevents worksite deactivation | AC-PROT-009-12 | Defensive |
| TC-PROT-DEACT-013 | Active worksites prevent PWA deactivation | AC-PROT-009-13 | Defensive |
| TC-PROT-DEACT-014 | Non-acting users cannot access deactivation | AC-PROT-009-14 | Negative |
| TC-PROT-DEACT-015 | RPO deactivates single-site PWA | AC-PROT-009-15 | Positive |
| TC-PROT-DEACT-016 | Real-time status updates when online | AC-PROT-009-16 | Positive |
| TC-PROT-DEACT-017 | Status updates sync when device comes online | AC-PROT-009-17 | Positive |
End-to-End Flow Scenarios
| ID | Title | ACs Covered | Component Tests | Type |
|---|---|---|---|---|
| TC-PROT-DEACT-E2E-001 | Complete Worksite Deactivation Journey | AC-PROT-009-01, AC-PROT-009-02, AC-PROT-009-05 | TC-001, TC-002, TC-005 | E2E Flow |
| TC-PROT-DEACT-E2E-002 | Complete Multi-site PWA Deactivation Journey | AC-PROT-009-03, AC-PROT-009-04, AC-PROT-009-05 | TC-003, TC-004, TC-005 | E2E Flow |
| TC-PROT-DEACT-E2E-003 | Emergency Deactivation with Safety Validation | AC-PROT-009-06, AC-PROT-009-11, AC-PROT-009-12, AC-PROT-009-02 | TC-006, TC-011, TC-012, TC-002 | E2E Flow |
| TC-PROT-DEACT-E2E-004 | Offline Worksite Deactivation Journey | AC-PROT-009-09, AC-PROT-009-02, AC-PROT-009-05 | TC-009, TC-002, TC-005 | E2E Flow |
Component Scenario Details
TC-PROT-DEACT-001: Site Protector deactivates worksite with clear frame
Covers: AC-PROT-009-01
- Arrange
- The user is logged in as the acting Site Protector for a worksite.
- The worksite status is
Active. - All workers except the Site Protector are locked off.
- All plant is locked off (clear frame condition).
- Act
- The user selects the
Deactivate Worksiteaction.
- The user selects the
- Assert
- The system displays a confirmation dialog.
- The confirmation dialog explains the deactivation action.
TC-PROT-DEACT-002: Worksite deactivation confirmation and success
Covers: AC-PROT-009-02
- Arrange
- The user is logged in as the acting Site Protector.
- The worksite shows clear frame.
- The deactivation confirmation dialog is displayed.
- Act
- The user confirms the deactivation.
- Assert
- The worksite status changes to
Inactive. - The system displays a success message.
- The worksite status changes to
TC-PROT-DEACT-003: RPO deactivates multi-site PWA when all worksites deactivated
Covers: AC-PROT-009-03
- Arrange
- The user is logged in as the acting RPO for a multi-site PWA.
- The PWA status is
Active. - All associated worksites are
Inactive(deactivated).
- Act
- The user selects the
Deactivate PWAaction.
- The user selects the
- Assert
- The system displays a confirmation dialog.
- The confirmation dialog explains the PWA deactivation action.
TC-PROT-DEACT-004: PWA deactivation confirmation and success
Covers: AC-PROT-009-04
- Arrange
- The user is logged in as the acting RPO.
- All worksites in the PWA are deactivated.
- The PWA deactivation confirmation dialog is displayed.
- Act
- The user confirms the PWA deactivation.
- Assert
- The PWA status changes to
Inactive. - The system displays a success message.
- The PWA status changes to
TC-PROT-DEACT-005: Audit trail records deactivation events
Covers: AC-PROT-009-05
- Arrange
- The user is logged in as the acting Site Protector or RPO.
- A worksite or PWA is ready for deactivation.
- Act
- The user completes the deactivation process.
- Assert
- An audit event is recorded with the user's identifier and timestamp.
- The audit event includes the deactivated entity (worksite or PWA ID).
TC-PROT-DEACT-006: Acting Site Protector sees deactivate action
Covers: AC-PROT-009-06
- Arrange
- The user is logged in as the acting Site Protector for a worksite.
- The worksite shows clear frame (all workers except SP locked off, all plant locked off).
- Act
- The user views the worksite actions.
- Assert
- The
Deactivate Worksiteaction is visible and enabled.
- The
TC-PROT-DEACT-007: Acting RPO sees deactivate PWA action
Covers: AC-PROT-009-07
- Arrange
- The user is logged in as the acting RPO for a PWA.
- All worksites in the PWA are deactivated.
- Act
- The user views the PWA actions.
- Assert
- The
Deactivate PWAaction is visible and enabled.
- The
TC-PROT-DEACT-008: Inactive entities hide active-state actions
Covers: AC-PROT-009-08
- Arrange
- A worksite or PWA has been deactivated (status is
Inactive).
- A worksite or PWA has been deactivated (status is
- Act
- The user views the available actions for the inactive entity.
- Assert
- Actions that require an active state are hidden or disabled.
- Only actions appropriate for inactive entities are shown.
TC-PROT-DEACT-009: Worksite deactivation works offline
Covers: AC-PROT-009-09
- Arrange
- The user is logged in as the acting Site Protector.
- The worksite shows clear frame.
- The device is offline (no network connectivity).
- Act
- The user deactivates the worksite.
- Assert
- The deactivation completes successfully.
- The worksite status changes to
Inactive. - The action is queued for synchronisation when online.
TC-PROT-DEACT-010: PWA deactivation requires online connectivity
Covers: AC-PROT-009-10
- Arrange
- The user is logged in as the acting RPO.
- All worksites in the PWA are deactivated.
- The device is offline (no network connectivity).
- Act
- The user attempts to deactivate the PWA.
- Assert
- The system prevents the deactivation.
- An error message indicates that online connectivity is required.
TC-PROT-DEACT-011: Workers locked on prevents worksite deactivation
Covers: AC-PROT-009-11
- Arrange
- The user is logged in as the acting Site Protector.
- The worksite is
Active. - One or more workers (other than the Site Protector) remain locked on.
- Act
- The user attempts to deactivate the worksite.
- Assert
- The system prevents the deactivation.
- The
Deactivate Worksiteaction is disabled or hidden.
TC-PROT-DEACT-012: Plant locked on prevents worksite deactivation
Covers: AC-PROT-009-12
- Arrange
- The user is logged in as the acting Site Protector.
- The worksite is
Active. - All workers except the Site Protector are locked off.
- One or more plant items remain locked on.
- Act
- The user attempts to deactivate the worksite.
- Assert
- The system prevents the deactivation.
- The
Deactivate Worksiteaction is disabled or hidden.
TC-PROT-DEACT-013: Active worksites prevent PWA deactivation
Covers: AC-PROT-009-13
- Arrange
- The user is logged in as the acting RPO.
- The PWA is
Active. - One or more worksites in the PWA remain
Active(not deactivated).
- Act
- The user attempts to deactivate the PWA.
- Assert
- The system prevents the deactivation.
- The
Deactivate PWAaction is disabled or hidden.
TC-PROT-DEACT-014: Non-acting users cannot access deactivation
Covers: AC-PROT-009-14
- Arrange
- The user is logged in with Site Protector or RPO role.
- The user is NOT the acting Site Protector for the worksite or acting RPO for the PWA.
- Act
- The user views the worksite or PWA actions.
- Assert
- The deactivation actions are hidden or disabled.
- Only the acting protector can access deactivation functionality.
TC-PROT-DEACT-015: RPO deactivates single-site PWA
Covers: AC-PROT-009-15
- Arrange
- The user is logged in as the acting RPO for a single-site PWA.
- The single worksite shows clear frame.
- The PWA status is
Active.
- Act
- The user selects the
Deactivate PWAaction and confirms.
- The user selects the
- Assert
- Both the worksite and PWA status change to
Inactive. - The system displays a success message.
- Both the worksite and PWA status change to
TC-PROT-DEACT-016: Real-time status updates when online
Covers: AC-PROT-009-16
- Arrange
- Multiple users are logged in and viewing the same worksite or PWA.
- All devices are online with network connectivity.
- The worksite or PWA is
Active.
- Act
- The acting Site Protector or RPO deactivates the worksite or PWA.
- Assert
- All other users viewing the entity see the status change to
Inactiveautomatically. - The status update occurs in real-time without requiring page refresh.
- All other users viewing the entity see the status change to
TC-PROT-DEACT-017: Status updates sync when device comes online
Covers: AC-PROT-009-17
- Arrange
- A user is logged in and viewing a worksite on a device that is offline.
- The worksite is
Active. - Another user (acting Site Protector) has a device that is online.
- Act
- The acting Site Protector deactivates the worksite while the first user's device is offline.
- Assert
- The offline device does not show the status change immediately.
- Act
- The offline device regains network connectivity.
- Assert
- The device synchronises with the server.
- The worksite status updates to
Inactiveon the previously offline device. - The user now sees the current status without requiring manual refresh.
End-to-End Flow Scenario Details
TC-PROT-DEACT-E2E-001: Complete Worksite Deactivation Journey
Covers: AC-PROT-009-01, AC-PROT-009-02, AC-PROT-009-05
Composed of: [TC-PROT-DEACT-001], [TC-PROT-DEACT-002], [TC-PROT-DEACT-005]
User Journey: Acting Site Protector deactivates worksite at end of shift
- Arrange
- The user is logged in as the acting Site Protector for a worksite.
- The worksite status is
Active. - All workers except the Site Protector are locked off.
- All plant is locked off (clear frame condition).
- Act
- The user selects the
Deactivate Worksiteaction.
- The user selects the
- Assert
- The system displays a confirmation dialog. (validates TC-PROT-DEACT-001)
- Act
- The user confirms the deactivation.
- Assert
- The worksite status changes to
Inactive. (validates TC-PROT-DEACT-002) - The system displays a success message. (validates TC-PROT-DEACT-002)
- All users viewing the worksite see the status update automatically.
- An audit event is recorded with user ID and timestamp. (validates TC-PROT-DEACT-005)
- The worksite status changes to
Business Value: Ensures the complete deactivation workflow works seamlessly for end-of-shift scenarios.
TC-PROT-DEACT-E2E-002: Complete Multi-site PWA Deactivation Journey
Covers: AC-PROT-009-03, AC-PROT-009-04, AC-PROT-009-05
Composed of: [TC-PROT-DEACT-003], [TC-PROT-DEACT-004], [TC-PROT-DEACT-005]
User Journey: Acting RPO deactivates multi-site PWA after all worksites are deactivated
- Arrange
- The user is logged in as the acting RPO for a multi-site PWA.
- The PWA status is
Active. - All associated worksites have been deactivated by their Site Protectors.
- Act
- The user selects the
Deactivate PWAaction.
- The user selects the
- Assert
- The system displays a confirmation dialog. (validates TC-PROT-DEACT-003)
- Act
- The user confirms the PWA deactivation.
- Assert
- The PWA status changes to
Inactive. (validates TC-PROT-DEACT-004) - The system displays a success message. (validates TC-PROT-DEACT-004)
- All users viewing the PWA see the status update automatically.
- An audit event is recorded with user ID and timestamp. (validates TC-PROT-DEACT-005)
- The PWA status changes to
Business Value: Ensures the complete multi-site PWA deactivation workflow works seamlessly for project completion scenarios.
TC-PROT-DEACT-E2E-003: Emergency Deactivation with Safety Validation
Covers: AC-PROT-009-06, AC-PROT-009-11, AC-PROT-009-12, AC-PROT-009-02
Composed of: [TC-PROT-DEACT-006], [TC-PROT-DEACT-011], [TC-PROT-DEACT-012], [TC-PROT-DEACT-002]
User Journey: Acting Site Protector attempts emergency deactivation but must ensure clear frame first
- Arrange
- The user is logged in as the acting Site Protector for a worksite.
- The worksite status is
Active. - Initially, some workers and plant remain locked on (not clear frame).
- Act
- The user views worksite actions while workers are still locked on.
- Assert
- The
Deactivate Worksiteaction is disabled/hidden. (validates TC-PROT-DEACT-011)
- The
- Act
- All workers (except Site Protector) are locked off, but plant remains locked on.
- Assert
- The
Deactivate Worksiteaction remains disabled/hidden. (validates TC-PROT-DEACT-012)
- The
- Act
- All plant is locked off (clear frame achieved).
- Assert
- The
Deactivate Worksiteaction becomes visible and enabled. (validates TC-PROT-DEACT-006)
- The
- Act
- The user selects and confirms the deactivation.
- Assert
- The worksite status changes to
Inactive. (validates TC-PROT-DEACT-002) - The system displays a success message. (validates TC-PROT-DEACT-002)
- All users viewing the worksite see the status update automatically.
- The worksite status changes to
Business Value: Ensures safety constraints prevent unsafe deactivation while allowing proper emergency procedures.
TC-PROT-DEACT-E2E-004: Offline Worksite Deactivation Journey
Covers: AC-PROT-009-09, AC-PROT-009-02, AC-PROT-009-05
Composed of: [TC-PROT-DEACT-009], [TC-PROT-DEACT-002], [TC-PROT-DEACT-005]
User Journey: Acting Site Protector deactivates worksite while offline, with later synchronisation
- Arrange
- The user is logged in as the acting Site Protector for a worksite.
- The worksite shows clear frame.
- The device is offline (no network connectivity).
- Act
- The user selects and confirms worksite deactivation while offline.
- Assert
- The deactivation completes successfully. (validates TC-PROT-DEACT-009)
- The worksite status changes to
Inactivelocally. (validates TC-PROT-DEACT-002) - The system displays a success message. (validates TC-PROT-DEACT-002)
- The action is queued for synchronisation.
- Act
- The device comes back online.
- Assert
- The deactivation action synchronises to the server.
- All users viewing the worksite see the status update automatically.
- An audit event is recorded with the correct timestamp. (validates TC-PROT-DEACT-005)
Business Value: Ensures worksite deactivation works reliably in areas with poor connectivity, critical for remote rail locations.