Stage 11 of 17

Stage 11 of 17

Testing

Testing is the process of verifying that the solution does what it was designed to do. Every requirement should have at least one test case. In this stage you will work through 12 test cases covering the Equipment Register, the Power Automate flow, and the security configuration.

Why Are We Doing This?

Testing is not optional. A system that has not been tested is a system that has not been verified. When you go live without testing, the users become your testers — and they will find problems at the worst possible time. Structured testing before go-live is a professional responsibility.

Test Approach

Test Type

Functional testing (user acceptance testing)

Test Environment

The live system with sample data (not a separate test environment)

Tester

IT team member (James Okafor) with IT Manager (Sarah Chen) reviewing results

Pass Criteria

All 12 test cases pass. No Must Have requirements are unmet.

Note: For this lab, you are both the builder and the tester. In a real project, testing should be done by someone other than the person who built the system — they are more likely to find problems because they approach it without assumptions about how it works.

Beginner Tip

When running test cases, record your results as you go. Note whether each test passed or failed, and if it failed, note exactly what happened. This creates a test record that you can share with the IT Manager and use as evidence that the system was tested before go-live.

Test Cases

TC-001

Add a new equipment record with all required fields

Req: FR-001, FR-002, FR-005

Preconditions

Equipment Register list exists. User is signed in with Edit permission.

Test Steps

  1. 1.Navigate to the Equipment Register in Microsoft Teams or SharePoint.
  2. 2.Select "+ New" to open the new item form.
  3. 3.Enter: Asset Name = "HP EliteBook 850", Asset ID = "ASSET-0020", Equipment Type = "Laptop", Make = "HP", Model = "EliteBook 850 G10", Status = "Available", Office / Location = "Edinburgh".
  4. 4.Leave Serial Number, Assigned To, Assignment Date, Purchase Date, Warranty Expiry Date, and Notes blank.
  5. 5.Select Save.

Expected Result

The record is saved successfully. It appears in the All Equipment view with the correct values. No error messages are shown.

Pass criteria: Record appears in the list with all entered values correct. Required fields are populated. Optional fields show as blank.

TC-002

Attempt to save a record without a required field

Req: FR-005

Preconditions

Equipment Register list exists. User is signed in with Edit permission.

Test Steps

  1. 1.Select "+ New" to open the new item form.
  2. 2.Enter Asset Name = "Test Laptop" but leave Equipment Type blank.
  3. 3.Select Save.

Expected Result

The form does not save. An error message is displayed indicating that Equipment Type is required. The form remains open.

Pass criteria: Form validation prevents saving. Error message clearly identifies the missing required field.

TC-003

Update equipment status from Available to Assigned

Req: FR-004, FR-005, FR-006

Preconditions

ASSET-0005 exists with Status = Available and Assigned To = blank.

Test Steps

  1. 1.Open ASSET-0005 (Dell XPS 15 Laptop, Available).
  2. 2.Select Edit.
  3. 3.Change Status to "Assigned".
  4. 4.Set Assigned To to "Priya Sharma" (select from People picker).
  5. 5.Set Assignment Date to today's date.
  6. 6.Select Save.

Expected Result

The record is updated. Status shows "Assigned". Assigned To shows Priya Sharma's name with presence indicator. Assignment Date shows today's date.

Pass criteria: Record shows correct values. The record no longer appears in the Available Equipment view. It appears in the Assigned Equipment view.

TC-004

Available Equipment view shows only available items

Req: FR-010

Preconditions

16 sample records entered. At least one record has Status = Available.

Test Steps

  1. 1.Navigate to the Equipment Register.
  2. 2.Switch to the "Available Equipment" view.
  3. 3.Count the records shown.
  4. 4.Verify that no records with Status = Assigned, In Repair, Retired, or Disposed are shown.

Expected Result

Only records with Status = Available are shown. The count matches the number of Available records in the sample data (5 records: ASSET-0005, ASSET-0008, ASSET-0011, ASSET-0012, ASSET-0015).

