# 4. Simulation Analytics — Test Cases

User Type: **Super Administrator**
Source: *Mi Digital Academy - Education CRM Features Document*
Spec: simulation_analytics.md — every feature, sub-feature, and rule covered

## Test Execution Policy

- Zero tolerance: any deviation from the documented behavior is a defect.
- Every failed test is logged with a Bug ID, the feature, the sub-feature, the expected vs actual result, and the severity; 100% of bugs are fixed before the group passes.
- 100% pass rate is required for the group to be marked complete.

## Coverage Matrix

| Feature | Sub-feature / Rule | Test IDs |
|---------|--------------------|----------|
| 4.1 Simulation Usage | Usage tracking | TC-SA-EH-04-001 |
| 4.1 Simulation Usage | Usage metrics | TC-SA-EH-04-002 |
| 4.1 Simulation Usage | Usage trends | TC-SA-EH-04-003 |
| 4.1 Simulation Usage | Usage breakdown | TC-SA-EH-04-004 |
| 4.1 Simulation Usage | Usage log | TC-SA-EH-04-005 |
| 4.1 Simulation Usage | Rule: a usage with no simulations shows an empty state | TC-SA-EH-04-006 |
| 4.1 Simulation Usage | Rule: usage actions are audit-logged | TC-SA-EH-04-007 |
| 4.2 Performance Tracking | Performance tracking | TC-SA-EH-04-008 |
| 4.2 Performance Tracking | Performance metrics | TC-SA-EH-04-009 |
| 4.2 Performance Tracking | Performance trends | TC-SA-EH-04-010 |
| 4.2 Performance Tracking | Performance breakdown | TC-SA-EH-04-011 |
| 4.2 Performance Tracking | Performance log | TC-SA-EH-04-012 |
| 4.2 Performance Tracking | Rule: a performance with no simulations shows an empty state | TC-SA-EH-04-013 |
| 4.2 Performance Tracking | Rule: performance actions are audit-logged | TC-SA-EH-04-014 |
| 4.3 Stress Metrics | Stress tracking | TC-SA-EH-04-015 |
| 4.3 Stress Metrics | Stress metrics | TC-SA-EH-04-016 |
| 4.3 Stress Metrics | Stress trends | TC-SA-EH-04-017 |
| 4.3 Stress Metrics | Stress breakdown | TC-SA-EH-04-018 |
| 4.3 Stress Metrics | Stress log | TC-SA-EH-04-019 |
| 4.3 Stress Metrics | Rule: a stress with no simulations shows an empty state | TC-SA-EH-04-020 |
| 4.3 Stress Metrics | Rule: stress actions are audit-logged | TC-SA-EH-04-021 |
| 4.4 Analytics Export | Export enablement | TC-SA-EH-04-022 |
| 4.4 Analytics Export | Export format | TC-SA-EH-04-023 |
| 4.4 Analytics Export | Export scope | TC-SA-EH-04-024 |
| 4.4 Analytics Export | Export status | TC-SA-EH-04-025 |
| 4.4 Analytics Export | Export log | TC-SA-EH-04-026 |
| 4.4 Analytics Export | Rule: an export with no data shows an empty state | TC-SA-EH-04-027 |
| 4.4 Analytics Export | Rule: export actions are audit-logged | TC-SA-EH-04-028 |

### TC-SA-EH-04-001 — Usage tracking
**Type:** Positive
**Covers:** 4.1 → Usage tracking: the tracking of the simulation usage
**Preconditions:** A Super Admin account is active; simulations are used.
**Steps:**
1. As a Super Admin, open the usage tracking.
2. Observe the result and verify the full behavior: the usage is tracked.
**Expected Result:** The tracking works — the usage is tracked, delivered exactly as documented.
**Priority:** High

### TC-SA-EH-04-002 — Usage metrics
**Type:** Positive
**Covers:** 4.1 → Usage metrics: the metrics of the usage
**Preconditions:** A Super Admin account is active; usage exists.
**Steps:**
1. As a Super Admin, view the usage metrics.
2. Observe the result and verify the full behavior: the metrics are shown.
**Expected Result:** The metrics are shown — they are accurate, delivered exactly as documented.
**Priority:** High

