Stage 11 of 17
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
Create a supplier record with all required fields
Preconditions
Logged in as James Okafor.
Steps
Expected Result
A new supplier record is created. The supplier appears in the Suppliers gallery.
Supplier save fails when name is blank
Preconditions
Logged in as James Okafor. New Supplier form is open.
Steps
Expected Result
An error message appears: "Supplier name is required". The record is not saved.
Create a contract record with all required fields
Preconditions
Logged in as James Okafor. At least one supplier exists.
Steps
Expected Result
A new contract record is created. The contract appears in the Contracts gallery.
DaysToExpiry calculated correctly
Preconditions
CON-012 exists with EndDate = 31 Dec 2026.
Steps
Expected Result
DaysToExpiry = the number of days between today and 31 Dec 2026. The value is shown in red (within 30 days).
NoticePeriodDeadline calculated correctly on Contract Details
Preconditions
CON-001 exists with EndDate = 31 Mar 2027, NoticePeriodDays = 90.
Steps
Expected Result
NoticePeriodDeadline = 31 Dec 2026 (90 days before 31 Mar 2027).
Contract Details shows linked services
Preconditions
CON-001 has at least 2 services linked to it.
Steps
Expected Result
All services linked to CON-001 are displayed.
Contract Details shows linked reviews
Preconditions
At least one review exists for CON-001.
Steps
Expected Result
All reviews for CON-001 are displayed, sorted by ReviewDate descending.
Create a review record
Preconditions
Logged in as James Okafor.
Steps
Expected Result
The review is saved. Supplier is auto-populated from the Contract. The review appears on the Contract Details screen for CON-004.
Create a risk record — RiskRating calculated by flow
Preconditions
Logged in as Priya Mehta.
Steps
Expected Result
The risk record is saved. After the flow runs, RiskRating = Critical.
Risk rating matrix — all 9 combinations
Preconditions
DToDLab012-RiskRatingCalc flow is active.
Steps
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.
Create an action and mark it complete
Preconditions
Logged in as James Okafor.
Steps
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.
Dashboard KPI cards show correct counts
Preconditions
Sample data from Stage 5 is entered.
Steps
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).
Supplier filter by category works
Preconditions
Sample data entered.
Steps
Expected Result
Only IT suppliers are shown: CloudCore Ltd, TechBridge Systems, DataVault Security.
Contract filter by criticality works
Preconditions
Sample data entered.
Steps
Expected Result
Only Critical contracts are shown: CON-001 (IT Infrastructure Support) and CON-011 (Cyber Security Monitoring).
Contract reminder — 30-day reminder sent and flag updated
Preconditions
A test contract exists with EndDate = today + 30 days, ReminderSentFlags is blank.
Steps
Expected Result
The ContractOwner receives a 30-day reminder email. ReminderSentFlags is updated to include "30".
Duplicate reminder prevention — second run does not send again
Preconditions
TC-015 completed. ReminderSentFlags contains "30".
Steps
Expected Result
No second reminder email is sent. ReminderSentFlags still contains "30" (not "30|30").
Risk rating flow triggers on risk creation
Preconditions
DToDLab012-RiskRatingCalc flow is active.
Steps
Expected Result
RiskRating = High (Medium × High = High per the risk matrix).
Overdue action reminder sent
Preconditions
An action exists with DueDate = yesterday, Status = Open.
Steps
Expected Result
The action owner receives an overdue reminder email.
General employee cannot access the SharePoint site
Preconditions
A general employee account exists (not in the M365 group).
Steps
Expected Result
Access is denied.
Finance user can read Contracts but cannot create
Preconditions
Logged in as Sandra Obi.
Steps
Expected Result
Sandra Obi can read contract records. She cannot create new records (New button not available or save fails).
Finance user cannot access Risks list
Preconditions
Logged in as Sandra Obi.
Steps
Expected Result
Access is denied.
New Supplier button not visible to Finance user in Power App
Preconditions
Logged in as Sandra Obi.
Steps
Expected Result
The New Supplier button is not visible (varIsProcurement = false for Sandra Obi).
AnnualValue hidden from Service Owner in Power App
Preconditions
Logged in as Marcus Webb.
Steps
Expected Result
The AnnualValue field is not visible (hidden for non-procurement users).
Contract save fails when EndDate is before StartDate
Preconditions
Logged in as James Okafor. New Contract form is open.
Steps
Expected Result
An error message appears: "End date must be after start date". The record is not saved.
Risk record cannot be saved without a Supplier
Preconditions
Logged in as Priya Mehta. New Risk form is open.
Steps
Expected Result
An error message appears: "Supplier is required". The record is not saved.
Need more help with the concepts?
Visit DosToDigital for guides, templates, and deeper explanations.