Stage 11 of 17

Stage 11 of 17

Test

25 test cases across 4 categories: Functional (14), Automation (4), Security (5), Negative (2). Every Must Have requirement is covered by at least one test case.

14

Functional

4

Automation

5

Security

2

Negative

Test Cases

TC-001Functional

Create a supplier record with all required fields

REQ-001

Preconditions

Logged in as James Okafor.

Steps

  1. 1.Navigate to Suppliers screen.
  2. 2.Select New Supplier.
  3. 3.Complete all required fields.
  4. 4.Select Save.

Expected Result

A new supplier record is created. The supplier appears in the Suppliers gallery.

TC-002Functional

Supplier save fails when name is blank

REQ-001

Preconditions

Logged in as James Okafor. New Supplier form is open.

Steps

  1. 1.Leave the supplier name blank.
  2. 2.Select Save.

Expected Result

An error message appears: "Supplier name is required". The record is not saved.

TC-003Functional

Create a contract record with all required fields

REQ-005

Preconditions

Logged in as James Okafor. At least one supplier exists.

Steps

  1. 1.Navigate to Contracts screen.
  2. 2.Select New Contract.
  3. 3.Complete all required fields including Supplier lookup, StartDate, EndDate, NoticePeriodDays.
  4. 4.Select Save.

Expected Result

A new contract record is created. The contract appears in the Contracts gallery.

TC-004Functional

DaysToExpiry calculated correctly

REQ-006

Preconditions

CON-012 exists with EndDate = 31 Dec 2026.

Steps

  1. 1.Navigate to Contracts screen.
  2. 2.Find CON-012.
  3. 3.Observe the DaysToExpiry value.

Expected Result

DaysToExpiry = the number of days between today and 31 Dec 2026. The value is shown in red (within 30 days).

TC-005Functional

NoticePeriodDeadline calculated correctly on Contract Details

REQ-007

Preconditions

CON-001 exists with EndDate = 31 Mar 2027, NoticePeriodDays = 90.

Steps

  1. 1.Navigate to Contract Details for CON-001.
  2. 2.Observe the NoticePeriodDeadline value.

Expected Result

NoticePeriodDeadline = 31 Dec 2026 (90 days before 31 Mar 2027).

TC-006Functional

Contract Details shows linked services

REQ-013

Preconditions

CON-001 has at least 2 services linked to it.

Steps

  1. 1.Navigate to Contract Details for CON-001.
  2. 2.Select the Services tab.

Expected Result

All services linked to CON-001 are displayed.

TC-007Functional

Contract Details shows linked reviews

REQ-015

Preconditions

At least one review exists for CON-001.

Steps

  1. 1.Navigate to Contract Details for CON-001.
  2. 2.Select the Reviews tab.

Expected Result

All reviews for CON-001 are displayed, sorted by ReviewDate descending.

TC-008Functional

Create a review record

REQ-014

Preconditions

Logged in as James Okafor.

Steps

  1. 1.Navigate to Reviews screen.
  2. 2.Select New Review.
  3. 3.Select Contract = CON-004.
  4. 4.Verify Supplier is auto-populated as Meridian Facilities Group.
  5. 5.Complete remaining fields. Outcome = Renegotiate.
  6. 6.Select Save.

Expected Result

The review is saved. Supplier is auto-populated from the Contract. The review appears on the Contract Details screen for CON-004.

TC-009Functional

Create a risk record — RiskRating calculated by flow

REQ-017, REQ-018

Preconditions

Logged in as Priya Mehta.

Steps

  1. 1.Navigate to Risks screen.
  2. 2.Select New Risk.
  3. 3.Set Likelihood = High, Impact = High.
  4. 4.Complete remaining fields.
  5. 5.Select Save.
  6. 6.Wait 30 seconds for the DToDLab012-RiskRatingCalc flow to run.
  7. 7.Refresh the Risks screen.

Expected Result

The risk record is saved. After the flow runs, RiskRating = Critical.

TC-010Functional

Risk rating matrix — all 9 combinations

REQ-018

Preconditions

DToDLab012-RiskRatingCalc flow is active.

Steps

  1. 1.Create 9 test risk records with all combinations of Likelihood and Impact.
  2. 2.Wait for the flow to run for each.
  3. 3.Verify the RiskRating for each combination.

Expected Result

Low-Low=Low, Low-Medium=Low, Low-High=Medium, Medium-Low=Low, Medium-Medium=Medium, Medium-High=High, High-Low=Medium, High-Medium=High, High-High=Critical.

TC-011Functional

Create an action and mark it complete

REQ-020

Preconditions

Logged in as James Okafor.

Steps

  1. 1.Navigate to Actions screen.
  2. 2.Select New Action.
  3. 3.Complete all required fields. DueDate = yesterday.
  4. 4.Select Save.
  5. 5.Open the action.
  6. 6.Select Mark Complete.

Expected Result

The action is saved with Status = Open and a red DueDate (overdue). After marking complete, Status = Complete and CompletionDate = today. The action no longer appears in the overdue actions gallery.

TC-012Functional

Dashboard KPI cards show correct counts

REQ-030

Preconditions

Sample data from Stage 5 is entered.

