Stage 11 of 17

Stage 11 of 17

Test

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

TC-001Functional

Create a product record

REQ-001

Preconditions

Logged in as Tom Reeves.

Steps

  1. 1.Navigate to Products screen.
  2. 2.Select New Product.
  3. 3.Complete all required fields: Title = "Power BI Pro", Publisher = "Microsoft", Category = "Productivity".
  4. 4.Select Save.

Expected Result

The product is saved. It appears in the Products gallery.

TC-002Functional

Create an agreement record with all required fields

REQ-006, REQ-007

Preconditions

Logged in as Tom Reeves. At least one product and supplier exist.

Steps

  1. 1.Navigate to Agreements screen.
  2. 2.Select New Agreement.
  3. 3.Complete all required fields: Product = Microsoft 365 Business Premium, Supplier = Microsoft Ltd, LicenceType = Per User, QuantityPurchased = 50, UnitCost = £15.90, BillingFrequency = Monthly, StartDate = 01 Jan 2027, RenewalDate = 31 Dec 2027, Owner = Tom Reeves.
  4. 4.Select Save.

Expected Result

The agreement is saved. It appears in the Agreements gallery.

TC-003Calculation

AnnualisedCost — Monthly billing

REQ-008

Preconditions

AGR-001 exists: 300 licences, £15.90/month.

Steps

  1. 1.Navigate to Agreements screen.
  2. 2.Find AGR-001.
  3. 3.Observe the AnnualisedCost value.

Expected Result

AnnualisedCost = £57,240 (300 × £15.90 × 12).

TC-004Calculation

AnnualisedCost — Annual billing

REQ-008

Preconditions

AGR-002 exists: 25 licences, £624/year.

Steps

  1. 1.Navigate to Agreements screen.
  2. 2.Find AGR-002.
  3. 3.Observe the AnnualisedCost value.

Expected Result

AnnualisedCost = £15,600 (25 × £624 × 1).

TC-005Calculation

AnnualisedCost — 3-Year billing

REQ-008

Preconditions

AGR-005 exists: 50 licences, £1,200/3-year.

Steps

  1. 1.Navigate to Agreements screen.
  2. 2.Find AGR-005.
  3. 3.Observe the AnnualisedCost value.

Expected Result

AnnualisedCost = £20,000 (50 × £1,200 ÷ 3).

TC-006Calculation

QuantityAllocated calculated correctly

REQ-009

Preconditions

AGR-001 has 305 active allocations and 0 inactive allocations.

Steps

  1. 1.Navigate to Licence Details for AGR-001.
  2. 2.Observe QuantityAllocated.

Expected Result

QuantityAllocated = 305.

TC-007Calculation

QuantityAvailable calculated correctly — over-allocated

REQ-009, REQ-010

Preconditions

AGR-001: QuantityPurchased = 300, QuantityAllocated = 305.

Steps

  1. 1.Navigate to Licence Details for AGR-001.
  2. 2.Observe QuantityAvailable and compliance badge.

Expected Result

QuantityAvailable = -5. Compliance badge = "Over-Allocated" (red).

TC-008Calculation

QuantityAvailable calculated correctly — compliant

REQ-009

Preconditions

AGR-002: QuantityPurchased = 25, QuantityAllocated = 18.

Steps

  1. 1.Navigate to Licence Details for AGR-002.
  2. 2.Observe QuantityAvailable and compliance badge.

Expected Result

QuantityAvailable = 7. Compliance badge = "Compliant" (green).

TC-009Calculation

QuantityAvailable = 0 when no allocations

REQ-009

Preconditions

AGR-010 (DocuSign, 15 licences) has no active allocations.

Steps

  1. 1.Navigate to Licence Details for AGR-010.
  2. 2.Observe QuantityAvailable and compliance badge.

Expected Result

QuantityAvailable = 15. Compliance badge = "Under-Utilised" (amber).

TC-010Functional

New Allocation — save succeeds when licences available

REQ-013, REQ-014

Preconditions

AGR-002 has QuantityAvailable = 7. Logged in as James Okafor.

Steps

  1. 1.Navigate to Licence Details for AGR-002.
  2. 2.Select New Allocation.
  3. 3.Complete all required fields.
  4. 4.Observe QuantityAvailable on the form.
  5. 5.Select Save.

Expected Result

QuantityAvailable on form = 7. Allocation is saved. QuantityAllocated for AGR-002 increases by 1.

TC-011Functional

New Allocation — Save disabled when no licences available

REQ-015

Preconditions

A test agreement exists with QuantityPurchased = 2 and 2 active allocations (QuantityAvailable = 0).

Steps

  1. 1.Navigate to New Allocation.
  2. 2.Select the test agreement.
  3. 3.Observe the warning banner and Save button.

Expected Result

Warning banner is visible: "No licences available — purchase additional licences before allocating." Save button is disabled.

TC-012Functional

Deallocate a licence

REQ-016

Preconditions

ALL-001 is an active allocation for AGR-001. Logged in as James Okafor.

Steps

  1. 1.Navigate to Licence Details for AGR-001.
  2. 2.Select the Allocations tab.
  3. 3.Find ALL-001.
  4. 4.Select Deallocate.

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.

TC-013Functional

Allocations filter by department

REQ-017

