Stage 11 of 17

Stage 11 of 17

Test

16 test cases mapped to requirements. Each test case has preconditions, step-by-step instructions, and a clear expected result. Execute every test case and record the outcome before proceeding to the Troubleshoot stage.

Why Are We Doing This?

Testing is not optional. A test case that passes gives you confidence that the requirement is met. A test case that fails tells you exactly what to fix. Without structured testing, you will discover problems in production — when real visitors are standing at reception.

2

Happy Path

2

Validation

1

Walk-in

2

Cancellation

1

No Show

2

Notification

2

Permissions

1

Privacy

1

Search

1

Automation Failure

1

Filtering

Test Cases

TC-001Happy Path

Pre-register a visitor and check in on arrival

REQ-001, REQ-005, REQ-006

Preconditions

Logged in as Employee A (host). Reception user available for check-in.

Steps

  1. 1.Log in as Employee A. Navigate to Register Visitor.
  2. 2.Enter: Visitor Name = "James Thornton", Organisation = "Meridian Consulting", Type = Client, Expected Date = today, Expected Time = 10:30, Purpose = "Project review", Office = London.
  3. 3.Select Register Visitor.
  4. 4.Log in as Reception. Navigate to Today's Visitors.
  5. 5.Find James Thornton in the list. Select Check In.
  6. 6.Check the host's email inbox.

Expected Result

Visit record created with status Expected. After check-in, status changes to Arrived. Host receives arrival notification email within 2 minutes. Status changes to Host Notified after notification is sent.

TC-002Happy Path

Check out a visitor

REQ-008

Preconditions

A visit record exists with status Arrived or Host Notified.

Steps

  1. 1.Log in as Reception. Navigate to On Site Now.
  2. 2.Find the visitor. Select Check Out.
  3. 3.Verify the status and departure time.

Expected Result

Status changes to Departed. ActualDeparture is set to the current date and time. The visitor no longer appears in the On Site Now list.

TC-003Validation

Register visitor with missing required fields

REQ-002

Preconditions

Logged in as any employee.

Steps

  1. 1.Navigate to Register Visitor.
  2. 2.Leave Visitor Name blank.
  3. 3.Complete all other fields.
  4. 4.Select Register Visitor.

Expected Result

An error notification is displayed: "Please complete all required fields." No record is created in the Visits list.

TC-004Validation

Register visitor with a past expected date

REQ-002

Preconditions

Logged in as any employee.

Steps

  1. 1.Navigate to Register Visitor.
  2. 2.Set Expected Date to yesterday.
  3. 3.Complete all other fields.
  4. 4.Select Register Visitor.

Expected Result

An error notification is displayed. No record is created. (Note: this requires a validation check in the OnSelect formula — verify your formula includes this check.)

TC-005Walk-in

Check in a walk-in visitor (not pre-registered)

REQ-007

Preconditions

Logged in as Reception.

Steps

  1. 1.Navigate to Reception Actions.
  2. 2.Enter: Visitor Name = "Liam O'Brien", Organisation = "CloudNet Solutions", Type = Contractor, Host Name = "Priya Mehta", Host Email = "priya.mehta@contoso.co.uk", Purpose = "Network maintenance", Office = London.
  3. 3.Select Check In Now.

Expected Result

A new visit record is created with status Arrived and ActualArrival set to now. The visitor appears in the On Site Now list. The host receives an arrival notification.

TC-006Cancellation

Host cancels a pre-registered visit

REQ-012

Preconditions

A visit record exists with status Expected. Logged in as the host.

Steps

  1. 1.Log in as the host. Navigate to My Upcoming Visits.
  2. 2.Select the visit.
  3. 3.Select Cancel Visit.
  4. 4.Confirm the cancellation.

Expected Result

Status changes to Cancelled. The visit no longer appears in Today's Visitors (active visits). The visit record is retained with status Cancelled.

TC-007Cancellation

Employee cannot cancel another employee's visit

REQ-012, REQ-018

Preconditions

A visit record exists for Employee A. Logged in as Employee B.

Steps

  1. 1.Log in as Employee B.
  2. 2.Attempt to navigate to Employee A's visit record.
  3. 3.Verify whether the Cancel Visit button is visible.

Expected Result

Employee B cannot see Employee A's visit in My Upcoming Visits (filtered to current user). If Employee B navigates to the Visitor Details screen directly, the Cancel Visit button is not visible (Visible formula checks HostEmail = User().Email).

