Stage 11 of 17

Stage 11 of 17

Test

16 test cases across 6 categories. Each test case is mapped to requirements, has preconditions, step-by-step instructions, and a clear expected result. Execute every test case and record the outcome before proceeding.

2

Happy Path

4

Views

5

Automation

2

Data Quality

2

Permissions

1

History

Test Cases

TC-001Happy Path

Record a training completion and verify expiry date

REQ-005, REQ-006

Preconditions

Logged in as Sandra Obi (L&D). CRS-001 (Data Protection Awareness, 12 months) exists in the Courses list.

Steps

  1. 1.Navigate to the TrainingRecords list.
  2. 2.Select New.
  3. 3.RecordID: REC-TEST-001. Employee: Sophie Clarke. Course: Data Protection Awareness. CompletionDate: today's date. ExpiryDate: today + 12 months. EvidenceReference: test-cert.pdf.
  4. 4.Select Save.

Expected Result

Record created. ExpiryDate is exactly 12 months after CompletionDate. Record appears in the Valid Training view (if expiry is more than 60 days away).

TC-002Happy Path

Renewal creates a new record, not an update

REQ-005, REQ-023

Preconditions

REC-001 (Sophie Clarke, Data Protection Awareness, expired Jan 2025) exists.

Steps

  1. 1.Create a new training record for Sophie Clarke, Data Protection Awareness, CompletionDate: today.
  2. 2.Navigate to the TrainingRecords list.
  3. 3.Search for Sophie Clarke + Data Protection Awareness.

Expected Result

Two records exist: REC-001 (expired) and the new record (valid). REC-001 has not been modified. Both records are visible in the All Items view.

TC-003Views

Valid Training view shows only valid records

REQ-009, REQ-017

Preconditions

Training records exist with a range of expiry dates.

Steps

  1. 1.Navigate to the TrainingRecords list.
  2. 2.Select the Valid Training view.
  3. 3.Observe the records shown.

Expected Result

Only records where ExpiryDate > today + 60 days are shown. Expired records (e.g. REC-001) are not shown. Expiring Soon records (ExpiryDate ≤ today + 60) are not shown.

TC-004Views

Expiring Training view shows records expiring within 60 days

REQ-009, REQ-010, REQ-017

Preconditions

Training records exist with expiry dates within the next 60 days.

Steps

  1. 1.Navigate to the TrainingRecords list.
  2. 2.Select the Expiring Training view.
  3. 3.Observe the records shown.

Expected Result

Only records where ExpiryDate is between today and today + 60 days are shown. Valid records (more than 60 days) are not shown. Expired records are not shown.

TC-005Views

Expired Training view shows only expired records

REQ-009

Preconditions

REC-001 (Sophie Clarke, Data Protection Awareness, expired Jan 2025) exists.

Steps

  1. 1.Navigate to the TrainingRecords list.
  2. 2.Select the Expired Training view.
  3. 3.Observe the records shown.

Expected Result

REC-001 appears. REC-015 (Sophie Clarke, Data Protection Awareness, valid Jan 2026) does not appear.

TC-006Views

Active Employees view excludes inactive employees

REQ-002

Preconditions

EMP-010 (Aisha Patel, Active = No) exists in the Employees list.

Steps

  1. 1.Navigate to the Employees list.
  2. 2.Select the Active Employees view.

Expected Result

Aisha Patel does not appear. All 9 active employees appear.

TC-007Automation

60-day reminder sent and flag updated

REQ-011, REQ-014

Preconditions

A training record exists with ExpiryDate = today + 60 days and Reminder60Sent = No.

Steps

  1. 1.Manually trigger the DToDLab005-ExpiryReminder flow using the Test button.
  2. 2.Check the employee email inbox.
  3. 3.Check the training record in the TrainingRecords list.

Expected Result

One reminder email received by the employee. Manager is copied. Reminder60Sent = Yes on the training record.

TC-008Automation

No duplicate 60-day reminder on second run

REQ-014

Preconditions

TC-007 has been completed. Reminder60Sent = Yes on the test record.

Steps

  1. 1.Manually trigger the DToDLab005-ExpiryReminder flow again.
  2. 2.Check the employee email inbox.

Expected Result

No second reminder email is received. The flow runs successfully but sends no email for this record (Reminder60Sent is already Yes).

TC-009Automation

30-day reminder sent independently of 60-day reminder

