Stage 11 of 17
25 test cases across 5 categories. 5 calculation tests covering all 3 billing frequencies and the availability calculation. Every Must Have requirement is covered by at least one test case.
9
Functional
7
Calculation
4
Automation
4
Security
1
Negative
Create a product record
Preconditions
Logged in as Tom Reeves.
Steps
Expected Result
The product is saved. It appears in the Products gallery.
Create an agreement record with all required fields
Preconditions
Logged in as Tom Reeves. At least one product and supplier exist.
Steps
Expected Result
The agreement is saved. It appears in the Agreements gallery.
AnnualisedCost — Monthly billing
Preconditions
AGR-001 exists: 300 licences, £15.90/month.
Steps
Expected Result
AnnualisedCost = £57,240 (300 × £15.90 × 12).
AnnualisedCost — Annual billing
Preconditions
AGR-002 exists: 25 licences, £624/year.
Steps
Expected Result
AnnualisedCost = £15,600 (25 × £624 × 1).
AnnualisedCost — 3-Year billing
Preconditions
AGR-005 exists: 50 licences, £1,200/3-year.
Steps
Expected Result
AnnualisedCost = £20,000 (50 × £1,200 ÷ 3).
QuantityAllocated calculated correctly
Preconditions
AGR-001 has 305 active allocations and 0 inactive allocations.
Steps
Expected Result
QuantityAllocated = 305.
QuantityAvailable calculated correctly — over-allocated
Preconditions
AGR-001: QuantityPurchased = 300, QuantityAllocated = 305.
Steps
Expected Result
QuantityAvailable = -5. Compliance badge = "Over-Allocated" (red).
QuantityAvailable calculated correctly — compliant
Preconditions
AGR-002: QuantityPurchased = 25, QuantityAllocated = 18.
Steps
Expected Result
QuantityAvailable = 7. Compliance badge = "Compliant" (green).
QuantityAvailable = 0 when no allocations
Preconditions
AGR-010 (DocuSign, 15 licences) has no active allocations.
Steps
Expected Result
QuantityAvailable = 15. Compliance badge = "Under-Utilised" (amber).
New Allocation — save succeeds when licences available
Preconditions
AGR-002 has QuantityAvailable = 7. Logged in as James Okafor.
Steps
Expected Result
QuantityAvailable on form = 7. Allocation is saved. QuantityAllocated for AGR-002 increases by 1.
New Allocation — Save disabled when no licences available
Preconditions
A test agreement exists with QuantityPurchased = 2 and 2 active allocations (QuantityAvailable = 0).
Steps
Expected Result
Warning banner is visible: "No licences available — purchase additional licences before allocating." Save button is disabled.
Deallocate a licence
Preconditions
ALL-001 is an active allocation for AGR-001. Logged in as James Okafor.
Steps
Expected Result
ALL-001 Status = Inactive. DeallocationDate = today. QuantityAllocated for AGR-001 decreases by 1. ALL-001 moves from the Allocations tab to the History tab.
Allocations filter by department
Preconditions
Sample data entered with allocations across multiple departments.
Steps
Expected Result
Only Finance allocations are shown.
Dashboard KPI cards show correct values
Preconditions
Sample data from Stage 5 is entered.
Steps
Expected Result
Total Active Agreements ≥ 10. Total Annualised Spend ≥ £100,000. Expiring in 90 Days ≥ 1 (AGR-012). Over-Allocated ≥ 1 (AGR-001).
Renewals screen shows correct colour coding
Preconditions
AGR-012 has RenewalDate = 15 Dec 2026 (within 30 days). AGR-003 has RenewalDate = 31 Mar 2027 (within 90 days).
Steps
Expected Result
AGR-012 DaysToRenewal is red (≤ 30 days). AGR-003 DaysToRenewal is amber (≤ 90 days).
Renewal reminder sent at 90 days
Preconditions
A test agreement exists with RenewalDate = today + 90 days. ReminderSentFlags is blank.
Steps
Expected Result
Owner receives a 90-day reminder email. ReminderSentFlags = "90".
Duplicate reminder prevention
Preconditions
TC-016 completed. ReminderSentFlags = "90".
Steps
Expected Result
No second 90-day reminder email is sent. ReminderSentFlags still = "90".
Availability alert sent when threshold reached
Preconditions
AGR-002 has 25 licences. Threshold = max(1, int(25 × 0.1)) = 2. Currently 22 active allocations (QuantityAvailable = 3).
Steps
Expected Result
Tom Reeves receives a low availability notification. Subject includes "Low licence availability: Adobe Creative Cloud".
Over-allocation alert sent
Preconditions
AGR-002 has 25 licences and 25 active allocations (QuantityAvailable = 0).
Steps
Expected Result
Tom Reeves receives an URGENT over-allocation alert. Subject includes "URGENT: Over-Allocated licence".
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 Agreements but cannot create
Preconditions
Logged in as Sandra Obi.
Steps
Expected Result
Sandra Obi can read agreement records. She cannot create new records.
Department manager sees only own department allocations in Power App
Preconditions
Logged in as Marcus Webb (Operations).
Steps
Expected Result
Only Operations allocations are shown. Finance, HR, Marketing, and Sales allocations are not visible.
Cost data hidden from department manager in Power App
Preconditions
Logged in as Marcus Webb.
Steps
Expected Result
The AnnualisedCost column is not visible (varIsFinanceOrIT = false for Marcus Webb).
Agreement save fails when QuantityPurchased is 0
Preconditions
Logged in as Tom Reeves. New Agreement form is open.
Steps
Expected Result
An error message appears or the save fails. QuantityPurchased must be greater than 0.
Compliance Report shows correct compliance status for all agreements
Preconditions
Sample data entered. AGR-001 is over-allocated. AGR-010 has no allocations.
Steps
Expected Result
AGR-001 ComplianceStatus = "Over-Allocated" (red). AGR-010 ComplianceStatus = "Under-Utilised" (amber). All other active agreements with allocations = "Compliant" (green).
Need more help with the concepts?
Visit DosToDigital for guides, templates, and deeper explanations.