TC-008No Show

Mark a visitor as No Show

REQ-013

Preconditions

A visit record exists with status Expected. Logged in as Reception.

Steps

  1. 1.Log in as Reception. Navigate to Today's Visitors.
  2. 2.Find a visit with status Expected.
  3. 3.Select the visit to open Visitor Details.
  4. 4.Select Mark No Show.

Expected Result

Status changes to No Show. The visit no longer appears in the Expected view. The visit record is retained with status No Show.

TC-009Notification

Host arrival notification is sent within 2 minutes

REQ-006, REQ-009, SC-002

Preconditions

A visit record exists with status Expected. Host email is correct.

Steps

  1. 1.Note the current time.
  2. 2.Log in as Reception. Check in the visitor.
  3. 3.Monitor the host's email inbox.
  4. 4.Note the time the notification email is received.

Expected Result

The notification email is received within 2 minutes of check-in. The email contains: visitor name, organisation, expected time, actual arrival time.

TC-010Notification

Daily expected visitors summary is sent at 08:00

REQ-010

Preconditions

At least one visit record exists with status Expected for today.

Steps

  1. 1.Ensure at least one Expected visit exists for today.
  2. 2.Manually trigger the DToDLab004-ExpectedVisitorsSummary flow using the Test button.
  3. 3.Check the reception team email inbox.

Expected Result

An email is received with the subject "Expected visitors today — [date]". The email contains an HTML table listing all Expected visits for today.

TC-011Permissions

Employee cannot check in a visitor

REQ-017

Preconditions

Logged in as an employee (not reception).

Steps

  1. 1.Log in as an employee.
  2. 2.Navigate to Today's Visitors (if accessible).
  3. 3.Verify whether the Check In button is visible.

Expected Result

The Check In button is not visible to employees. The Today's Visitors screen may not be accessible from the Home Screen (button hidden for non-reception users).

TC-012Permissions

Facilities user can view On Site Now (read-only)

REQ-015, REQ-017

Preconditions

Logged in as a Facilities user.

Steps

  1. 1.Log in as a Facilities user.
  2. 2.Navigate to On Site Now.
  3. 3.Verify the visitor list is visible.
  4. 4.Verify no Check Out or edit buttons are visible.

Expected Result

Facilities user can see all visitors currently on site. No action buttons are visible.

TC-013Privacy

Employee cannot view another employee's visitor details

REQ-018, REQ-020

Preconditions

Employee A has a visit record. Logged in as Employee B.

Steps

  1. 1.Log in as Employee B.
  2. 2.Navigate to My Upcoming Visits.
  3. 3.Verify only Employee B's visits are shown.

Expected Result

My Upcoming Visits shows only visits where HostEmail = User().Email. Employee A's visits are not visible to Employee B.

TC-014Search

Search for a visitor by name

REQ-014

Preconditions

Multiple visit records exist. Logged in as Reception.

Steps

  1. 1.Log in as Reception. Navigate to Today's Visitors.
  2. 2.Type "Thornton" in the search box.
  3. 3.Observe the gallery.

Expected Result

The gallery filters to show only visits where VisitorName contains "Thornton". Other visits are hidden.

TC-015Automation Failure

Notification flow fails — reception is alerted

REQ-006

Preconditions

The DToDLab004-HostArrivalNotification flow has a failure handling scope configured.

Steps

  1. 1.Temporarily break the flow by entering an invalid email address in the Send an email action.
  2. 2.Check in a test visitor.
  3. 3.Check the reception team email inbox.
  4. 4.Restore the correct email address after the test.

Expected Result

The flow fails on the Send an email action. The failure handling scope sends an alert email to the reception team: "ALERT — Visitor notification failed. Please contact the host directly."

TC-016Filtering

Filter Today's Visitors by status

REQ-014

Preconditions

Multiple visit records exist with different statuses. Logged in as Reception.

Steps

  1. 1.Navigate to Today's Visitors.
  2. 2.Set the Status filter to "Arrived".
  3. 3.Observe the gallery.

Expected Result

The gallery shows only visits with status Arrived. Visits with other statuses are hidden.

Stage Complete — What You Now Have

  • ✓16 test cases across 11 categories
  • ✓Every Must Have requirement covered by at least one test case
  • ✓Happy path, validation, walk-in, cancellation, no-show, notification, permissions, privacy, search, automation failure, filtering

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