# 2. Student Activity & Performance — Test Cases

User Type: **Training Institute**
Source: *Mi Digital Academy - Education CRM Features Document*
Spec: student_activity_performance.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 |
|---------|--------------------|----------|
| 2.1 | Recent student activity feed | TC-TI-2-02-001 |
| 2.1 | Latest logins shown | TC-TI-2-02-002 |
| 2.1 | Course completions shown | TC-TI-2-02-003 |
| 2.1 | Assessment submissions shown | TC-TI-2-02-004 |
| 2.1 | Filter by student or course | TC-TI-2-02-005 |
| 2.1 | Activity with timestamps | TC-TI-2-02-006 |
| 2.1 | Activity available on web and mobile | TC-TI-2-02-007 |
| 2.1 | Activity event logging (viewed) | TC-TI-2-02-008 |
| 2.1 | Audit logging of the recent student activity | TC-TI-2-02-009 |
| 2.1 | Rule: The activity is shown with timestamps. | TC-TI-2-02-001 |
| 2.1 | Rule: The activity is filterable by student or course. | TC-TI-2-02-002 |
| 2.1 | Rule: Activity events (viewed) are logged with the account and the timestamp. | TC-TI-2-02-003 |
| 2.1 | Rule: The recent student activity is audit-logged with the account and the timestamp. | TC-TI-2-02-004 |
| 2.2 | Average assessment scores | TC-TI-2-02-010 |
| 2.2 | Completion rates | TC-TI-2-02-011 |
| 2.2 | Top-performing students | TC-TI-2-02-012 |
| 2.2 | Performance by course | TC-TI-2-02-013 |
| 2.2 | Drill into individual students | TC-TI-2-02-014 |
| 2.2 | Summary available on web and mobile | TC-TI-2-02-015 |
| 2.2 | Summary event logging (viewed) | TC-TI-2-02-016 |
| 2.2 | Audit logging of the student performance summary | TC-TI-2-02-017 |
| 2.2 | Rule: The performance is by course. | TC-TI-2-02-010 |
| 2.2 | Rule: The top-performing students are ranked by score. | TC-TI-2-02-011 |
| 2.2 | Rule: Summary events (viewed) are logged with the account and the timestamp. | TC-TI-2-02-012 |
| 2.2 | Rule: The student performance summary is audit-logged with the account and the timestamp. | TC-TI-2-02-013 |
| 2.3 | At-risk student list | TC-TI-2-02-018 |
| 2.3 | Reason for at-risk status | TC-TI-2-02-019 |
| 2.3 | Low engagement flag | TC-TI-2-02-020 |
| 2.3 | Failing assessment flag | TC-TI-2-02-021 |
| 2.3 | Inactivity beyond threshold flag | TC-TI-2-02-022 |
| 2.3 | Take action from the list | TC-TI-2-02-023 |
| 2.3 | Alerts available on web and mobile | TC-TI-2-02-024 |
| 2.3 | Alerts event logging (viewed, action taken) | TC-TI-2-02-025 |
| 2.3 | Audit logging of the at-risk student alerts | TC-TI-2-02-026 |
| 2.3 | Rule: The inactivity threshold is configurable. | TC-TI-2-02-018 |
| 2.3 | Rule: The at-risk status is recalculated periodically. | TC-TI-2-02-019 |
| 2.3 | Rule: Alerts events (viewed, action taken) are logged with the account and the timestamp. | TC-TI-2-02-020 |
| 2.3 | Rule: The at-risk student alerts is audit-logged with the account and the timestamp. | TC-TI-2-02-021 |

## 2.1 Recent Student Activity

### TC-TI-2-02-001 — Recent student activity feed
**Type:** Positive
**Covers:** 2.1 → Recent student activity feed; Rule: The activity is shown with timestamps.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Recent student activity feed.
2. Observe the result and verify the full behavior: Recent student activity feed.
**Expected Result:** Recent student activity feed — delivered exactly as documented.
**Priority:** Critical

### TC-TI-2-02-002 — Latest logins shown
**Type:** Positive
**Covers:** 2.1 → Latest logins shown; Rule: The activity is filterable by student or course.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Latest logins shown.
2. Observe the result and verify the full behavior: Latest logins shown.
**Expected Result:** Latest logins shown — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-003 — Course completions shown
**Type:** Positive
**Covers:** 2.1 → Course completions shown; Rule: Activity events (viewed) are logged with the account and the timestamp.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Course completions shown.
2. Observe the result and verify the full behavior: Course completions shown.
**Expected Result:** Course completions shown — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-004 — Assessment submissions shown
**Type:** Positive
**Covers:** 2.1 → Assessment submissions shown; Rule: The recent student activity is audit-logged with the account and the timestamp.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Assessment submissions shown.
2. Observe the result and verify the full behavior: Assessment submissions shown.
**Expected Result:** Assessment submissions shown — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-005 — Filter by student or course
**Type:** Positive
**Covers:** 2.1 → Filter by student or course
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Filter by student or course.
2. Observe the result and verify the full behavior: Filter by student or course.
**Expected Result:** Filter by student or course — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-006 — Activity with timestamps
**Type:** Positive
**Covers:** 2.1 → Activity with timestamps
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Activity with timestamps.
2. Observe the result and verify the full behavior: Activity with timestamps.
**Expected Result:** Activity with timestamps — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-007 — Activity available on web and mobile
**Type:** Positive
**Covers:** 2.1 → Activity available on web and mobile
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Activity available on web and mobile.
2. Observe the result and verify the full behavior: Activity available on web and mobile.
**Expected Result:** Activity available on web and mobile — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-008 — Activity event logging (viewed)
**Type:** Positive
**Covers:** 2.1 → Activity event logging (viewed)
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Activity event logging (viewed).
2. Observe the result and verify the full behavior: Activity event logging (viewed).
**Expected Result:** Activity event logging (viewed) — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-009 — Audit logging of the recent student activity
**Type:** Positive
**Covers:** 2.1 → Audit logging of the recent student activity
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, perform the recent student activity action.
2. Open the audit log and verify the entry for the action.
**Expected Result:** The recent student activity action is recorded in the audit log with the account and the timestamp.
**Priority:** Critical


