Stage 11 of 17
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?
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
Add a new equipment record with all required fields
Preconditions
Equipment Register list exists. User is signed in with Edit permission.
Test Steps
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.
Attempt to save a record without a required field
Preconditions
Equipment Register list exists. User is signed in with Edit permission.
Test Steps
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.
Update equipment status from Available to Assigned
Preconditions
ASSET-0005 exists with Status = Available and Assigned To = blank.
Test Steps
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.
Available Equipment view shows only available items
Preconditions
16 sample records entered. At least one record has Status = Available.
Test Steps
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.
Warranty Expiring Soon view shows correct items
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
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.
Search for equipment by assigned user
Preconditions
At least two records are assigned to different employees.
Test Steps
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.
Audit trail records changes
Preconditions
ASSET-0001 exists. User is signed in with Edit permission.
Test Steps
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.
Read-only user cannot edit records
Preconditions
A test account with Read (Site Visitor) permission exists.
Test Steps
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.
Power Automate flow sends email when qualifying items exist
Preconditions
Power Automate flow is saved. At least one record has a Warranty Expiry Date within the next 30 days.
Test Steps
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.
Power Automate flow does not send email when no qualifying items exist
Preconditions
Power Automate flow is saved. All records have Warranty Expiry Dates more than 30 days away or blank.
Test Steps
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.
Equipment Register accessible from Microsoft Teams
Preconditions
Equipment Register tab has been added to the IT team Teams channel.
Test Steps
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.
Export to Excel
Preconditions
Equipment Register contains at least 16 records. User has at least Read permission.
Test Steps
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.
Use the following table to record your test results. Complete it as you work through the test cases above.
| Test ID | Title | Result | Notes |
|---|---|---|---|
| TC-001 | Add a new equipment record with all required fields | PassFail | Record any issues here |
| TC-002 | Attempt to save a record without a required field | PassFail | Record any issues here |
| TC-003 | Update equipment status from Available to Assigned | PassFail | Record any issues here |
| TC-004 | Available Equipment view shows only available items | PassFail | Record any issues here |
| TC-005 | Warranty Expiring Soon view shows correct items | PassFail | Record any issues here |
| TC-006 | Search for equipment by assigned user | PassFail | Record any issues here |
| TC-007 | Audit trail records changes | PassFail | Record any issues here |
| TC-008 | Read-only user cannot edit records | PassFail | Record any issues here |
| TC-009 | Power Automate flow sends email when qualifying items exist | PassFail | Record any issues here |
| TC-010 | Power Automate flow does not send email when no qualifying items exist | PassFail | Record any issues here |
| TC-011 | Equipment Register accessible from Microsoft Teams | PassFail | Record any issues here |
| TC-012 | Export to Excel | PassFail | Record any issues here |
Common Mistake
Work through all 12 test cases above. Record your results in the table. When you have completed all 12:
Application Support View
Need more help with the concepts?
Visit DosToDigital for guides, templates, and deeper explanations.