Stage 11 of 17

Stage 11 of 17

Testing

In this stage you will work through 12 test cases covering the full end-to-end leave request process: submission, validation, approval, rejection, cancellation, status visibility, and security. Every requirement should have at least one test case.

Why Are We Doing This?

Testing is not optional. The approval flow involves email, SharePoint, and Power Apps — three separate systems that must work together correctly. A bug in any one of them can break the entire process. Testing each scenario before go-live means users encounter a working system, not a broken one.

Test Type

End-to-end functional testing

Test Environment

Live system with sample data

Tester

IT Manager (Marcus Webb) with HR sign-off (Rachel Okonkwo)

Pass Criteria

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

Note: TC-004 and TC-005 require two email accounts (one for the employee, one for the manager). If you only have one account, use a personal email address as the manager email for testing.

Test Cases

TC-001

Submit a valid leave request

Req: FR-001, FR-005, FR-006

Preconditions

Leave Requests list exists. Power Apps app is open. Power Automate flow is active. User is signed in.

Test Steps

  1. 1.Open the Power Apps app. Navigate to New Request.
  2. 2.Select Leave Type: Annual Leave.
  3. 3.Select Start Date: a date two weeks from today.
  4. 4.Select End Date: a date two weeks and four days from today (five working days).
  5. 5.Enter Manager Name: Priya Sharma.
  6. 6.Enter Manager Email: your own email address (for testing).
  7. 7.Leave Comments blank.
  8. 8.Verify the Working Days label shows 5.
  9. 9.Select Submit.

Expected Result

A success notification appears. The app navigates to My Requests. The new request appears in the gallery with Status = Submitted. An approval email arrives at the manager email address.

Pass criteria: Record in list with Status = Submitted. Approval email received. Working Days = 5.

TC-002

Attempt to submit with missing start date

Req: FR-003

Preconditions

Power Apps app is open on the New Request screen.

Test Steps

  1. 1.Select Leave Type: Annual Leave.
  2. 2.Leave Start Date blank.
  3. 3.Select End Date: a date in the future.
  4. 4.Enter Manager Name and Manager Email.
  5. 5.Observe the Submit button.

Expected Result

The Submit button is disabled (greyed out). A validation error label is visible: "Please select a start date."

Pass criteria: Submit button is disabled. Error label is visible.

TC-003

Attempt to submit with end date before start date

Req: FR-002

Preconditions

Power Apps app is open on the New Request screen.

Test Steps

  1. 1.Select Leave Type: Annual Leave.
  2. 2.Select Start Date: next Monday.
  3. 3.Select End Date: last Friday (a date before the start date).
  4. 4.Enter Manager Name and Manager Email.
  5. 5.Observe the Submit button and validation labels.

Expected Result

The Submit button is disabled. A validation error label is visible: "End date cannot be before start date."

Pass criteria: Submit button is disabled. Correct error label is visible.

TC-004

Manager approves a request

Req: FR-007, FR-008, FR-009, FR-013

Preconditions

A Submitted request exists (from TC-001 or a new submission). The approval email has been received.

Test Steps

  1. 1.Open the approval email.
  2. 2.Select Approve.
  3. 3.Add a comment: "Approved — have a great holiday."
  4. 4.Submit the approval response.
  5. 5.Wait for the Power Automate flow to complete (check run history).
  6. 6.Open the Leave Requests list in Microsoft Lists.
  7. 7.Find the record.
  8. 8.Open the Power Apps app and navigate to My Requests.

Expected Result

Flow run shows Succeeded. List record: Status = Approved, Approver = your name, Decision Date = today, Approver Comments = "Approved — have a great holiday." Employee notification email received. App shows Status = Approved.

Pass criteria: All four approval fields updated. Employee notification received. App reflects correct status.

TC-005

Manager rejects a request with comments

Req: FR-007, FR-008, FR-009, FR-010, FR-013

Preconditions

A new Submitted request exists. Approval email received.

Test Steps

  1. 1.Open the approval email.
  2. 2.Select Reject.
  3. 3.Add a comment: "Sorry, too many people off that week. Could you move to the following week?"
  4. 4.Submit the rejection response.
  5. 5.Wait for the flow to complete.
  6. 6.Check the employee notification email.
  7. 7.Open the list record.

Expected Result

Flow run shows Succeeded. List record: Status = Rejected, Approver Comments = the rejection comment. Employee notification email received and includes the manager's comment.

Pass criteria: Rejection comment visible in list record and in employee notification email.

TC-006

Employee views their own requests only

Req: FR-011, SEC-001

Preconditions

At least two employees have submitted requests. You have access to two different user accounts.

Test Steps

  1. 1.Sign in as Employee A. Open the Power Apps app. Navigate to My Requests.
  2. 2.Note the requests shown.
  3. 3.Sign out. Sign in as Employee B.
  4. 4.Navigate to My Requests.
  5. 5.Note the requests shown.

Expected Result

Employee A sees only their own requests. Employee B sees only their own requests. Neither employee sees the other's requests.

Pass criteria: Gallery filtered correctly for each user. No cross-user data visible.

