# 4. Performance Leaderboard & Conversion Tracking — Test Cases

User Type: **Affiliate**
Source: *Mi Digital Academy - Education CRM Features Document*
Spec: leaderboard_conversion_tracking.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 | Affiliate's rank on the leaderboard | TC-AF-3-04-001 |
| 4.1 | Leaderboard by referrals | TC-AF-3-04-002 |
| 4.1 | Leaderboard by conversions | TC-AF-3-04-003 |
| 4.1 | Leaderboard by commission | TC-AF-3-04-004 |
| 4.1 | Top performers list | TC-AF-3-04-005 |
| 4.1 | Leaderboard period selection | TC-AF-3-04-006 |
| 4.1 | Leaderboard available on web and mobile | TC-AF-3-04-007 |
| 4.1 | Leaderboard event logging (viewed) | TC-AF-3-04-008 |
| 4.1 | Audit logging of the performance leaderboard | TC-AF-3-04-009 |
| 4.1 | Rule: The leaderboard ranks by referrals, conversions, or commission. | TC-AF-3-04-001 |
| 4.1 | Rule: The period can be selected. | TC-AF-3-04-002 |
| 4.1 | Rule: Leaderboard events (viewed) are logged with the account and the timestamp. | TC-AF-3-04-003 |
| 4.1 | Rule: The performance leaderboard is audit-logged with the account and the timestamp. | TC-AF-3-04-004 |
| 4.2 | Conversion rate overall | TC-AF-3-04-010 |
| 4.2 | Conversions per channel | TC-AF-3-04-011 |
| 4.2 | Conversions per campaign | TC-AF-3-04-012 |
| 4.2 | Click-to-signup tracking | TC-AF-3-04-013 |
| 4.2 | Signup-to-purchase tracking | TC-AF-3-04-014 |
| 4.2 | Conversion detail view | TC-AF-3-04-015 |
| 4.2 | Tracking available on web and mobile | TC-AF-3-04-016 |
| 4.2 | Tracking event logging (viewed) | TC-AF-3-04-017 |
| 4.2 | Audit logging of the conversion tracking | TC-AF-3-04-018 |
| 4.2 | Rule: The conversions are tracked per channel and campaign. | TC-AF-3-04-010 |
| 4.2 | Rule: The full journey from click to purchase is tracked. | TC-AF-3-04-011 |
| 4.2 | Rule: Tracking events (viewed) are logged with the account and the timestamp. | TC-AF-3-04-012 |
| 4.2 | Rule: The conversion tracking is audit-logged with the account and the timestamp. | TC-AF-3-04-013 |
| 4.3 | Performance per campaign | TC-AF-3-04-019 |
| 4.3 | Clicks, sign-ups, purchases per campaign | TC-AF-3-04-020 |
| 4.3 | Commission generated per campaign | TC-AF-3-04-021 |
| 4.3 | Compare campaigns | TC-AF-3-04-022 |
| 4.3 | Download the report | TC-AF-3-04-023 |
| 4.3 | Report available on web and mobile | TC-AF-3-04-024 |
| 4.3 | Report event logging (viewed, downloaded) | TC-AF-3-04-025 |
| 4.3 | Audit logging of the campaign performance report | TC-AF-3-04-026 |
| 4.3 | Rule: The performance is shown per campaign. | TC-AF-3-04-019 |
| 4.3 | Rule: The campaigns can be compared. | TC-AF-3-04-020 |
| 4.3 | Rule: The report can be downloaded. | TC-AF-3-04-021 |
| 4.3 | Rule: Report events (viewed, downloaded) are logged with the account and the timestamp. | TC-AF-3-04-022 |
| 4.3 | Rule: The campaign performance report is audit-logged with the account and the timestamp. | TC-AF-3-04-023 |

## 4.1 Performance Leaderboard

### TC-AF-3-04-001 — Affiliate's rank on the leaderboard
**Type:** Positive
**Covers:** 4.1 → Affiliate's rank on the leaderboard; Rule: The leaderboard ranks by referrals, conversions, or commission.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Affiliate's rank on the leaderboard.
2. Observe the result and verify the full behavior: Affiliate's rank on the leaderboard.
**Expected Result:** Affiliate's rank on the leaderboard — delivered exactly as documented.
**Priority:** Critical