REQ-012, REQ-014

Preconditions

A training record exists with ExpiryDate = today + 30 days, Reminder60Sent = Yes, Reminder30Sent = No.

Steps

  1. 1.Manually trigger the flow.
  2. 2.Check the employee email inbox.
  3. 3.Check the training record.

Expected Result

One 30-day reminder email received. Reminder30Sent = Yes. Reminder60Sent remains Yes (not changed).

TC-010Automation

7-day reminder sent independently

REQ-013, REQ-014

Preconditions

A training record exists with ExpiryDate = today + 7 days, Reminder60Sent = Yes, Reminder30Sent = Yes, Reminder7Sent = No.

Steps

  1. 1.Manually trigger the flow.
  2. 2.Check the employee email inbox.
  3. 3.Check the training record.

Expected Result

One 7-day reminder email received. Reminder7Sent = Yes. Reminder60Sent and Reminder30Sent remain Yes.

TC-011Automation

No reminder sent for records with no expiry date

REQ-006

Preconditions

A training record exists for CRS-009 (Project Management Fundamentals, ValidityMonths = 0) with no ExpiryDate.

Steps

  1. 1.Manually trigger the flow.
  2. 2.Check the email inbox.

Expected Result

No reminder email is sent for this record. The flow handles the null ExpiryDate without error.

TC-012Data Quality

CompletionDate field enforces date format

REQ-007

Preconditions

Logged in as Sandra Obi.

Steps

  1. 1.Navigate to the TrainingRecords list.
  2. 2.Select New.
  3. 3.Attempt to type "15/13/2025" in the CompletionDate field (invalid date).

Expected Result

The date picker does not allow invalid dates. The field shows a date picker, not a free-text field. The invalid date cannot be entered.

TC-013Data Quality

Lookup column prevents invalid employee reference

REQ-005

Preconditions

Logged in as Sandra Obi.

Steps

  1. 1.Navigate to the TrainingRecords list.
  2. 2.Select New.
  3. 3.Select the Employee field.
  4. 4.Attempt to type a name that does not exist in the Employees list.

Expected Result

The Employee field shows only employees from the Employees list. A non-existent employee cannot be entered.

TC-014Permissions

L&D team can create and edit training records

REQ-022

Preconditions

Logged in as Sandra Obi (L&D team, Edit permission).

Steps

  1. 1.Create a new training record.
  2. 2.Edit an existing training record.
  3. 3.Verify both actions succeed.

Expected Result

Both create and edit actions succeed. No permission error is displayed.

TC-015Permissions

L&D team cannot delete training records

REQ-022

Preconditions

Logged in as Sandra Obi (L&D team, Edit permission).

Steps

  1. 1.Navigate to the TrainingRecords list.
  2. 2.Select a training record.
  3. 3.Check whether a Delete option is available.

Expected Result

No Delete option is available to Sandra Obi. Edit permission does not include Delete.

TC-016History

Historical records are retained after renewal

REQ-023

Preconditions

REC-001 (Sophie Clarke, Data Protection Awareness, expired) and REC-015 (Sophie Clarke, Data Protection Awareness, valid) both exist.

Steps

  1. 1.Navigate to the TrainingRecords list.
  2. 2.Filter by Employee = Sophie Clarke and Course = Data Protection Awareness.

Expected Result

Both REC-001 and REC-015 are visible. REC-001 has not been deleted or modified. The history is preserved.

Stage Complete — What You Now Have

  • ✓16 test cases across 6 categories
  • ✓Happy path, views, automation (including duplicate prevention), data quality, permissions, history
  • ✓Every Must Have requirement covered by at least one test case

Need more help with the concepts?

Visit DosToDigital for guides, templates, and deeper explanations.

DosToDigital
DToD Labs

Learn it. Build it. Make it work.

A DosToDigital Project

About DToD Labs

Practical technology learning for Microsoft 365 and Power Platform. Build real business solutions from real business problems.

Learn the concepts at DosToDigital. Put them into practice at DToD Labs.

DToD Labs provides practical learning projects for educational purposes. Microsoft services, interfaces, licensing and product capabilities change over time. Always check current Microsoft documentation and licensing before implementing a solution in a production environment. All organisations, business scenarios and data used in DToD Labs are fictional. Learners should not use confidential employer, customer or personal information when following DToD Labs exercises.

© 2026 DToD Labs — A DosToDigital Project