Steps

  1. 1.Navigate to the Dashboard.
  2. 2.Observe all 4 KPI cards.

Expected Result

Contracts expiring in 30 days: at least 1 (CON-012). Open critical risks: at least 1 (RSK-001). Overdue actions: at least 1. Contracts under review: at least 2 (CON-004, CON-011).

TC-013Functional

Supplier filter by category works

REQ-003

Preconditions

Sample data entered.

Steps

  1. 1.Navigate to Suppliers screen.
  2. 2.Select Category = IT.

Expected Result

Only IT suppliers are shown: CloudCore Ltd, TechBridge Systems, DataVault Security.

TC-014Functional

Contract filter by criticality works

REQ-009

Preconditions

Sample data entered.

Steps

  1. 1.Navigate to Contracts screen.
  2. 2.Select Criticality = Critical.

Expected Result

Only Critical contracts are shown: CON-001 (IT Infrastructure Support) and CON-011 (Cyber Security Monitoring).

TC-015Automation

Contract reminder — 30-day reminder sent and flag updated

REQ-022, REQ-025

Preconditions

A test contract exists with EndDate = today + 30 days, ReminderSentFlags is blank.

Steps

  1. 1.Manually trigger DToDLab012-ContractReminder.
  2. 2.Check the ContractOwner's email inbox.
  3. 3.Check the ReminderSentFlags field in the Contracts list.

Expected Result

The ContractOwner receives a 30-day reminder email. ReminderSentFlags is updated to include "30".

TC-016Automation

Duplicate reminder prevention — second run does not send again

REQ-025

Preconditions

TC-015 completed. ReminderSentFlags contains "30".

Steps

  1. 1.Manually trigger DToDLab012-ContractReminder again.
  2. 2.Check the ContractOwner's email inbox.

Expected Result

No second reminder email is sent. ReminderSentFlags still contains "30" (not "30|30").

TC-017Automation

Risk rating flow triggers on risk creation

REQ-018

Preconditions

DToDLab012-RiskRatingCalc flow is active.

Steps

  1. 1.Create a new risk with Likelihood = Medium, Impact = High.
  2. 2.Wait 30 seconds.
  3. 3.Check the RiskRating field.

Expected Result

RiskRating = High (Medium × High = High per the risk matrix).

TC-018Automation

Overdue action reminder sent

REQ-024

Preconditions

An action exists with DueDate = yesterday, Status = Open.

Steps

  1. 1.Manually trigger DToDLab012-OverdueActions.
  2. 2.Check the action owner's email inbox.

Expected Result

The action owner receives an overdue reminder email.

TC-019Security

General employee cannot access the SharePoint site

REQ-027

Preconditions

A general employee account exists (not in the M365 group).

Steps

  1. 1.Log in as the general employee.
  2. 2.Navigate to the SharePoint site URL.

Expected Result

Access is denied.

TC-020Security

Finance user can read Contracts but cannot create

REQ-028

Preconditions

Logged in as Sandra Obi.

Steps

  1. 1.Navigate to the Contracts list in SharePoint.
  2. 2.Verify records are visible.
  3. 3.Attempt to create a new record.

Expected Result

Sandra Obi can read contract records. She cannot create new records (New button not available or save fails).

TC-021Security

Finance user cannot access Risks list

REQ-027

Preconditions

Logged in as Sandra Obi.

Steps

  1. 1.Navigate to the Risks list URL directly.

Expected Result

Access is denied.

TC-022Security

New Supplier button not visible to Finance user in Power App

REQ-027

Preconditions

Logged in as Sandra Obi.

Steps

  1. 1.Open the Power App.
  2. 2.Navigate to the Suppliers screen.

Expected Result

The New Supplier button is not visible (varIsProcurement = false for Sandra Obi).

TC-023Security

AnnualValue hidden from Service Owner in Power App

REQ-027

Preconditions

Logged in as Marcus Webb.

Steps

  1. 1.Open the Power App.
  2. 2.Navigate to Contract Details for CON-001.

Expected Result

The AnnualValue field is not visible (hidden for non-procurement users).

TC-024Negative

Contract save fails when EndDate is before StartDate

REQ-005

Preconditions

Logged in as James Okafor. New Contract form is open.

Steps

  1. 1.Set StartDate = 01 Jan 2027.
  2. 2.Set EndDate = 01 Dec 2026 (before StartDate).
  3. 3.Select Save.

Expected Result

An error message appears: "End date must be after start date". The record is not saved.

TC-025Negative

Risk record cannot be saved without a Supplier

REQ-017

Preconditions

Logged in as Priya Mehta. New Risk form is open.

Steps

  1. 1.Complete all fields except Supplier.
  2. 2.Select Save.

Expected Result

An error message appears: "Supplier is required". The record is not saved.

Stage Complete — What You Now Have

  • ✓25 test cases across 4 categories
  • ✓Functional: supplier/contract/review/risk/action CRUD, calculations, filters, dashboard
  • ✓Automation: contract reminder, duplicate prevention, risk rating, overdue actions
  • ✓Security: site access, Finance read-only, Risks access denied, UI hiding
  • ✓Negative: EndDate before StartDate, missing required Supplier

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