# 4. Career Analytics — Test Cases

User Type: **Super Administrator**
Source: *Mi Digital Academy - Education CRM Features Document*
Spec: career_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 Path Popularity | Path views | TC-SA-CG-04-001 |
| 4.1 Path Popularity | Path interest | TC-SA-CG-04-002 |
| 4.1 Path Popularity | Path enrollment | TC-SA-CG-04-003 |
| 4.1 Path Popularity | Popularity ranking | TC-SA-CG-04-004 |
| 4.1 Path Popularity | Per-institute breakdown | TC-SA-CG-04-005 |
| 4.1 Path Popularity | Rule: a report is exportable in CSV | TC-SA-CG-04-006 |
| 4.1 Path Popularity | Rule: report generation is audit-logged | TC-SA-CG-04-007 |
| 4.2 Aptitude Distribution | Dimension distribution | TC-SA-CG-04-008 |
| 4.2 Aptitude Distribution | Strength clusters | TC-SA-CG-04-009 |
| 4.2 Aptitude Distribution | Population overview | TC-SA-CG-04-010 |
| 4.2 Aptitude Distribution | Per-institute breakdown | TC-SA-CG-04-011 |
| 4.2 Aptitude Distribution | Distribution trend | TC-SA-CG-04-012 |
| 4.2 Aptitude Distribution | Rule: a report is exportable in CSV | TC-SA-CG-04-013 |
| 4.2 Aptitude Distribution | Rule: report generation is audit-logged | TC-SA-CG-04-014 |
| 4.3 Recommendation Effectiveness | Acceptance rate | TC-SA-CG-04-015 |
| 4.3 Recommendation Effectiveness | Action rate | TC-SA-CG-04-016 |
| 4.3 Recommendation Effectiveness | Path completion | TC-SA-CG-04-017 |
| 4.3 Recommendation Effectiveness | Effectiveness by rule | TC-SA-CG-04-018 |
| 4.3 Recommendation Effectiveness | Effectiveness trend | TC-SA-CG-04-019 |
| 4.3 Recommendation Effectiveness | Rule: a report is exportable in CSV | TC-SA-CG-04-020 |
| 4.3 Recommendation Effectiveness | Rule: report generation is audit-logged | TC-SA-CG-04-021 |
| 4.4 Career Outcome Tracking | Outcome recording | TC-SA-CG-04-022 |
| 4.4 Career Outcome Tracking | Outcome categories | TC-SA-CG-04-023 |
| 4.4 Career Outcome Tracking | Outcome by path | TC-SA-CG-04-024 |
| 4.4 Career Outcome Tracking | Outcome rate | TC-SA-CG-04-025 |
| 4.4 Career Outcome Tracking | Outcome trend | TC-SA-CG-04-026 |
| 4.4 Career Outcome Tracking | Rule: a report is exportable in CSV | TC-SA-CG-04-027 |
| 4.4 Career Outcome Tracking | Rule: report generation is audit-logged | TC-SA-CG-04-028 |

### TC-SA-CG-04-001 — Path views
**Type:** Positive
**Covers:** 4.1 → Path views: the views of the career paths
**Preconditions:** A Super Admin account is active; path views exist.
**Steps:**
1. As a Super Admin, open the path popularity analytics.
2. Observe the result and verify the full behavior: the path views are shown.
**Expected Result:** The views are shown — the count is accurate, delivered exactly as documented.
**Priority:** High

### TC-SA-CG-04-002 — Path interest
**Type:** Positive
**Covers:** 4.1 → Path interest: the learners expressing interest in a path
**Preconditions:** A Super Admin account is active; learners have expressed interest.
**Steps:**
1. As a Super Admin, review the path interest.
2. Observe the result and verify the full behavior: the interest count is shown.
**Expected Result:** The interest is shown — the count is accurate, delivered exactly as documented.
**Priority:** High

### TC-SA-CG-04-003 — Path enrollment
**Type:** Positive
**Covers:** 4.1 → Path enrollment: the enrollments aligned to a path
**Preconditions:** A Super Admin account is active; enrollments exist.
**Steps:**
1. As a Super Admin, review the path enrollment.
2. Observe the result and verify the full behavior: the enrollment count is shown.
**Expected Result:** The enrollment is shown — the count is accurate, delivered exactly as documented.
**Priority:** Medium

### TC-SA-CG-04-004 — Popularity ranking
**Type:** Positive
**Covers:** 4.1 → Popularity ranking: the ranking of the paths by popularity
**Preconditions:** A Super Admin account is active; multiple paths have interest.
**Steps:**
1. As a Super Admin, view the popularity ranking.
2. Observe the result and verify the full behavior: the paths are ordered by interest.
**Expected Result:** The ranking is shown — the paths are ordered, delivered exactly as documented.
**Priority:** Medium

