# 5. Audit & Export — Test Cases

User Type: **Organization**
Source: *Mi Digital Academy - Education CRM Features Document*
Spec: audit_export.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 |
|---------|--------------------|----------|
| 5.1 | User activity audit report | TC-ORG-5-01-001 |
| 5.1 | Enrollment change audit report | TC-ORG-5-01-002 |
| 5.1 | Compliance event audit report | TC-ORG-5-01-003 |
| 5.1 | Admin action audit report | TC-ORG-5-01-004 |
| 5.1 | Audit report period selection | TC-ORG-5-01-005 |
| 5.1 | Audit Reports available on web and mobile | TC-ORG-5-01-006 |
| 5.1 | audit reports event logging (viewed) | TC-ORG-5-01-007 |
| 5.1 | Audit logging of audit reports | TC-ORG-5-01-008 |
| 5.1 | Rule: User activity audit report. | TC-ORG-5-01-009 |
| 5.1 | Rule: Enrollment change audit report. | TC-ORG-5-01-010 |
| 5.1 | Rule: Compliance event audit report. | TC-ORG-5-01-011 |
| 5.1 | Rule: Admin action audit report. | TC-ORG-5-01-012 |
| 5.1 | Rule: Audit report period selection. | TC-ORG-5-01-013 |
| 5.2 | Export users and enrollment data | TC-ORG-5-02-014 |
| 5.2 | Export progress and assessment data | TC-ORG-5-02-015 |
| 5.2 | Export compliance data | TC-ORG-5-02-016 |
| 5.2 | Export formats: CSV, Excel | TC-ORG-5-02-017 |
| 5.2 | Scheduled data export | TC-ORG-5-02-018 |
| 5.2 | Data Export available on web and mobile | TC-ORG-5-02-019 |
| 5.2 | data export event logging (viewed) | TC-ORG-5-02-020 |
| 5.2 | Audit logging of data export | TC-ORG-5-02-021 |
| 5.2 | Rule: Export users and enrollment data. | TC-ORG-5-02-022 |
| 5.2 | Rule: Export progress and assessment data. | TC-ORG-5-02-023 |
| 5.2 | Rule: Export compliance data. | TC-ORG-5-02-024 |
| 5.2 | Rule: Export formats: CSV, Excel. | TC-ORG-5-02-025 |
| 5.2 | Rule: Scheduled data export. | TC-ORG-5-02-026 |

## 5.1 Audit Reports

### TC-ORG-5-01-001 — User activity audit report
**Type:** Positive
**Covers:** 5.1 → User activity audit report; Rule: User activity audit report.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform: User activity audit report.
2. Observe the result and verify the full behavior: User activity audit report.
**Expected Result:** User activity audit report — delivered exactly as documented.
**Priority:** Critical

### TC-ORG-5-01-002 — Enrollment change audit report
**Type:** Positive
**Covers:** 5.1 → Enrollment change audit report; Rule: Enrollment change audit report.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform: Enrollment change audit report.
2. Observe the result and verify the full behavior: Enrollment change audit report.
**Expected Result:** Enrollment change audit report — delivered exactly as documented.
**Priority:** High

### TC-ORG-5-01-003 — Compliance event audit report
**Type:** Positive
**Covers:** 5.1 → Compliance event audit report; Rule: Compliance event audit report.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform: Compliance event audit report.
2. Observe the result and verify the full behavior: Compliance event audit report.
**Expected Result:** Compliance event audit report — delivered exactly as documented.
**Priority:** Medium

### TC-ORG-5-01-004 — Admin action audit report
**Type:** Positive
**Covers:** 5.1 → Admin action audit report; Rule: Admin action audit report.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform: Admin action audit report.
2. Observe the result and verify the full behavior: Admin action audit report.
**Expected Result:** Admin action audit report — delivered exactly as documented.
**Priority:** Medium

### TC-ORG-5-01-005 — Audit report period selection
**Type:** Positive
**Covers:** 5.1 → Audit report period selection; Rule: Audit report period selection.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform: Audit report period selection.
2. Observe the result and verify the full behavior: Audit report period selection.
**Expected Result:** Audit report period selection — delivered exactly as documented.
**Priority:** Medium