### TC-SA-EH-04-003 — Usage trends
**Type:** Positive
**Covers:** 4.1 → Usage trends: the trends of the usage
**Preconditions:** A Super Admin account is active; usage exists over time.
**Steps:**
1. As a Super Admin, view the usage trends.
2. Observe the result and verify the full behavior: the trends are shown.
**Expected Result:** The trends are shown — they are accurate, delivered exactly as documented.
**Priority:** Medium

### TC-SA-EH-04-004 — Usage breakdown
**Type:** Positive
**Covers:** 4.1 → Usage breakdown: the breakdown of the usage
**Preconditions:** A Super Admin account is active; usage exists.
**Steps:**
1. As a Super Admin, view the usage breakdown.
2. Observe the result and verify the full behavior: the breakdown is shown.
**Expected Result:** The breakdown is shown — it is accurate, delivered exactly as documented.
**Priority:** Medium

### TC-SA-EH-04-005 — Usage log
**Type:** Positive
**Covers:** 4.1 → Usage log: the log of the usage
**Preconditions:** A Super Admin account is active; usage events exist.
**Steps:**
1. As a Super Admin, open the usage log.
2. Observe the result and verify the full behavior: the events are listed.
**Expected Result:** The log is shown — the events are listed, delivered exactly as documented.
**Priority:** Low

### TC-SA-EH-04-006 — Rule: a usage with no simulations shows an empty state
**Type:** Positive
**Covers:** 4.1 → Rule: a usage with no simulations shows an empty state
**Preconditions:** A Super Admin account is active; no simulations exist.
**Steps:**
1. As a Super Admin, open the usage.
2. Observe the result and verify the full behavior: an empty state is shown.
**Expected Result:** The empty state is shown — it is displayed, delivered exactly as documented.
**Priority:** Low

### TC-SA-EH-04-007 — Rule: usage actions are audit-logged
**Type:** Positive
**Covers:** 4.1 → Audit logging of simulation usage
**Preconditions:** A Super Admin account is active; the audit log is accessible.
**Steps:**
1. As a Super Admin, view the usage and save.
2. Open the audit log.
3. Observe the result and verify the full behavior: the action is recorded with the actor and timestamp.
**Expected Result:** The action is audit-logged — the actor and timestamp are recorded, delivered exactly as documented.
**Priority:** High

### TC-SA-EH-04-008 — Performance tracking
**Type:** Positive
**Covers:** 4.2 → Performance tracking: the tracking of the performance
**Preconditions:** A Super Admin account is active; simulations exist.
**Steps:**
1. As a Super Admin, open the performance tracking.
2. Observe the result and verify the full behavior: the performance is tracked.
**Expected Result:** The tracking works — the performance is tracked, delivered exactly as documented.
**Priority:** High

### TC-SA-EH-04-009 — Performance metrics
**Type:** Positive
**Covers:** 4.2 → Performance metrics: the metrics of the performance
**Preconditions:** A Super Admin account is active; performance exists.
**Steps:**
1. As a Super Admin, view the performance metrics.
2. Observe the result and verify the full behavior: the metrics are shown.
**Expected Result:** The metrics are shown — they are accurate, delivered exactly as documented.
**Priority:** High

### TC-SA-EH-04-010 — Performance trends
**Type:** Positive
**Covers:** 4.2 → Performance trends: the trends of the performance
**Preconditions:** A Super Admin account is active; performance exists over time.
**Steps:**
1. As a Super Admin, view the performance trends.
2. Observe the result and verify the full behavior: the trends are shown.
**Expected Result:** The trends are shown — they are accurate, delivered exactly as documented.
**Priority:** Medium