### TC-AF-3-04-002 — Leaderboard by referrals
**Type:** Positive
**Covers:** 4.1 → Leaderboard by referrals; Rule: The period can be selected.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Leaderboard by referrals.
2. Observe the result and verify the full behavior: Leaderboard by referrals.
**Expected Result:** Leaderboard by referrals — delivered exactly as documented.
**Priority:** High

### TC-AF-3-04-003 — Leaderboard by conversions
**Type:** Positive
**Covers:** 4.1 → Leaderboard by conversions; Rule: Leaderboard events (viewed) are logged with the account and the timestamp.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Leaderboard by conversions.
2. Observe the result and verify the full behavior: Leaderboard by conversions.
**Expected Result:** Leaderboard by conversions — delivered exactly as documented.
**Priority:** High

### TC-AF-3-04-004 — Leaderboard by commission
**Type:** Positive
**Covers:** 4.1 → Leaderboard by commission; Rule: The performance leaderboard is audit-logged with the account and the timestamp.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Leaderboard by commission.
2. Observe the result and verify the full behavior: Leaderboard by commission.
**Expected Result:** Leaderboard by commission — delivered exactly as documented.
**Priority:** High

### TC-AF-3-04-005 — Top performers list
**Type:** Positive
**Covers:** 4.1 → Top performers list
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Top performers list.
2. Observe the result and verify the full behavior: Top performers list.
**Expected Result:** Top performers list — delivered exactly as documented.
**Priority:** High

### TC-AF-3-04-006 — Leaderboard period selection
**Type:** Positive
**Covers:** 4.1 → Leaderboard period selection
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Leaderboard period selection.
2. Observe the result and verify the full behavior: Leaderboard period selection.
**Expected Result:** Leaderboard period selection — delivered exactly as documented.
**Priority:** High

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

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

### TC-AF-3-04-009 — Audit logging of the performance leaderboard
**Type:** Positive
**Covers:** 4.1 → Audit logging of the performance leaderboard
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, perform the performance leaderboard action.
2. Open the audit log and verify the entry for the action.
**Expected Result:** The performance leaderboard action is recorded in the audit log with the account and the timestamp.
**Priority:** Critical


## 4.2 Conversion Tracking

### TC-AF-3-04-010 — Conversion rate overall
**Type:** Positive
**Covers:** 4.2 → Conversion rate overall; Rule: The conversions are tracked per channel and campaign.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Conversion rate overall.
2. Observe the result and verify the full behavior: Conversion rate overall.
**Expected Result:** Conversion rate overall — delivered exactly as documented.
**Priority:** Critical

### TC-AF-3-04-011 — Conversions per channel
**Type:** Positive
**Covers:** 4.2 → Conversions per channel; Rule: The full journey from click to purchase is tracked.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Conversions per channel.
2. Observe the result and verify the full behavior: Conversions per channel.
**Expected Result:** Conversions per channel — delivered exactly as documented.
**Priority:** High

### TC-AF-3-04-012 — Conversions per campaign
**Type:** Positive
**Covers:** 4.2 → Conversions per campaign; Rule: Tracking events (viewed) are logged with the account and the timestamp.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Conversions per campaign.
2. Observe the result and verify the full behavior: Conversions per campaign.
**Expected Result:** Conversions per campaign — delivered exactly as documented.
**Priority:** High

### TC-AF-3-04-013 — Click-to-signup tracking
**Type:** Positive
**Covers:** 4.2 → Click-to-signup tracking; Rule: The conversion tracking is audit-logged with the account and the timestamp.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Click-to-signup tracking.
2. Observe the result and verify the full behavior: Click-to-signup tracking.
**Expected Result:** Click-to-signup tracking — delivered exactly as documented.
**Priority:** High

### TC-AF-3-04-014 — Signup-to-purchase tracking
**Type:** Positive
**Covers:** 4.2 → Signup-to-purchase tracking
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Signup-to-purchase tracking.
2. Observe the result and verify the full behavior: Signup-to-purchase tracking.
**Expected Result:** Signup-to-purchase tracking — delivered exactly as documented.
**Priority:** High