## 2.2 Student Performance Summary

### TC-TI-2-02-010 — Average assessment scores
**Type:** Positive
**Covers:** 2.2 → Average assessment scores; Rule: The performance is by course.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Average assessment scores.
2. Observe the result and verify the full behavior: Average assessment scores.
**Expected Result:** Average assessment scores — delivered exactly as documented.
**Priority:** Critical

### TC-TI-2-02-011 — Completion rates
**Type:** Positive
**Covers:** 2.2 → Completion rates; Rule: The top-performing students are ranked by score.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Completion rates.
2. Observe the result and verify the full behavior: Completion rates.
**Expected Result:** Completion rates — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-012 — Top-performing students
**Type:** Positive
**Covers:** 2.2 → Top-performing students; Rule: Summary events (viewed) are logged with the account and the timestamp.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Top-performing students.
2. Observe the result and verify the full behavior: Top-performing students.
**Expected Result:** Top-performing students — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-013 — Performance by course
**Type:** Positive
**Covers:** 2.2 → Performance by course; Rule: The student performance summary is audit-logged with the account and the timestamp.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Performance by course.
2. Observe the result and verify the full behavior: Performance by course.
**Expected Result:** Performance by course — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-014 — Drill into individual students
**Type:** Positive
**Covers:** 2.2 → Drill into individual students
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Drill into individual students.
2. Observe the result and verify the full behavior: Drill into individual students.
**Expected Result:** Drill into individual students — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-015 — Summary available on web and mobile
**Type:** Positive
**Covers:** 2.2 → Summary available on web and mobile
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Summary available on web and mobile.
2. Observe the result and verify the full behavior: Summary available on web and mobile.
**Expected Result:** Summary available on web and mobile — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-016 — Summary event logging (viewed)
**Type:** Positive
**Covers:** 2.2 → Summary event logging (viewed)
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Summary event logging (viewed).
2. Observe the result and verify the full behavior: Summary event logging (viewed).
**Expected Result:** Summary event logging (viewed) — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-017 — Audit logging of the student performance summary
**Type:** Positive
**Covers:** 2.2 → Audit logging of the student performance summary
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, perform the student performance summary action.
2. Open the audit log and verify the entry for the action.
**Expected Result:** The student performance summary action is recorded in the audit log with the account and the timestamp.
**Priority:** Critical


## 2.3 At-Risk Student Alerts

### TC-TI-2-02-018 — At-risk student list
**Type:** Positive
**Covers:** 2.3 → At-risk student list; Rule: The inactivity threshold is configurable.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: At-risk student list.
2. Observe the result and verify the full behavior: At-risk student list.
**Expected Result:** At-risk student list — delivered exactly as documented.
**Priority:** Critical

### TC-TI-2-02-019 — Reason for at-risk status
**Type:** Positive
**Covers:** 2.3 → Reason for at-risk status; Rule: The at-risk status is recalculated periodically.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Reason for at-risk status.
2. Observe the result and verify the full behavior: Reason for at-risk status.
**Expected Result:** Reason for at-risk status — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-020 — Low engagement flag
**Type:** Positive
**Covers:** 2.3 → Low engagement flag; Rule: Alerts events (viewed, action taken) are logged with the account and the timestamp.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Low engagement flag.
2. Observe the result and verify the full behavior: Low engagement flag.
**Expected Result:** Low engagement flag — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-021 — Failing assessment flag
**Type:** Positive
**Covers:** 2.3 → Failing assessment flag; Rule: The at-risk student alerts is audit-logged with the account and the timestamp.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Failing assessment flag.
2. Observe the result and verify the full behavior: Failing assessment flag.
**Expected Result:** Failing assessment flag — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-022 — Inactivity beyond threshold flag
**Type:** Edge
**Covers:** 2.3 → Inactivity beyond threshold flag
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Inactivity beyond threshold flag.
2. Observe the result and verify the full behavior: Inactivity beyond threshold flag.
**Expected Result:** Inactivity beyond threshold flag — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-023 — Take action from the list
**Type:** Positive
**Covers:** 2.3 → Take action from the list
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Take action from the list.
2. Observe the result and verify the full behavior: Take action from the list.
**Expected Result:** Take action from the list — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-024 — Alerts available on web and mobile
**Type:** Positive
**Covers:** 2.3 → Alerts available on web and mobile
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Alerts available on web and mobile.
2. Observe the result and verify the full behavior: Alerts available on web and mobile.
**Expected Result:** Alerts available on web and mobile — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-025 — Alerts event logging (viewed, action taken)
**Type:** Positive
**Covers:** 2.3 → Alerts event logging (viewed, action taken)
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Alerts event logging (viewed, action taken).
2. Observe the result and verify the full behavior: Alerts event logging (viewed, action taken).
**Expected Result:** Alerts event logging (viewed, action taken) — delivered exactly as documented.
**Priority:** High

### TC-TI-2-02-026 — Audit logging of the at-risk student alerts
**Type:** Positive
**Covers:** 2.3 → Audit logging of the at-risk student alerts
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, perform the at-risk student alerts action.
2. Open the audit log and verify the entry for the action.
**Expected Result:** The at-risk student alerts action is recorded in the audit log with the account and the timestamp.
**Priority:** Critical