Pass criteria: View shows exactly 5 records. All shown records have Status = Available.

TC-005

Warranty Expiring Soon view shows correct items

Req: FR-010

Preconditions

At least one record has a Warranty Expiry Date within the next 90 days. At least one record has a Warranty Expiry Date more than 90 days away.

Test Steps

  1. 1.Temporarily set ASSET-0001's Warranty Expiry Date to a date 15 days from today.
  2. 2.Navigate to the "Warranty Expiring Soon" view.
  3. 3.Verify ASSET-0001 appears in the view.
  4. 4.Verify that records with warranty dates more than 90 days away do not appear.
  5. 5.Verify that Retired and Disposed records do not appear even if their warranty date is within 90 days.
  6. 6.Restore ASSET-0001's original warranty date.

Expected Result

Only records with Warranty Expiry Date within 90 days, not blank, and not Retired/Disposed are shown.

Pass criteria: ASSET-0001 appears in the view. Records outside the 90-day window do not appear. Retired/Disposed records do not appear.

TC-006

Search for equipment by assigned user

Req: FR-009, FR-013

Preconditions

At least two records are assigned to different employees.

Test Steps

  1. 1.Navigate to the Equipment Register.
  2. 2.Use the search bar (magnifying glass icon) to search for "James Okafor".
  3. 3.Review the results.

Expected Result

Only records assigned to James Okafor are shown. Records assigned to other employees are not shown.

Pass criteria: Search returns ASSET-0001 and ASSET-0006 (and ASSET-0013 if entered). No records assigned to other employees appear.

TC-007

Audit trail records changes

Req: FR-012

Preconditions

ASSET-0001 exists. User is signed in with Edit permission.

Test Steps

  1. 1.Open ASSET-0001.
  2. 2.Select Edit and change the Notes field to "Audit trail test — [your name] — [today's date]".
  3. 3.Select Save.
  4. 4.Open ASSET-0001 again.
  5. 5.Select the information icon (ⓘ) or look for "Version history" in the item menu.
  6. 6.Review the version history.

Expected Result

Version history shows the change to the Notes field, the date and time of the change, and the name of the user who made the change.

Pass criteria: Version history entry exists showing the Notes field change, the correct timestamp, and the correct user name.

TC-008

Read-only user cannot edit records

Req: SEC-001, SEC-002

Preconditions

A test account with Read (Site Visitor) permission exists.

Test Steps

  1. 1.Sign in with the Read-only test account.
  2. 2.Navigate to the Equipment Register.
  3. 3.Attempt to open a record and edit it.
  4. 4.Attempt to select "+ New" to add a record.

Expected Result

The user can view records but cannot edit them. The edit option is not available or shows an "Access denied" message. The "+ New" button is not visible or shows an error.

Pass criteria: No edit or add capability is available to the Read-only user.

TC-009

Power Automate flow sends email when qualifying items exist

Req: FR-007, FR-008, FR-014

Preconditions

Power Automate flow is saved. At least one record has a Warranty Expiry Date within the next 30 days.

Test Steps

  1. 1.Set ASSET-0001's Warranty Expiry Date to a date 10 days from today.
  2. 2.Open the Power Automate flow.
  3. 3.Select Test → Manually → Test.
  4. 4.Wait for the flow to complete.
  5. 5.Check the IT team mailbox for the alert email.

Expected Result

The flow completes with "Succeeded" status. An email arrives in the IT team mailbox with subject containing "Warranty Alert". The email body lists ASSET-0001 with the correct details.

Pass criteria: Email received. Subject contains "Warranty Alert". Body lists ASSET-0001 with asset name, asset ID, assigned user, and expiry date.

TC-010

Power Automate flow does not send email when no qualifying items exist

Req: FR-008

Preconditions

Power Automate flow is saved. All records have Warranty Expiry Dates more than 30 days away or blank.