TC-007

Employee cancels a submitted request

Req: FR-015

Preconditions

A Submitted request exists. The approval email has been received but not yet responded to.

Test Steps

  1. 1.Open the Power Apps app. Navigate to My Requests.
  2. 2.Select the Submitted request.
  3. 3.On the Request Details screen, select "Cancel Request".
  4. 4.Confirm the cancellation.
  5. 5.Navigate back to My Requests.
  6. 6.Open the Leave Requests list in Microsoft Lists.

Expected Result

A confirmation dialog appeared. After confirmation, the app navigated back to My Requests. The request now shows Status = Cancelled. The list record shows Status = Cancelled.

Pass criteria: Status updated to Cancelled in app and in list.

TC-008

Request status updates in the app after flow runs

Req: FR-008, FR-011

Preconditions

A Submitted request exists. The flow has run and updated the status to Approved.

Test Steps

  1. 1.Open the Power Apps app.
  2. 2.Navigate to My Requests.
  3. 3.Verify the request shows the updated status.
  4. 4.If the status still shows Submitted, navigate away and back to My Requests (the OnVisible Refresh should update the gallery).

Expected Result

The request shows Status = Approved after the flow has run. The gallery refreshes automatically when the screen is navigated to.

Pass criteria: Status reflects the flow's update without requiring the user to restart the app.

TC-009

Approval comments visible in Request Details

Req: FR-010

Preconditions

A request has been approved or rejected with comments.

Test Steps

  1. 1.Open the Power Apps app. Navigate to My Requests.
  2. 2.Select the approved/rejected request.
  3. 3.On the Request Details screen, verify the Decision section is visible.
  4. 4.Verify the Approver Comments field shows the manager's comment.

Expected Result

The Decision section is visible. Approver name, Decision Date, and Approver Comments are all displayed correctly.

Pass criteria: All three decision fields visible and correct.

TC-010

HR administrator can see all requests

Req: FR-012, SEC-003

Preconditions

Multiple employees have submitted requests. HR user account has been added to the Site Visitors group.

Test Steps

  1. 1.Sign in as the HR user (Aisha Patel).
  2. 2.Open the Power Apps app.
  3. 3.Navigate to the Administration screen (the Admin button should be visible for this user).
  4. 4.Verify all requests from all employees are shown.
  5. 5.Use the status filter to show only Submitted requests.
  6. 6.Use the search box to filter by an employee name.

Expected Result

All requests visible. Status filter works correctly. Employee name search works correctly.

Pass criteria: HR user can see all requests. Filter and search function correctly.

TC-011

Save as Draft does not trigger the approval flow

Req: FR-014

Preconditions

Power Apps app is open on the New Request screen. Power Automate flow is active.

Test Steps

  1. 1.Enter some (but not all) required fields.
  2. 2.Select "Save as Draft".
  3. 3.Navigate to My Requests. Verify the draft appears with Status = Draft.
  4. 4.Check the Power Automate run history.

Expected Result

Draft record created with Status = Draft. No approval email sent. Power Automate run history shows either no new run, or a run that terminated at the status condition (Succeeded).

Pass criteria: Draft saved. No approval email sent. Flow did not proceed past the status condition.

TC-012

Permission check — employee cannot access Administration screen

Req: SEC-001, SEC-003

Preconditions

A regular employee account (not HR or admin) is available.

Test Steps

  1. 1.Sign in as a regular employee.
  2. 2.Open the Power Apps app.
  3. 3.On the Home screen, verify the Administration button is not visible.
  4. 4.Attempt to navigate directly to the Administration screen (if you know the screen name).

Expected Result

The Administration button is not visible on the Home screen for regular employees. If the user navigates directly to the screen, they see all requests (this is the known client-side limitation — true isolation requires item-level permissions).

Pass criteria: Admin button not visible for regular employees. This test documents the known limitation of client-side security.

Test Results Record

Test IDTitleResultNotes
TC-001Submit a valid leave request
PassFail
Record any issues here
TC-002Attempt to submit with missing start date
PassFail
Record any issues here
TC-003Attempt to submit with end date before start date
PassFail
Record any issues here
TC-004Manager approves a request
PassFail
Record any issues here
TC-005Manager rejects a request with comments
PassFail
Record any issues here
TC-006Employee views their own requests only
PassFail
Record any issues here
TC-007Employee cancels a submitted request
PassFail
Record any issues here
TC-008Request status updates in the app after flow runs
PassFail
Record any issues here
TC-009Approval comments visible in Request Details
PassFail
Record any issues here
TC-010HR administrator can see all requests
PassFail
Record any issues here
TC-011Save as Draft does not trigger the approval flow
PassFail
Record any issues here
TC-012Permission check — employee cannot access Administration screen
PassFail
Record any issues here

Stage Complete — What You Now Have

  • ✓12 structured test cases covering all key requirements
  • ✓End-to-end coverage: submission, validation, approval, rejection, cancellation, security
  • ✓A test results record template for documenting outcomes
  • ✓TC-012 documents the known client-side security limitation

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