Skip to content

MECE Coverage Matrix — Deactivating Worksites and Projects ​

This matrix ensures Mutually Exclusive, Collectively Exhaustive test coverage for REQ-PROT-009.

MECE Dimensions ​

Dimension 1: User Authority ​

Authority TypeDescriptionCan Deactivate
Acting Site Protector (Own)Site Protector assigned to this specific worksite✅ Yes
Acting Site Protector (Other)Site Protector assigned to different worksite❌ No
Non-Acting Site ProtectorSite Protector not currently assigned❌ No
Acting RPO (Own)RPO assigned to this specific PWA✅ Yes
Acting RPO (Other)RPO assigned to different PWA❌ No
Non-Acting RPORPO not currently assigned❌ No
Other RolesWorkers, admins, etc.❌ No

Dimension 2: Entity State ​

State TypeWorkersPlantSite ProtectorClear Frame
Clear FrameAll locked offAll locked offStill on✅ Yes
Workers OnlySome locked onAll locked offStill on❌ No
Plant OnlyAll locked offSome locked onStill on❌ No
Workers + PlantSome locked onSome locked onStill on❌ No
Empty WorksiteNone presentNone presentStill on✅ Yes

Dimension 3: Connectivity State ​

ConnectivityDescriptionReal-time UpdatesPWA Deactivation
OnlineDevice has network connection✅ Yes✅ Allowed
OfflineDevice has no network connection❌ No❌ Blocked
Online→OfflineLoses connection during process❌ No⚠️ Failure
Offline→OnlineRegains connection✅ Sync✅ Allowed

Dimension 4: PWA Type ​

PWA TypeWorksitesDeactivation Flow
Single-Site1 worksiteWorksite + PWA together
Multi-Site (All Active)2+ worksites, all activeBlock PWA deactivation
Multi-Site (All Inactive)2+ worksites, all inactiveAllow PWA deactivation
Multi-Site (Mixed)2+ worksites, some activeBlock PWA deactivation

MECE Test Coverage Matrix ​

Worksite Deactivation Tests ​

Test IDAuthorityEntity StateConnectivityExpected ResultStatus
TC-PROT-DEACT-001Acting SP (Own)Clear FrameOnline✅ Prompt shown✅ Covered
TC-PROT-DEACT-002Acting SP (Own)Clear FrameOnline✅ Deactivation succeeds✅ Covered
TC-PROT-DEACT-006Acting SP (Own)Clear FrameOnline✅ Action visible✅ Covered
TC-PROT-DEACT-009Acting SP (Own)Clear FrameOffline✅ Deactivation succeeds✅ Covered
TC-PROT-DEACT-011Acting SP (Own)Workers OnlyOnline❌ Action hidden✅ Covered
TC-PROT-DEACT-012Acting SP (Own)Plant OnlyOnline❌ Action hidden✅ Covered
TC-PROT-DEACT-014Non-Acting SPClear FrameOnline❌ Access denied✅ Covered
TC-PROT-DEACT-017Acting SP (Own)Clear FrameOffline→Online✅ Sync occurs✅ Covered
TC-PROT-DEACT-018Acting SP (Other)Clear FrameOnline❌ Access denied❌ MISSING
TC-PROT-DEACT-019Acting SP (Own)Clear FrameOnline→Offline⚠️ Failure handling❌ MISSING
TC-PROT-DEACT-020Acting SP (Own)Workers + PlantOnline❌ Action hidden❌ MISSING
TC-PROT-DEACT-021Acting SP (Own)Empty WorksiteOnline✅ Deactivation succeeds❌ MISSING

PWA Deactivation Tests ​

Test IDAuthorityPWA TypeConnectivityExpected ResultStatus
TC-PROT-DEACT-003Acting RPO (Own)Multi-Site (All Inactive)Online✅ Prompt shown✅ Covered
TC-PROT-DEACT-004Acting RPO (Own)Multi-Site (All Inactive)Online✅ Deactivation succeeds✅ Covered
TC-PROT-DEACT-007Acting RPO (Own)Multi-Site (All Inactive)Online✅ Action visible✅ Covered
TC-PROT-DEACT-010Acting RPO (Own)Multi-Site (All Inactive)Offline❌ Access denied✅ Covered
TC-PROT-DEACT-013Acting RPO (Own)Multi-Site (Some Active)Online❌ Action hidden✅ Covered
TC-PROT-DEACT-015Acting RPO (Own)Single-SiteOnline✅ Deactivation succeeds✅ Covered
TC-PROT-DEACT-022Acting RPO (Other)Multi-Site (All Inactive)Online❌ Access denied❌ MISSING
TC-PROT-DEACT-023Non-Acting RPOMulti-Site (All Inactive)Online❌ Access denied❌ MISSING
TC-PROT-DEACT-024Acting RPO (Own)Multi-Site (All Inactive)Online→Offline⚠️ Failure handling❌ MISSING

Real-time Updates Tests ​

Test IDConnectivityUpdate TypeExpected ResultStatus
TC-PROT-DEACT-016OnlineStatus change✅ Real-time update✅ Covered
TC-PROT-DEACT-017Offline→OnlineMissed updates✅ Sync on reconnect✅ Covered
TC-PROT-DEACT-025Mixed (some online, some offline)Status change✅ Partial real-time❌ MISSING

MECE Completeness Checklist ​

✅ Dimensions Defined ​

  • [x] User Authority (7 types)
  • [x] Entity State (5 types)
  • [x] Connectivity State (4 types)
  • [x] PWA Type (4 types)

✅ Coverage Assessment ​

  • Total Possible Combinations: 560 (7×5×4×4)
  • Relevant Combinations: 28 (filtered for business logic)
  • Currently Covered: 17
  • Missing: 11
  • Coverage: 61% → Target: 100%

❌ Missing Test Scenarios ​

Authority Boundary Tests ​

  • TC-PROT-DEACT-018: Acting SP tries to deactivate other SP's worksite
  • TC-PROT-DEACT-022: Acting RPO tries to deactivate other RPO's PWA
  • TC-PROT-DEACT-023: Non-acting RPO tries to deactivate PWA

State Combination Tests ​

  • TC-PROT-DEACT-020: Both workers and plant locked on
  • TC-PROT-DEACT-021: Empty worksite (only acting SP remains)

Connectivity Failure Tests ​

  • TC-PROT-DEACT-019: Worksite deactivation during connectivity loss
  • TC-PROT-DEACT-024: PWA deactivation during connectivity loss
  • TC-PROT-DEACT-025: Mixed connectivity real-time updates

MECE Verification Process ​

1. Dimension Completeness Check ​

  • [ ] All user authority types identified
  • [ ] All entity states identified
  • [ ] All connectivity states identified
  • [ ] All PWA types identified

2. Combination Coverage Check ​

  • [ ] All relevant combinations have tests
  • [ ] No business-invalid combinations tested
  • [ ] Edge cases explicitly covered

3. Mutual Exclusivity Check ​

  • [ ] No overlapping test scenarios
  • [ ] Each test covers one unique combination
  • [ ] Clear boundaries between test cases

4. Collective Exhaustivity Check ​

  • [ ] All acceptance criteria covered
  • [ ] All error conditions covered
  • [ ] All success paths covered

Next Steps to Achieve 100% MECE ​

  1. Add Missing Authority Tests (TC-018, TC-022, TC-023)
  2. Add Missing State Tests (TC-020, TC-021)
  3. Add Missing Connectivity Tests (TC-019, TC-024, TC-025)
  4. Verify No Gaps in Matrix
  5. Update Coverage Percentage

Target: 100% MECE Coverage = 28/28 scenarios tested

Internal use only