### TC-ORG-5-01-006 — Audit Reports available on web and mobile
**Type:** Positive
**Covers:** 5.1 → Audit Reports available on web and mobile; Rule: User activity audit report.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform: Audit Reports available on web and mobile.
2. Observe the result and verify the full behavior: Audit Reports available on web and mobile.
**Expected Result:** Audit Reports available on web and mobile — delivered exactly as documented.
**Priority:** Medium

### TC-ORG-5-01-007 — audit reports event logging (viewed)
**Type:** Positive
**Covers:** 5.1 → audit reports event logging (viewed); Rule: Enrollment change audit report.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform: audit reports event logging (viewed).
2. Observe the result and verify the full behavior: audit reports event logging (viewed).
**Expected Result:** audit reports event logging (viewed) — delivered exactly as documented.
**Priority:** Medium

### TC-ORG-5-01-008 — Audit logging of audit reports
**Type:** Positive
**Covers:** 5.1 → Audit logging of audit reports; Rule: Compliance event audit report.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform: Audit logging of audit reports.
2. Observe the result and verify the full behavior: Audit logging of audit reports.
**Expected Result:** Audit logging of audit reports — delivered exactly as documented.
**Priority:** Medium

### TC-ORG-5-01-009 — Rule: User activity audit report.
**Type:** Positive
**Covers:** 5.1 → Rule: User activity audit report.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform the action that triggers the rule: User activity audit report.
2. Observe the result and verify the full behavior: User activity audit report.
**Expected Result:** User activity audit report. — delivered exactly as documented.
**Priority:** Critical

### TC-ORG-5-01-010 — Rule: Enrollment change audit report.
**Type:** Positive
**Covers:** 5.1 → Rule: Enrollment change audit report.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform the action that triggers the rule: Enrollment change audit report.
2. Observe the result and verify the full behavior: Enrollment change audit report.
**Expected Result:** Enrollment change audit report. — delivered exactly as documented.
**Priority:** High

### TC-ORG-5-01-011 — Rule: Compliance event audit report.
**Type:** Positive
**Covers:** 5.1 → Rule: Compliance event audit report.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform the action that triggers the rule: Compliance event audit report.
2. Observe the result and verify the full behavior: Compliance event audit report.
**Expected Result:** Compliance event audit report. — delivered exactly as documented.
**Priority:** Medium

### TC-ORG-5-01-012 — Rule: Admin action audit report.
**Type:** Positive
**Covers:** 5.1 → Rule: Admin action audit report.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform the action that triggers the rule: Admin action audit report.
2. Observe the result and verify the full behavior: Admin action audit report.
**Expected Result:** Admin action audit report. — delivered exactly as documented.
**Priority:** Medium

### TC-ORG-5-01-013 — Rule: Audit report period selection.
**Type:** Positive
**Covers:** 5.1 → Rule: Audit report period selection.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform the action that triggers the rule: Audit report period selection.
2. Observe the result and verify the full behavior: Audit report period selection.
**Expected Result:** Audit report period selection. — delivered exactly as documented.
**Priority:** Medium

## 5.2 Data Export

### TC-ORG-5-02-014 — Export users and enrollment data
**Type:** Positive
**Covers:** 5.2 → Export users and enrollment data; Rule: Export users and enrollment data.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform: Export users and enrollment data.
2. Observe the result and verify the full behavior: Export users and enrollment data.
**Expected Result:** Export users and enrollment data — delivered exactly as documented.
**Priority:** Critical

### TC-ORG-5-02-015 — Export progress and assessment data
**Type:** Positive
**Covers:** 5.2 → Export progress and assessment data; Rule: Export progress and assessment data.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform: Export progress and assessment data.
2. Observe the result and verify the full behavior: Export progress and assessment data.
**Expected Result:** Export progress and assessment data — delivered exactly as documented.
**Priority:** High

### TC-ORG-5-02-016 — Export compliance data
**Type:** Positive
**Covers:** 5.2 → Export compliance data; Rule: Export compliance data.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform: Export compliance data.
2. Observe the result and verify the full behavior: Export compliance data.
**Expected Result:** Export compliance data — delivered exactly as documented.
**Priority:** Medium