Test Steps

  1. 1.Ensure all Warranty Expiry Dates are either blank or more than 30 days in the future.
  2. 2.Open the Power Automate flow.
  3. 3.Select Test → Manually → Test.
  4. 4.Wait for the flow to complete.
  5. 5.Check the IT team mailbox.

Expected Result

The flow completes with "Succeeded" status (via the Terminate action). No email is sent to the IT team mailbox.

Pass criteria: Flow run history shows "Succeeded". No email received. Run detail shows the Terminate action was taken in the No branch.

TC-011

Equipment Register accessible from Microsoft Teams

Req: FR-011, NFR-005

Preconditions

Equipment Register tab has been added to the IT team Teams channel.

Test Steps

  1. 1.Open Microsoft Teams.
  2. 2.Navigate to the IT team channel.
  3. 3.Select the Equipment Register tab.
  4. 4.Verify the list loads and all records are visible.
  5. 5.Switch between views using the view selector.
  6. 6.Add a test record from within Teams.
  7. 7.Delete the test record.

Expected Result

The Equipment Register loads correctly in Teams. All views are accessible. Records can be added and deleted from within Teams.

Pass criteria: All actions complete successfully within the Teams interface without needing to open a browser.

TC-012

Export to Excel

Req: RPT-001

Preconditions

Equipment Register contains at least 16 records. User has at least Read permission.

Test Steps

  1. 1.Navigate to the Equipment Register.
  2. 2.Select the export option (usually found in the toolbar — look for "Export to Excel" or a download icon).
  3. 3.Open the downloaded file in Excel.
  4. 4.Verify all records and columns are present.

Expected Result

An Excel file is downloaded containing all records and all columns from the current view.

Pass criteria: Excel file contains all 16+ records. All column values are correct.

Test Results Record

Use the following table to record your test results. Complete it as you work through the test cases above.

Test IDTitleResultNotes
TC-001Add a new equipment record with all required fields
PassFail
Record any issues here
TC-002Attempt to save a record without a required field
PassFail
Record any issues here
TC-003Update equipment status from Available to Assigned
PassFail
Record any issues here
TC-004Available Equipment view shows only available items
PassFail
Record any issues here
TC-005Warranty Expiring Soon view shows correct items
PassFail
Record any issues here
TC-006Search for equipment by assigned user
PassFail
Record any issues here
TC-007Audit trail records changes
PassFail
Record any issues here
TC-008Read-only user cannot edit records
PassFail
Record any issues here
TC-009Power Automate flow sends email when qualifying items exist
PassFail
Record any issues here
TC-010Power Automate flow does not send email when no qualifying items exist
PassFail
Record any issues here
TC-011Equipment Register accessible from Microsoft Teams
PassFail
Record any issues here
TC-012Export to Excel
PassFail
Record any issues here

Common Mistake

If a test case fails, do not move on to the next one immediately. Investigate the failure, fix the issue, and re-run the test case to confirm it now passes. Document both the failure and the fix. A test case that was fixed and re-run is more valuable evidence than a test case that was skipped.

Try It Yourself — Run All 12 Test Cases

Work through all 12 test cases above. Record your results in the table. When you have completed all 12:

  1. 1.How many test cases passed on the first attempt?
  2. 2.Did any test cases fail? If so, what was the issue and how did you fix it?
  3. 3.Which test case was the most difficult to execute and why?
  4. 4.Are there any requirements from the requirements stage that are not covered by these test cases? If so, write an additional test case for one of them.

Application Support View

Test cases are not just for the build phase — they are also useful for support. When a user reports a problem, you can re-run the relevant test case to confirm whether the system is behaving as designed. If the test case passes, the issue may be user error or a data problem. If it fails, you have a genuine bug to investigate.

Stage Complete — What You Now Have

  • ✓12 structured test cases covering all key requirements
  • ✓A test results record template for documenting outcomes
  • ✓A tested, verified Equipment Register and Power Automate flow
  • ✓Understanding of how to re-run test cases for support purposes

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