Skip to content

MECE Matrix — Plant Operations Test Coverage ​

Requirements Covered ​

  • REQ-PLANT-001: Locking Known Plant On (QR)
  • REQ-PLANT-002: Locking Miscellaneous Plant On (Manually)
  • REQ-PLANT-003: Plant Handover (Operator or MPC)
  • REQ-PLANT-004: Plant Lock-off

MECE Dimensions ​

Dimension 1: User Authority (4 types) ​

TypeCan Lock OnCan HandoverCan Lock OffNotes
Site Protector (Own)✅✅✅Assigned to this worksite
Site Protector (Other)❌❌❌Assigned to different worksite
RPO (Other)❌❌❌Not assigned to this PWA
Worker❌❌❌Read-only view only

Note: RPO (Own) omitted - they can only perform operations if also acting as Site Protector for that worksite, in which case they use Site Protector (Own) authority.


Dimension 2: Plant State (3 types) ​

StateCan Lock OnCan HandoverCan Lock OffNotes
Not on Site✅❌❌Plant available for lock-on
Locked On (Active)❌✅✅Currently on this worksite
Locked On (Elsewhere)❌❌❌On different worksite or PWA (blocks)

Dimension 3: Plant Assignment Complexity (4 types) ​

ConfigurationValid State?Notes
Operator only✅Has Operator, no MPC
Operator + MPC (Different people)✅Standard configuration
Operator + MPC (Same person, different plant)✅One worker assigned to multiple plant
Multiple plant, same assignments✅Worker is Operator/MPC for 2+ plant

Invalid configurations:

  • No assignments - Plant must have Operator
  • MPC only - Operator is mandatory
  • Operator + MPC (Same person) - Validation blocks this

Dimension 4: Operation Type (7 types) ​

OperationDescriptionRequires Plant State
QR Lock-onScan known plant QR codeNot on Site
Manual Lock-onEnter plant details, creates admin recordNot on Site
Handover Operator onlyTransfer Operator role to different workerLocked On (Active)
Handover MPC onlyTransfer MPC role to different workerLocked On (Active)
Handover bothTransfer both Operator and MPC rolesLocked On (Active)
QR Lock-offScan plant QR to removeLocked On (Active)
Manual Lock-offSelect plant to removeLocked On (Active)

Dimension 5: Worker Assignment Context (4 types) ​

ContextCan Assign?Notes
Site Protector only on site✅ SP onlyNo other workers locked on
Site Protector + Workers✅ Multiple optionsStandard scenario
Worker locked on same worksite✅ ValidAvailable for assignment
Worker not locked on❌ BlocksMust be on site first

Dimension 6: Connectivity State (4 types) ​

StateAll Operations Work?Notes
Online✅Real-time sync
Offline✅All operations must work, queued for sync
Online→Offline (during operation)⚠️Graceful handling required
Offline→Online✅Sync queued operations

Theoretical vs. Business-Valid Combinations ​

Calculation ​

  • Dimensions: 6
  • Theoretical combinations: 4 × 3 × 4 × 7 × 4 × 4 = 5,376 combinations

Business-Valid Reductions ​

Authority filters (~75% reduction):

  • Only Site Protector (Own) can perform operations
  • Other authority types all blocked
  • Reduces to ~1,344 valid combinations

State filters (~60% reduction):

  • Lock-on only valid when Not on Site
  • Handover only valid when Locked On (Active)
  • Lock-off only valid when Locked On (Active)
  • Reduces to ~537 valid combinations

Assignment context filters (~50% reduction):

  • Some contexts only relevant for specific operations
  • Reduces to ~269 valid combinations

Estimated business-valid scenarios: ~50 test cases


Must Cover Scenarios (Priority Order) ​

Core Functionality (Lock-on Plant) ​

  1. QR lock-on with Operator assignment (online)
  2. QR lock-on with Operator + MPC assignment (online)
  3. Manual lock-on creating new plant record with Operator
  4. Manual lock-on with Operator + MPC
  5. Site Protector as Operator for plant
  6. Site Protector as MPC for plant
  7. Offline QR lock-on succeeds
  8. Offline manual lock-on succeeds

Core Functionality (Handover Plant) ​

  1. Handover Operator only to different worker
  2. Handover MPC only to different worker
  3. Handover both Operator and MPC together
  4. Handover offline succeeds

Core Functionality (Lock-off Plant) ​

  1. QR lock-off succeeds
  2. Manual lock-off succeeds
  3. Lock-off clears Operator and MPC assignments
  4. Lock-off when worker operates multiple plant (only clears this plant)
  5. Offline lock-off succeeds

Validation Rules ​

  1. Block same person as Operator AND MPC (lock-on)
  2. Block plant already locked on elsewhere
  3. Block lock-on when already locked on (same plant)
  4. Require Operator assignment (mandatory)
  5. Allow skipping MPC assignment (optional)

Permission Boundaries ​

  1. Site Protector (Other) cannot lock on plant
  2. RPO cannot lock on plant
  3. Only Site Protector on site (no workers) - can assign self as Operator

Audit Trail ​

  1. Audit data captures lock on/off, method, Operator, MPC, timestamp, handover/role transfers

Test Coverage Status ​

Summary ​

  • Total must-cover scenarios: 26
  • Current test coverage: 0%
  • Target coverage: 100%

Coverage by Requirement ​

RequirementMust CoverCovered%
REQ-PLANT-001 (QR Lock-on)800%
REQ-PLANT-002 (Manual Lock-on)500%
REQ-PLANT-003 (Handover)500%
REQ-PLANT-004 (Lock-off)600%
Cross-cutting (Validation, Permissions, States)2500%

Notes ​

Simplifications Made ​

  1. Removed Plant Type dimension - V/MP/HRV are information-only, don't affect behaviour
  2. Removed detailed Validation dimension - Integrated into must-cover scenarios
  3. Removed invalid configurations - No assignments, MPC only, same person as both
  4. Removed RPO (Own) authority - Equivalent to Site Protector (Own) when applicable
  5. Removed notification scenarios - No worker-facing app exists

Handover UI Behaviour ​

When Site Protector initiates handover:

  1. Current Operator displayed
  2. Current MPC displayed (if assigned)
  3. Dropdown 1: Select new Operator (or keep current)
  4. Dropdown 2: Select new MPC (or keep current, or clear)
  5. Both can be changed independently in single handover operation

Worker Assignment Rules ​

For both Operator and MPC assignment:

  • Worker must be currently locked on to same worksite
  • Site Protector can assign themselves
  • Same person cannot be both Operator AND MPC for same plant
  • One person can be Operator or MPC for multiple different plant

Internal use only