### TC-SA-EH-04-011 — Performance breakdown
**Type:** Positive
**Covers:** 4.2 → Performance breakdown: the breakdown of the performance
**Preconditions:** A Super Admin account is active; performance exists.
**Steps:**
1. As a Super Admin, view the performance breakdown.
2. Observe the result and verify the full behavior: the breakdown is shown.
**Expected Result:** The breakdown is shown — it is accurate, delivered exactly as documented.
**Priority:** Medium

### TC-SA-EH-04-012 — Performance log
**Type:** Positive
**Covers:** 4.2 → Performance log: the log of the performance
**Preconditions:** A Super Admin account is active; performance events exist.
**Steps:**
1. As a Super Admin, open the performance log.
2. Observe the result and verify the full behavior: the events are listed.
**Expected Result:** The log is shown — the events are listed, delivered exactly as documented.
**Priority:** Low

### TC-SA-EH-04-013 — Rule: a performance with no simulations shows an empty state
**Type:** Positive
**Covers:** 4.2 → Rule: a performance with no simulations shows an empty state
**Preconditions:** A Super Admin account is active; no simulations exist.
**Steps:**
1. As a Super Admin, open the performance.
2. Observe the result and verify the full behavior: an empty state is shown.
**Expected Result:** The empty state is shown — it is displayed, delivered exactly as documented.
**Priority:** Low

### TC-SA-EH-04-014 — Rule: performance actions are audit-logged
**Type:** Positive
**Covers:** 4.2 → Audit logging of performance tracking
**Preconditions:** A Super Admin account is active; the audit log is accessible.
**Steps:**
1. As a Super Admin, view the performance and save.
2. Open the audit log.
3. Observe the result and verify the full behavior: the action is recorded with the actor and timestamp.
**Expected Result:** The action is audit-logged — the actor and timestamp are recorded, delivered exactly as documented.
**Priority:** High

### TC-SA-EH-04-015 — Stress tracking
**Type:** Positive
**Covers:** 4.3 → Stress tracking: the tracking of the stress
**Preconditions:** A Super Admin account is active; simulations exist.
**Steps:**
1. As a Super Admin, open the stress tracking.
2. Observe the result and verify the full behavior: the stress is tracked.
**Expected Result:** The tracking works — the stress is tracked, delivered exactly as documented.
**Priority:** High

### TC-SA-EH-04-016 — Stress metrics
**Type:** Positive
**Covers:** 4.3 → Stress metrics: the metrics of the stress
**Preconditions:** A Super Admin account is active; stress exists.
**Steps:**
1. As a Super Admin, view the stress metrics.
2. Observe the result and verify the full behavior: the metrics are shown.
**Expected Result:** The metrics are shown — they are accurate, delivered exactly as documented.
**Priority:** High

### TC-SA-EH-04-017 — Stress trends
**Type:** Positive
**Covers:** 4.3 → Stress trends: the trends of the stress
**Preconditions:** A Super Admin account is active; stress exists over time.
**Steps:**
1. As a Super Admin, view the stress trends.
2. Observe the result and verify the full behavior: the trends are shown.
**Expected Result:** The trends are shown — they are accurate, delivered exactly as documented.
**Priority:** Medium

### TC-SA-EH-04-018 — Stress breakdown
**Type:** Positive
**Covers:** 4.3 → Stress breakdown: the breakdown of the stress
**Preconditions:** A Super Admin account is active; stress exists.
**Steps:**
1. As a Super Admin, view the stress breakdown.
2. Observe the result and verify the full behavior: the breakdown is shown.
**Expected Result:** The breakdown is shown — it is accurate, delivered exactly as documented.
**Priority:** Medium

### TC-SA-EH-04-019 — Stress log
**Type:** Positive
**Covers:** 4.3 → Stress log: the log of the stress
**Preconditions:** A Super Admin account is active; stress events exist.
**Steps:**
1. As a Super Admin, open the stress log.
2. Observe the result and verify the full behavior: the events are listed.
**Expected Result:** The log is shown — the events are listed, delivered exactly as documented.
**Priority:** Low