### TC-ORG-5-02-017 — Export formats: CSV, Excel
**Type:** Positive
**Covers:** 5.2 → Export formats: CSV, Excel; Rule: Export formats: CSV, Excel.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform: Export formats: CSV, Excel.
2. Observe the result and verify the full behavior: Export formats: CSV, Excel.
**Expected Result:** Export formats: CSV, Excel — delivered exactly as documented.
**Priority:** Medium

### TC-ORG-5-02-018 — Scheduled data export
**Type:** Positive
**Covers:** 5.2 → Scheduled data export; Rule: Scheduled data export.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform: Scheduled data export.
2. Observe the result and verify the full behavior: Scheduled data export.
**Expected Result:** Scheduled data export — delivered exactly as documented.
**Priority:** Medium

### TC-ORG-5-02-019 — Data Export available on web and mobile
**Type:** Positive
**Covers:** 5.2 → Data Export available on web and mobile; Rule: Export users and enrollment data.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform: Data Export available on web and mobile.
2. Observe the result and verify the full behavior: Data Export available on web and mobile.
**Expected Result:** Data Export available on web and mobile — delivered exactly as documented.
**Priority:** Medium

### TC-ORG-5-02-020 — data export event logging (viewed)
**Type:** Positive
**Covers:** 5.2 → data export event logging (viewed); Rule: Export progress and assessment data.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform: data export event logging (viewed).
2. Observe the result and verify the full behavior: data export event logging (viewed).
**Expected Result:** data export event logging (viewed) — delivered exactly as documented.
**Priority:** Medium

### TC-ORG-5-02-021 — Audit logging of data export
**Type:** Positive
**Covers:** 5.2 → Audit logging of data export; Rule: Export compliance data.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform: Audit logging of data export.
2. Observe the result and verify the full behavior: Audit logging of data export.
**Expected Result:** Audit logging of data export — delivered exactly as documented.
**Priority:** Medium

### TC-ORG-5-02-022 — Rule: Export users and enrollment data.
**Type:** Positive
**Covers:** 5.2 → Rule: Export users and enrollment data.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform the action that triggers the rule: Export users and enrollment data.
2. Observe the result and verify the full behavior: Export users and enrollment data.
**Expected Result:** Export users and enrollment data. — delivered exactly as documented.
**Priority:** Critical

### TC-ORG-5-02-023 — Rule: Export progress and assessment data.
**Type:** Positive
**Covers:** 5.2 → Rule: Export progress and assessment data.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform the action that triggers the rule: Export progress and assessment data.
2. Observe the result and verify the full behavior: Export progress and assessment data.
**Expected Result:** Export progress and assessment data. — delivered exactly as documented.
**Priority:** High

### TC-ORG-5-02-024 — Rule: Export compliance data.
**Type:** Positive
**Covers:** 5.2 → Rule: Export compliance data.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform the action that triggers the rule: Export compliance data.
2. Observe the result and verify the full behavior: Export compliance data.
**Expected Result:** Export compliance data. — delivered exactly as documented.
**Priority:** Medium

### TC-ORG-5-02-025 — Rule: Export formats: CSV, Excel.
**Type:** Positive
**Covers:** 5.2 → Rule: Export formats: CSV, Excel.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform the action that triggers the rule: Export formats: CSV, Excel.
2. Observe the result and verify the full behavior: Export formats: CSV, Excel.
**Expected Result:** Export formats: CSV, Excel. — delivered exactly as documented.
**Priority:** Medium

### TC-ORG-5-02-026 — Rule: Scheduled data export.
**Type:** Positive
**Covers:** 5.2 → Rule: Scheduled data export.
**Preconditions:** A Organization account is active and the Organization is in the state required for this behavior.
**Steps:**
1. As a Organization, set up the precondition and perform the action that triggers the rule: Scheduled data export.
2. Observe the result and verify the full behavior: Scheduled data export.
**Expected Result:** Scheduled data export. — delivered exactly as documented.
**Priority:** Medium
