Test Scenario for Leave Management

OrangeHRM Demo - Recruitment

Test Case ID

TC-054

Test Case Name

Verify that the admin can assign leave to an employee

Pre-Conditions

  • The admin must be logged in (refer to TC-001 for valid login credentials).
  • The admin must have access to the Leave Management module.

Test Steps & Expected Results

Step Action Expected Result
Step 1 Navigate to the left sidebar and click on "Leave". The Leave Management page is displayed, and the "Leave List" is open by default.
Step 2 On the "Leave List" page, click on the "Assign Leave" button located at the top-right corner of the page. The "Assign Leave" form is opened.
Step 3 In the "Employee Name" field, enter a valid employee name and select the employee from the dropdown suggestions.
Input: Linda Anderson
The employee name is successfully entered and selected.
Step 4 In the "Leave Type" dropdown, select a valid leave type.
Input: CAN - Personal
The selected leave type is displayed in the field.
Step 5 In the "From Date" field, select the start date for the leave using the date picker.
Input: 21 Oct 2025
The chosen date is displayed in the "From Date" field.
Step 6 In the "To Date" field, select the end date for the leave using the date picker.
Input: 23 Oct 2025
The chosen date is displayed in the "To Date" field.
Step 7 Enter a comment in the "Comments" field.
Input: Annual leave for family trip
The comment is entered and visible.
Step 8 Click the "Assign" button to assign the leave. A warning message is displayed - Balance not sufficient - indicating that the selected employee does not have available leave days.
Note: This behavior is expected in the demo environment.

Post-Conditions

  • The leave is assigned successfully to the selected employee (Linda Anderson).
  • The assigned leave details are stored in the system and reflected in the Leave List.
  • A confirmation message is displayed to confirm successful leave assignment.

Test Scenario for Leave Management

OrangeHRM Demo - Recruitment

Test Case ID

TC-055

Test Case Name

Verify that the admin can cancel a leave request

Pre-Conditions

  • The admin must be logged in (refer to TC-001 for valid login credentials).
  • There must be an existing leave request from an employee that is in a cancellable state.

Test Steps & Expected Results

Step Action Expected Result
Step 1 Navigate to the left sidebar and click on "Leave". The Leave Management page is displayed, and the "Leave List" is open by default.
Step 2 Locate the leave request for the employee Linda Anderson with leave type Vacation and status Scheduled. The specific leave request is visible in the list with its details (Employee Name, Leave Type, Status, Dates).
Step 3 At the end of the row, click on the three vertical dots under the "Actions" column and select "View Leave Details". The "Leave Request Details" page for Linda Anderson is displayed.
Step 4 On the "Leave Request Details" page, click on the three vertical dots again and select "Cancel Leave". The leave request is canceled successfully, and a success notification appears: Successfully Updated.

Post-Conditions

  • The selected leave request for Linda Anderson is marked as Canceled in the Leave List.
  • The leave status and available balance are updated accordingly.
  • A success confirmation message is displayed to the admin.

Test Scenario for Leave Management

OrangeHRM Demo - Recruitment

Test Case ID

TC-056

Test Case Name

Verify that the admin can search for leave requests

Pre-Conditions

  • The admin must be logged in (refer to TC-001 for valid login credentials).
  • There must be existing leave requests available for search.

Test Steps & Expected Results

Step Action Expected Result
Step 1 Navigate to the left sidebar and click on "Leave". The Leave Management page is displayed, and the "Leave List" is open by default.
Step 2 On the top of the page, click on "My Leave". The "My Leave List" page is displayed, showing leave requests specific to the logged-in admin (Admin User).
Step 3 In the "From Date" field, enter 2024-06-01. The selected start date is applied in the search criteria.
Step 4 In the "To Date" field, enter 2024-06-30. The selected end date is applied in the search criteria.
Step 5 In the "Show Leave with Status" dropdown, select Taken. The chosen status is selected and reflected in the search filter.
Step 6 In the "Leave Type" dropdown, select CAN - Personal. The selected leave type is applied to the search criteria.
Step 7 Click the "Search" button. The system displays matching leave requests (e.g. Odis Adalwin with leave type CAN - Personal and status Taken).

Post-Conditions

  • The system successfully filters and displays leave records based on the specified criteria.
  • The results list shows all matching leave requests for Odis Adalwin within the selected period.
  • The admin can view, export, or further manage filtered records if needed.