### TC-SA-CG-04-005 — Per-institute breakdown
**Type:** Positive
**Covers:** 4.1 → Per-institute breakdown: the popularity per institute
**Preconditions:** A Super Admin account is active; popularity exists for multiple institutes.
**Steps:**
1. As a Super Admin, view the per-institute breakdown.
2. Observe the result and verify the full behavior: the popularity is separated by institute.
**Expected Result:** The breakdown is shown — the institutes are separated, delivered exactly as documented.
**Priority:** Medium

### TC-SA-CG-04-006 — Rule: a report is exportable in CSV
**Type:** Positive
**Covers:** 4.1 → Rule: a report is exportable in CSV
**Preconditions:** A Super Admin account is active; the report has data.
**Steps:**
1. As a Super Admin, export the report to CSV.
2. Open the file.
3. Observe the result and verify the full behavior: the data is present and correct.
**Expected Result:** The export works — the CSV contains the data, delivered exactly as documented.
**Priority:** Medium

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

### TC-SA-CG-04-008 — Dimension distribution
**Type:** Positive
**Covers:** 4.2 → Dimension distribution: the distribution of scores per dimension
**Preconditions:** A Super Admin account is active; aptitude scores exist.
**Steps:**
1. As a Super Admin, open the aptitude distribution analytics.
2. Observe the result and verify the full behavior: the spread per dimension is shown.
**Expected Result:** The distribution is shown — it reflects the spread, delivered exactly as documented.
**Priority:** High

### TC-SA-CG-04-009 — Strength clusters
**Type:** Positive
**Covers:** 4.2 → Strength clusters: the clusters of common strengths
**Preconditions:** A Super Admin account is active; aptitude profiles exist.
**Steps:**
1. As a Super Admin, view the strength clusters.
2. Observe the result and verify the full behavior: the clusters are shown.
**Expected Result:** The clusters are shown — the groups are visible, delivered exactly as documented.
**Priority:** Medium

### TC-SA-CG-04-010 — Population overview
**Type:** Positive
**Covers:** 4.2 → Population overview: the overview of the aptitude population
**Preconditions:** A Super Admin account is active; aptitude profiles exist.
**Steps:**
1. As a Super Admin, view the population overview.
2. Observe the result and verify the full behavior: the overview is shown.
**Expected Result:** The overview is shown — it summarizes the population, delivered exactly as documented.
**Priority:** Medium

### TC-SA-CG-04-011 — Per-institute breakdown
**Type:** Positive
**Covers:** 4.2 → Per-institute breakdown: the distribution per institute
**Preconditions:** A Super Admin account is active; distribution exists for multiple institutes.
**Steps:**
1. As a Super Admin, view the per-institute breakdown.
2. Observe the result and verify the full behavior: the distribution is separated by institute.
**Expected Result:** The breakdown is shown — the institutes are separated, delivered exactly as documented.
**Priority:** Medium

### TC-SA-CG-04-012 — Distribution trend
**Type:** Positive
**Covers:** 4.2 → Distribution trend: the distribution over time
**Preconditions:** A Super Admin account is active; distribution exists over time.
**Steps:**
1. As a Super Admin, view the distribution trend.
2. Observe the result and verify the full behavior: the change over time is shown.
**Expected Result:** The trend is shown — it reflects the change, delivered exactly as documented.
**Priority:** Low

### TC-SA-CG-04-013 — Rule: a report is exportable in CSV
**Type:** Positive
**Covers:** 4.2 → Rule: a report is exportable in CSV
**Preconditions:** A Super Admin account is active; the report has data.
**Steps:**
1. As a Super Admin, export the report to CSV.
2. Open the file.
3. Observe the result and verify the full behavior: the data is present and correct.
**Expected Result:** The export works — the CSV contains the data, delivered exactly as documented.
**Priority:** Medium

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

### TC-SA-CG-04-015 — Acceptance rate
**Type:** Positive
**Covers:** 4.3 → Acceptance rate: the rate of learners accepting a recommendation
**Preconditions:** A Super Admin account is active; recommendations have been accepted.
**Steps:**
1. As a Super Admin, open the recommendation effectiveness analytics.
2. Observe the result and verify the full behavior: the acceptance rate is shown.
**Expected Result:** The rate is shown — it is computed, delivered exactly as documented.
**Priority:** High

### TC-SA-CG-04-016 — Action rate
**Type:** Positive
**Covers:** 4.3 → Action rate: the rate of learners acting on a recommendation
**Preconditions:** A Super Admin account is active; learners have acted on recommendations.
**Steps:**
1. As a Super Admin, review the action rate.
2. Observe the result and verify the full behavior: the rate is the actions over the acceptances.
**Expected Result:** The rate is shown — it is computed, delivered exactly as documented.
**Priority:** High