Preconditions

Sample data entered with allocations across multiple departments.

Steps

  1. 1.Navigate to Allocations screen.
  2. 2.Select Department = Finance.

Expected Result

Only Finance allocations are shown.

TC-014Functional

Dashboard KPI cards show correct values

REQ-021

Preconditions

Sample data from Stage 5 is entered.

Steps

  1. 1.Navigate to Dashboard.
  2. 2.Observe all 5 KPI cards.

Expected Result

Total Active Agreements ≥ 10. Total Annualised Spend ≥ £100,000. Expiring in 90 Days ≥ 1 (AGR-012). Over-Allocated ≥ 1 (AGR-001).

TC-015Functional

Renewals screen shows correct colour coding

REQ-018

Preconditions

AGR-012 has RenewalDate = 15 Dec 2026 (within 30 days). AGR-003 has RenewalDate = 31 Mar 2027 (within 90 days).

Steps

  1. 1.Navigate to Renewals screen.
  2. 2.Observe DaysToRenewal colour for AGR-012 and AGR-003.

Expected Result

AGR-012 DaysToRenewal is red (≤ 30 days). AGR-003 DaysToRenewal is amber (≤ 90 days).

TC-016Automation

Renewal reminder sent at 90 days

REQ-018

Preconditions

A test agreement exists with RenewalDate = today + 90 days. ReminderSentFlags is blank.

Steps

  1. 1.Manually trigger DToDLab013-RenewalReminder.
  2. 2.Check the Owner's email inbox.
  3. 3.Check the ReminderSentFlags field.

Expected Result

Owner receives a 90-day reminder email. ReminderSentFlags = "90".

TC-017Automation

Duplicate reminder prevention

REQ-019

Preconditions

TC-016 completed. ReminderSentFlags = "90".

Steps

  1. 1.Manually trigger DToDLab013-RenewalReminder again.
  2. 2.Check the Owner's email inbox.

Expected Result

No second 90-day reminder email is sent. ReminderSentFlags still = "90".

TC-018Automation

Availability alert sent when threshold reached

REQ-020

Preconditions

AGR-002 has 25 licences. Threshold = max(1, int(25 × 0.1)) = 2. Currently 22 active allocations (QuantityAvailable = 3).

Steps

  1. 1.Create a new allocation for AGR-002 (QuantityAvailable becomes 2).
  2. 2.Wait for DToDLab013-AvailabilityAlert to trigger.
  3. 3.Check Tom Reeves' email inbox.

Expected Result

Tom Reeves receives a low availability notification. Subject includes "Low licence availability: Adobe Creative Cloud".

TC-019Automation

Over-allocation alert sent

REQ-020

Preconditions

AGR-002 has 25 licences and 25 active allocations (QuantityAvailable = 0).

Steps

  1. 1.Create a new allocation for AGR-002 (QuantityAvailable becomes -1).
  2. 2.Wait for DToDLab013-AvailabilityAlert to trigger.
  3. 3.Check Tom Reeves' email inbox.

Expected Result

Tom Reeves receives an URGENT over-allocation alert. Subject includes "URGENT: Over-Allocated licence".

TC-020Security

General employee cannot access the SharePoint site

REQ-023

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-021Security

Finance user can read Agreements but cannot create

REQ-023

Preconditions

Logged in as Sandra Obi.

Steps

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

Expected Result

Sandra Obi can read agreement records. She cannot create new records.

TC-022Security

Department manager sees only own department allocations in Power App

REQ-024

Preconditions

Logged in as Marcus Webb (Operations).

Steps

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

Expected Result

Only Operations allocations are shown. Finance, HR, Marketing, and Sales allocations are not visible.

TC-023Security

Cost data hidden from department manager in Power App

REQ-023

Preconditions

Logged in as Marcus Webb.

Steps

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

Expected Result

The AnnualisedCost column is not visible (varIsFinanceOrIT = false for Marcus Webb).

TC-024Negative

Agreement save fails when QuantityPurchased is 0

REQ-007

Preconditions

Logged in as Tom Reeves. New Agreement form is open.

Steps

  1. 1.Set QuantityPurchased = 0.
  2. 2.Complete all other required fields.
  3. 3.Select Save.

Expected Result

An error message appears or the save fails. QuantityPurchased must be greater than 0.

TC-025Functional

Compliance Report shows correct compliance status for all agreements

REQ-022

Preconditions

Sample data entered. AGR-001 is over-allocated. AGR-010 has no allocations.

Steps

  1. 1.Navigate to Compliance Report screen.
  2. 2.Observe the ComplianceStatus for AGR-001 and AGR-010.

Expected Result

AGR-001 ComplianceStatus = "Over-Allocated" (red). AGR-010 ComplianceStatus = "Under-Utilised" (amber). All other active agreements with allocations = "Compliant" (green).

Stage Complete — What You Now Have

  • ✓25 test cases across 5 categories
  • ✓Calculation tests: AnnualisedCost (Monthly, Annual, 3-Year), QuantityAllocated, QuantityAvailable (over-allocated, compliant, under-utilised)
  • ✓Automation tests: renewal reminder, duplicate prevention, availability alert, over-allocation alert
  • ✓Security tests: site access, Finance read-only, department manager filtering, cost data hiding

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