### TC-AF-3-04-015 — Conversion detail view
**Type:** Positive
**Covers:** 4.2 → Conversion detail view
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Conversion detail view.
2. Observe the result and verify the full behavior: Conversion detail view.
**Expected Result:** Conversion detail view — delivered exactly as documented.
**Priority:** High

### TC-AF-3-04-016 — Tracking available on web and mobile
**Type:** Positive
**Covers:** 4.2 → Tracking available on web and mobile
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Tracking available on web and mobile.
2. Observe the result and verify the full behavior: Tracking available on web and mobile.
**Expected Result:** Tracking available on web and mobile — delivered exactly as documented.
**Priority:** High

### TC-AF-3-04-017 — Tracking event logging (viewed)
**Type:** Positive
**Covers:** 4.2 → Tracking event logging (viewed)
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Tracking event logging (viewed).
2. Observe the result and verify the full behavior: Tracking event logging (viewed).
**Expected Result:** Tracking event logging (viewed) — delivered exactly as documented.
**Priority:** High

### TC-AF-3-04-018 — Audit logging of the conversion tracking
**Type:** Positive
**Covers:** 4.2 → Audit logging of the conversion tracking
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, perform the conversion tracking action.
2. Open the audit log and verify the entry for the action.
**Expected Result:** The conversion tracking action is recorded in the audit log with the account and the timestamp.
**Priority:** Critical


## 4.3 Campaign Performance Report

### TC-AF-3-04-019 — Performance per campaign
**Type:** Positive
**Covers:** 4.3 → Performance per campaign; Rule: The performance is shown per campaign.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Performance per campaign.
2. Observe the result and verify the full behavior: Performance per campaign.
**Expected Result:** Performance per campaign — delivered exactly as documented.
**Priority:** Critical

### TC-AF-3-04-020 — Clicks, sign-ups, purchases per campaign
**Type:** Positive
**Covers:** 4.3 → Clicks, sign-ups, purchases per campaign; Rule: The campaigns can be compared.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Clicks, sign-ups, purchases per campaign.
2. Observe the result and verify the full behavior: Clicks, sign-ups, purchases per campaign.
**Expected Result:** Clicks, sign-ups, purchases per campaign — delivered exactly as documented.
**Priority:** High

### TC-AF-3-04-021 — Commission generated per campaign
**Type:** Positive
**Covers:** 4.3 → Commission generated per campaign; Rule: The report can be downloaded.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Commission generated per campaign.
2. Observe the result and verify the full behavior: Commission generated per campaign.
**Expected Result:** Commission generated per campaign — delivered exactly as documented.
**Priority:** High

### TC-AF-3-04-022 — Compare campaigns
**Type:** Positive
**Covers:** 4.3 → Compare campaigns; Rule: Report events (viewed, downloaded) are logged with the account and the timestamp.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Compare campaigns.
2. Observe the result and verify the full behavior: Compare campaigns.
**Expected Result:** Compare campaigns — delivered exactly as documented.
**Priority:** High

### TC-AF-3-04-023 — Download the report
**Type:** Positive
**Covers:** 4.3 → Download the report; Rule: The campaign performance report is audit-logged with the account and the timestamp.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Download the report.
2. Observe the result and verify the full behavior: Download the report.
**Expected Result:** Download the report — delivered exactly as documented.
**Priority:** High

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

### TC-AF-3-04-025 — Report event logging (viewed, downloaded)
**Type:** Positive
**Covers:** 4.3 → Report event logging (viewed, downloaded)
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Report event logging (viewed, downloaded).
2. Observe the result and verify the full behavior: Report event logging (viewed, downloaded).
**Expected Result:** Report event logging (viewed, downloaded) — delivered exactly as documented.
**Priority:** High

### TC-AF-3-04-026 — Audit logging of the campaign performance report
**Type:** Positive
**Covers:** 4.3 → Audit logging of the campaign performance report
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, perform the campaign performance report action.
2. Open the audit log and verify the entry for the action.
**Expected Result:** The campaign performance report action is recorded in the audit log with the account and the timestamp.
**Priority:** Critical