### TC-SA-CG-04-017 — Path completion
**Type:** Positive
**Covers:** 4.3 → Path completion: the completion of the recommended path
**Preconditions:** A Super Admin account is active; learners have completed recommended paths.
**Steps:**
1. As a Super Admin, review the path completion.
2. Observe the result and verify the full behavior: the completion count is shown.
**Expected Result:** The completion is shown — the count is accurate, delivered exactly as documented.
**Priority:** Medium

### TC-SA-CG-04-018 — Effectiveness by rule
**Type:** Positive
**Covers:** 4.3 → Effectiveness by rule: the effectiveness per recommendation rule
**Preconditions:** A Super Admin account is active; multiple rules have produced recommendations.
**Steps:**
1. As a Super Admin, view the effectiveness by rule.
2. Observe the result and verify the full behavior: the effectiveness is separated per rule.
**Expected Result:** The breakdown is shown — the rules are separated, delivered exactly as documented.
**Priority:** Medium

### TC-SA-CG-04-019 — Effectiveness trend
**Type:** Positive
**Covers:** 4.3 → Effectiveness trend: the effectiveness over time
**Preconditions:** A Super Admin account is active; effectiveness exists over time.
**Steps:**
1. As a Super Admin, view the effectiveness trend.
2. Observe the result and verify the full behavior: the change over time is shown.
**Expected Result:** The trend is shown — it reflects the change, delivered exactly as documented.
**Priority:** Low

### TC-SA-CG-04-020 — Rule: a report is exportable in CSV
**Type:** Positive
**Covers:** 4.3 → Rule: a report is exportable in CSV
**Preconditions:** A Super Admin account is active; the report has data.
**Steps:**
1. As a Super Admin, export the report to CSV.
2. Open the file.
3. Observe the result and verify the full behavior: the data is present and correct.
**Expected Result:** The export works — the CSV contains the data, delivered exactly as documented.
**Priority:** Medium

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

### TC-SA-CG-04-022 — Outcome recording
**Type:** Positive
**Covers:** 4.4 → Outcome recording: the recording of a learner's career outcome
**Preconditions:** A Super Admin account is active; a learner has an outcome.
**Steps:**
1. As a Super Admin, record the learner's outcome and save.
2. Observe the result and verify the full behavior: the outcome is recorded.
**Expected Result:** The recording works — the outcome is saved, delivered exactly as documented.
**Priority:** High

### TC-SA-CG-04-023 — Outcome categories
**Type:** Positive
**Covers:** 4.4 → Outcome categories: the categories of outcomes
**Preconditions:** A Super Admin account is active; outcomes exist.
**Steps:**
1. As a Super Admin, view the outcome categories.
2. Observe the result and verify the full behavior: the categories (employment, further study) are shown.
**Expected Result:** The categories are shown — they are listed, delivered exactly as documented.
**Priority:** Medium

### TC-SA-CG-04-024 — Outcome by path
**Type:** Positive
**Covers:** 4.4 → Outcome by path: the outcomes per career path
**Preconditions:** A Super Admin account is active; outcomes exist for multiple paths.
**Steps:**
1. As a Super Admin, view the outcome by path.
2. Observe the result and verify the full behavior: the outcomes are separated per path.
**Expected Result:** The breakdown is shown — the paths are separated, delivered exactly as documented.
**Priority:** Medium

### TC-SA-CG-04-025 — Outcome rate
**Type:** Positive
**Covers:** 4.4 → Outcome rate: the rate of positive outcomes
**Preconditions:** A Super Admin account is active; outcomes are tracked.
**Steps:**
1. As a Super Admin, review the outcome rate.
2. Observe the result and verify the full behavior: the rate is the positive outcomes over the tracked learners.
**Expected Result:** The rate is shown — it is computed, delivered exactly as documented.
**Priority:** High

### TC-SA-CG-04-026 — Outcome trend
**Type:** Positive
**Covers:** 4.4 → Outcome trend: the outcomes over time
**Preconditions:** A Super Admin account is active; outcomes exist over time.
**Steps:**
1. As a Super Admin, view the outcome trend.
2. Observe the result and verify the full behavior: the outcomes over time are shown.
**Expected Result:** The trend is shown — it reflects the outcomes, delivered exactly as documented.
**Priority:** Low

### TC-SA-CG-04-027 — Rule: a report is exportable in CSV
**Type:** Positive
**Covers:** 4.4 → Rule: a report is exportable in CSV
**Preconditions:** A Super Admin account is active; the report has data.
**Steps:**
1. As a Super Admin, export the report to CSV.
2. Open the file.
3. Observe the result and verify the full behavior: the data is present and correct.
**Expected Result:** The export works — the CSV contains the data, delivered exactly as documented.
**Priority:** Medium

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