### TC-SA-EH-04-020 — Rule: a stress with no simulations shows an empty state
**Type:** Positive
**Covers:** 4.3 → Rule: a stress with no simulations shows an empty state
**Preconditions:** A Super Admin account is active; no simulations exist.
**Steps:**
1. As a Super Admin, open the stress.
2. Observe the result and verify the full behavior: an empty state is shown.
**Expected Result:** The empty state is shown — it is displayed, delivered exactly as documented.
**Priority:** Low

### TC-SA-EH-04-021 — Rule: stress actions are audit-logged
**Type:** Positive
**Covers:** 4.3 → Audit logging of stress metrics
**Preconditions:** A Super Admin account is active; the audit log is accessible.
**Steps:**
1. As a Super Admin, view the stress and save.
2. Open the audit log.
3. Observe the result and verify the full behavior: the action is recorded with the actor and timestamp.
**Expected Result:** The action is audit-logged — the actor and timestamp are recorded, delivered exactly as documented.
**Priority:** High

### TC-SA-EH-04-022 — Export enablement
**Type:** Positive
**Covers:** 4.4 → Export enablement: the enablement of the analytics export
**Preconditions:** A Super Admin account is active.
**Steps:**
1. As a Super Admin, enable the analytics export and save.
2. Observe the result and verify the full behavior: the export is enabled.
**Expected Result:** The enablement works — the export is enabled, delivered exactly as documented.
**Priority:** High

### TC-SA-EH-04-023 — Export format
**Type:** Positive
**Covers:** 4.4 → Export format: the format of the export
**Preconditions:** A Super Admin account is active; the export is enabled.
**Steps:**
1. As a Super Admin, set the export format and save.
2. Observe the result and verify the full behavior: the format is applied.
**Expected Result:** The format is set — it is applied, delivered exactly as documented.
**Priority:** Medium

### TC-SA-EH-04-024 — Export scope
**Type:** Positive
**Covers:** 4.4 → Export scope: the scope of the export
**Preconditions:** A Super Admin account is active; the export is enabled.
**Steps:**
1. As a Super Admin, set the export scope and save.
2. Observe the result and verify the full behavior: the scope is applied.
**Expected Result:** The scope is set — it is applied, delivered exactly as documented.
**Priority:** High

### TC-SA-EH-04-025 — Export status
**Type:** Positive
**Covers:** 4.4 → Export status: the status of the export
**Preconditions:** A Super Admin account is active; an export exists.
**Steps:**
1. As a Super Admin, view the export status.
2. Observe the result and verify the full behavior: the status is shown.
**Expected Result:** The status is shown — it reflects the state, delivered exactly as documented.
**Priority:** Low

### TC-SA-EH-04-026 — Export log
**Type:** Positive
**Covers:** 4.4 → Export log: the log of the exports
**Preconditions:** A Super Admin account is active; exports exist.
**Steps:**
1. As a Super Admin, open the export log.
2. Observe the result and verify the full behavior: the exports are listed.
**Expected Result:** The log is shown — the exports are listed, delivered exactly as documented.
**Priority:** Low

### TC-SA-EH-04-027 — Rule: an export with no data shows an empty state
**Type:** Positive
**Covers:** 4.4 → Rule: an export with no data shows an empty state
**Preconditions:** A Super Admin account is active; no data exists.
**Steps:**
1. As a Super Admin, open the export.
2. Observe the result and verify the full behavior: an empty state is shown.
**Expected Result:** The empty state is shown — it is displayed, delivered exactly as documented.
**Priority:** Low

### TC-SA-EH-04-028 — Rule: export actions are audit-logged
**Type:** Positive
**Covers:** 4.4 → Audit logging of analytics export
**Preconditions:** A Super Admin account is active; the audit log is accessible.
**Steps:**
1. As a Super Admin, enable the export and save.
2. Open the audit log.
3. Observe the result and verify the full behavior: the action is recorded with the actor and timestamp.
**Expected Result:** The action is audit-logged — the actor and timestamp are recorded, delivered exactly as documented.
**Priority:** High
