Test Case Writing for HRM software Notes By ShariqSP
Test Cases for Employee Management Module
1. Adding a New Employee
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_ADD_EMP_01 | Add a new employee with all valid information in required fields. | Employee is added successfully with a confirmation message. | Positive | 1. Navigate to Employee Management. 2. Click "Add New Employee". 3. Fill in all required fields with valid data. 4. Click "Save". 5. Confirm that a success message appears. |
TC_ADD_EMP_02 | Leave a required field blank (e.g., Employee ID) and try to save. | System displays an error message indicating missing required field. | Negative | 1. Navigate to Employee Management. 2. Click "Add New Employee". 3. Leave the Employee ID field blank. 4. Click "Save". 5. Confirm that an error message appears for the missing field. |
TC_ADD_EMP_03 | Enter an invalid email format (e.g., missing "@" symbol) and try to save. | System displays an error indicating invalid email format. | Negative | 1. Navigate to Employee Management. 2. Click "Add New Employee". 3. Fill in the email field with an invalid format (e.g., "emaildomain.com"). 4. Click "Save". 5. Confirm that an error message appears indicating an invalid email format. |
TC_ADD_EMP_04 | Use a duplicate Employee ID while adding a new employee. | System prevents saving and displays a "duplicate ID" error. | Negative | 1. Navigate to Employee Management. 2. Click "Add New Employee". 3. Enter an Employee ID that already exists. 4. Fill in other required fields. 5. Click "Save". 6. Confirm that an error message appears indicating a duplicate Employee ID. |
TC_ADD_EMP_05 | Enter maximum allowable characters in text fields (e.g., 255 characters in name field). | Employee is added successfully without errors. | Positive | 1. Navigate to Employee Management. 2. Click "Add New Employee". 3. Enter 255 characters in the name field. 4. Fill in other required fields. 5. Click "Save". 6. Confirm that the employee is added successfully without any error message. |
TC_ADD_EMP_06 | Enter special characters in text fields (e.g., name field) and attempt to save. | System validates fields and shows errors for invalid characters, if necessary. | Negative | 1. Navigate to Employee Management. 2. Click "Add New Employee". 3. Enter special characters (e.g., "!@#") in the name field. 4. Fill in other required fields. 5. Click "Save". 6. Confirm that an error message appears for invalid characters. |
2. Editing Employee Details
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_EDIT_EMP_01 | Edit employee details with valid input in all fields. | Employee details are updated successfully with a confirmation message. | Positive | 1. Navigate to Employee Management. 2. Search for and open the employee profile. 3. Click "Edit". 4. Update all fields with valid information. 5. Click "Save". 6. Confirm that a success message appears. |
TC_EDIT_EMP_02 | Attempt to edit an employee's details with an invalid email format. | System displays an error message indicating an invalid email format. | Negative | 1. Navigate to Employee Management. 2. Search for and open the employee profile. 3. Click "Edit". 4. Enter an invalid email format (e.g., missing "@"). 5. Click "Save". 6. Confirm that an error message appears for invalid email format. |
TC_EDIT_EMP_03 | Leave a required field blank while editing (e.g., Employee ID) and save changes. | System displays an error message indicating the required field is missing. | Negative | 1. Navigate to Employee Management. 2. Search for and open the employee profile. 3. Click "Edit". 4. Leave the Employee ID field blank. 5. Click "Save". 6. Confirm that an error message appears for missing required field. |
TC_EDIT_EMP_04 | Edit employee details and save with duplicate Employee ID. | System displays an error for duplicate Employee ID. | Negative | 1. Navigate to Employee Management. 2. Search for and open the employee profile. 3. Click "Edit". 4. Enter a duplicate Employee ID that exists in the system. 5. Click "Save". 6. Confirm that an error message appears indicating duplicate Employee ID. |
3. Deleting an Employee Record
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_DEL_EMP_01 | Delete an existing employee record. | Employee record is deleted successfully with a confirmation message. | Positive | 1. Navigate to Employee Management. 2. Search for the employee record. 3. Select the employee. 4. Click "Delete". 5. Confirm deletion. 6. Verify a confirmation message appears. |
TC_DEL_EMP_02 | Attempt to delete a non-existent employee record. | System displays an error message indicating that the employee record does not exist. | Negative | 1. Navigate to Employee Management. 2. Search for a non-existent employee record. 3. Attempt to delete. 4. Verify that an error message appears indicating the record does not exist. |
TC_DEL_EMP_03 | Attempt to delete an employee record without sufficient permissions. | System prevents deletion and displays an access-denied error. | Negative | 1. Log in as a user without delete permissions. 2. Navigate to Employee Management. 3. Search for the employee record. 4. Attempt to delete. 5. Verify that an access-denied error message appears. |
4. Viewing Employee Profile
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_VIEW_EMP_01 | View an existing employee profile. | Employee profile displays all relevant details accurately. | Positive | 1. Navigate to Employee Management. 2. Search for the existing employee. 3. Select and open the employee profile. 4. Verify that all details (e.g., name, position, department) are displayed accurately. |
TC_VIEW_EMP_02 | Attempt to view a non-existent employee profile. | System displays an error indicating that the employee profile does not exist. | Negative | 1. Navigate to Employee Management. 2. Search for a non-existent employee record. 3. Attempt to open the profile. 4. Verify that an error message appears indicating that the profile does not exist. |
5. Searching for an Employee
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_SEARCH_EMP_01 | Search for an employee using a valid Employee ID. | System displays the employee record matching the Employee ID. | Positive | 1. Navigate to Employee Management. 2. Enter a valid Employee ID in the search field. 3. Click "Search". 4. Verify that the system displays the correct employee record. |
TC_SEARCH_EMP_02 | Search for an employee using a non-existent Employee ID. | System displays a message indicating no records were found. | Negative | 1. Navigate to Employee Management. 2. Enter a non-existent Employee ID in the search field. 3. Click "Search". 4. Verify that the system displays a message indicating no records were found. |
TC_SEARCH_EMP_03 | Search for an employee using partial name matching. | System displays a list of employees with names that match the search input. | Positive | 1. Navigate to Employee Management. 2. Enter a partial name in the search field. 3. Click "Search". 4. Verify that the system displays a list of employees whose names match the partial input. |
TC_SEARCH_EMP_04 | Search for an employee using special characters in the search input. | System displays an error message or no results, depending on input validation rules. | Negative | 1. Navigate to Employee Management. 2. Enter special characters in the search field. 3. Click "Search". 4. Verify that the system displays an error message or no results based on input validation rules. |
6. Role-Based Access Control
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_ROLE_01 | Access employee data with Admin role. | Admin has full access to all employee data and can add, edit, and delete records. | Positive | 1. Log in as a user with Admin role. 2. Navigate to Employee Management. 3. Verify access to add, edit, and delete functionalities. 4. Attempt each action and confirm access. |
TC_ROLE_02 | Access employee data with Manager role. | Manager can view and edit employee data but cannot delete records. | Positive | 1. Log in as a user with Manager role. 2. Navigate to Employee Management. 3. Verify access to view and edit, but not delete. 4. Attempt each action and confirm permissions. |
TC_ROLE_03 | Access employee data with Viewer role. | Viewer can only view employee data and has no editing or deletion permissions. | Positive | 1. Log in as a user with Viewer role. 2. Navigate to Employee Management. 3. Verify access is limited to viewing data only. 4. Attempt edit and delete actions to confirm they are restricted. |
TC_ROLE_04 | Attempt to edit employee data with Viewer role. | System prevents editing and displays an "access denied" message. | Negative | 1. Log in as a user with Viewer role. 2. Navigate to Employee Management. 3. Attempt to edit an employee record. 4. Confirm that the system displays an "access denied" message. |
Test Cases for Payroll Management Module
1. Generating Payroll for Employees
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_PAYROLL_GEN_01 | Generate payroll for a single employee with valid salary and deduction data. | Payroll is generated accurately with correct deductions and net pay. | Positive | 1. Navigate to Payroll Management. 2. Select an employee for payroll generation. 3. Enter valid salary, allowances, and deductions. 4. Click "Generate Payroll". 5. Verify that payroll is generated with accurate calculations. |
TC_PAYROLL_GEN_02 | Generate payroll without entering required fields (e.g., base salary). | System displays an error indicating missing required fields. | Negative | 1. Navigate to Payroll Management. 2. Select an employee for payroll generation. 3. Leave the base salary or other required fields blank. 4. Click "Generate Payroll". 5. Confirm that the system displays an error for missing fields. |
TC_PAYROLL_GEN_03 | Input invalid data (e.g., alphabetic characters in numeric fields) for salary and deductions. | System displays an error indicating invalid input data. | Negative | 1. Navigate to Payroll Management. 2. Select an employee for payroll generation. 3. Enter alphabetic or invalid characters in salary and deduction fields. 4. Click "Generate Payroll". 5. Verify that an error message appears indicating invalid input data. |
TC_PAYROLL_GEN_04 | Generate payroll with extremely high or low values for salary to check for overflow or underflow. | Payroll is generated correctly if values are within system limits; otherwise, display an error. | Negative | 1. Navigate to Payroll Management. 2. Select an employee for payroll generation. 3. Enter extremely high or low values in salary and deduction fields. 4. Click "Generate Payroll". 5. Verify that payroll is generated correctly or an error is displayed if values exceed system limits. |
2. Managing Deductions and Bonuses
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_PAYROLL_DED_01 | Add valid deduction and bonus entries for an employee. | System updates payroll calculation to reflect the added deductions and bonuses accurately. | Positive | 1. Navigate to Payroll Management. 2. Select an employee for deduction and bonus management. 3. Enter valid deduction and bonus amounts. 4. Save the entries. 5. Verify that payroll reflects the updated amounts accurately. |
TC_PAYROLL_DED_02 | Attempt to add deductions with invalid data (e.g., negative values). | System displays an error message indicating invalid deduction data. | Negative | 1. Navigate to Payroll Management. 2. Select an employee for deduction management. 3. Enter negative or invalid values in the deduction fields. 4. Attempt to save the entries. 5. Confirm that the system displays an error message for invalid data. |
TC_PAYROLL_DED_03 | Add an extremely high bonus to check for overflow handling. | System either displays an error or handles the large value appropriately, based on limits. | Negative | 1. Navigate to Payroll Management. 2. Select an employee for bonus management. 3. Enter an extremely high bonus amount. 4. Attempt to save the entry. 5. Verify that the system either displays an error or handles the value within system limits. |
TC_PAYROLL_DED_04 | Update existing deductions and verify payroll recalculation. | Payroll is recalculated accurately based on updated deductions and bonuses. | Positive | 1. Navigate to Payroll Management. 2. Select an employee and view current deductions and bonuses. 3. Modify the deduction or bonus amounts. 4. Save changes. 5. Verify that payroll recalculates accurately to reflect updates. |
3. Viewing and Downloading Pay Slips
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_PAYSLIP_VIEW_01 | View pay slip for a specified month. | Pay slip displays accurate payroll details for the selected month. | Positive |
1. Navigate to the 'Pay Slips' section. 2. Select the month for the pay slip. 3. Click on 'View' to open the pay slip. |
TC_PAYSLIP_VIEW_02 | Download pay slip in PDF format. | Pay slip is downloaded in PDF format with accurate information. | Positive |
1. Navigate to the 'Pay Slips' section. 2. Select the month of the desired pay slip. 3. Click on 'Download' and choose 'PDF' format. |
TC_PAYSLIP_VIEW_03 | Attempt to view a pay slip for a non-existent month. | System displays an error or message indicating no pay slip available. | Negative |
1. Go to the 'Pay Slips' section. 2. Select a month with no pay slip. 3. Attempt to view the pay slip. |
TC_PAYSLIP_VIEW_04 | Attempt to download pay slip with insufficient access rights. | System denies download and displays an access restriction message. | Negative |
1. Log in with an account lacking download permissions. 2. Go to the 'Pay Slips' section. 3. Attempt to download a pay slip. |
4. Generating Payroll Reports
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_PAYROLL_REPORT_01 | Generate monthly payroll report for all employees. | Report is generated accurately, displaying payroll data for all employees for the selected month. | Positive |
1. Navigate to 'Reports' section. 2. Select 'Monthly Payroll Report'. 3. Choose the desired month. 4. Click 'Generate Report'. |
TC_PAYROLL_REPORT_02 | Generate annual payroll report. | Annual report displays payroll summaries for all months in the year. | Positive |
1. Navigate to 'Reports' section. 2. Select 'Annual Payroll Report'. 3. Choose the desired year. 4. Click 'Generate Report'. |
TC_PAYROLL_REPORT_03 | Generate payroll report without specifying the time period. | System displays an error indicating the required selection of a time period. | Negative |
1. Navigate to 'Reports' section. 2. Select 'Generate Report' without choosing a time period. |
TC_PAYROLL_REPORT_04 | Attempt to generate a report for an unsupported time range (e.g., future dates). | System prevents generation and displays an error message for invalid date range. | Negative |
1. Navigate to 'Reports' section. 2. Select an unsupported time range (e.g., future dates). 3. Click 'Generate Report'. |
5. Handling Salary Adjustments
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_SALARY_ADJUST_01 | Apply a positive salary adjustment (increment) and verify the updated salary. | Salary is adjusted correctly, and the new salary is displayed in the employee profile. | Positive |
1. Navigate to the 'Salary Adjustments' section. 2. Select the employee profile. 3. Enter a positive adjustment amount. 4. Save changes and verify updated salary. |
TC_SALARY_ADJUST_02 | Apply a negative salary adjustment (deduction) and verify the updated salary. | Salary is adjusted correctly, and the new salary is displayed in the employee profile. | Positive |
1. Navigate to the 'Salary Adjustments' section. 2. Select the employee profile. 3. Enter a negative adjustment amount. 4. Save changes and verify updated salary. |
TC_SALARY_ADJUST_03 | Enter an invalid salary adjustment amount (e.g., text instead of a number). | System displays an error indicating invalid input for salary adjustment. | Negative |
1. Navigate to the 'Salary Adjustments' section. 2. Select the employee profile. 3. Enter an invalid adjustment value (e.g., text). 4. Attempt to save changes. |
TC_SALARY_ADJUST_04 | Apply a salary adjustment that exceeds the company limit for salary changes. | System prevents the adjustment and displays an error message regarding the limit. | Negative |
1. Navigate to the 'Salary Adjustments' section. 2. Select the employee profile. 3. Enter an adjustment amount that exceeds the allowed limit. 4. Attempt to save changes. |
Test Cases for Leave Management Module
1. Applying for Leave
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_LEAVE_APPLY_01 | Apply for leave with valid start and end dates within the available leave balance. | Leave application is submitted successfully and reflected in the employee's leave balance. | Positive |
1. Navigate to 'Leave' section. 2. Select valid start and end dates. 3. Ensure leave balance is sufficient. 4. Submit the leave application. |
TC_LEAVE_APPLY_02 | Apply for leave with overlapping dates on an existing approved leave. | System displays an error indicating overlapping leave dates. | Negative |
1. Go to 'Leave' section. 2. Select dates overlapping with an already approved leave. 3. Attempt to submit the leave application. |
TC_LEAVE_APPLY_03 | Apply for leave with a start date in the past. | System displays an error message indicating that the start date cannot be in the past. | Negative |
1. Navigate to 'Leave' section. 2. Select a start date in the past. 3. Attempt to submit the leave application. |
TC_LEAVE_APPLY_04 | Apply for leave exceeding the available leave balance. | System displays an error indicating insufficient leave balance. | Negative |
1. Go to 'Leave' section. 2. Select valid dates. 3. Ensure the requested days exceed the leave balance. 4. Submit the leave application. |
2. Approving/Rejecting Leave
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_LEAVE_APPROVE_01 | Approve a pending leave request within the employee’s available balance. | Leave status updates to “Approved,” and the employee's leave balance is deducted accordingly. | Positive |
1. Navigate to 'Leave Requests' section. 2. Select a pending leave request. 3. Verify the leave balance is sufficient. 4. Approve the request. |
TC_LEAVE_APPROVE_02 | Reject a pending leave request. | Leave status updates to “Rejected,” and the leave balance remains unchanged. | Positive |
1. Go to 'Leave Requests' section. 2. Select a pending leave request. 3. Click on 'Reject'. 4. Confirm rejection of the leave request. |
TC_LEAVE_APPROVE_03 | Attempt to approve a leave request that is already rejected. | System prevents approval and displays a message indicating the request has already been rejected. | Negative |
1. Go to 'Leave Requests' section. 2. Select a previously rejected leave request. 3. Attempt to approve the request. |
TC_LEAVE_APPROVE_04 | Approve a leave request with zero or insufficient leave balance. | System displays an error indicating insufficient leave balance. | Negative |
1. Navigate to 'Leave Requests' section. 2. Select a leave request that exceeds the leave balance. 3. Attempt to approve the request. |
3. Calculating Leave Balance
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_LEAVE_BAL_01 | Check if leave balance is updated correctly after a leave is approved. | Leave balance decreases based on the approved leave days. | Positive |
1. Approve a leave request. 2. Verify that the leave balance is reduced by the approved days. 3. Check the employee's updated leave balance. |
TC_LEAVE_BAL_02 | Apply for leave and then cancel it to check if leave balance is restored. | Leave balance is restored to its previous value upon cancellation. | Positive |
1. Submit a leave application. 2. Cancel the submitted leave. 3. Verify that the leave balance is restored to its initial value. |
TC_LEAVE_BAL_03 | Check leave balance calculation for half-day leave requests. | Leave balance decreases by half-day increments accordingly. | Positive |
1. Apply for a half-day leave. 2. Verify that the leave balance decreases by half a day. 3. Check the employee's updated leave balance. |
TC_LEAVE_BAL_04 | Apply for leave exceeding available balance to test if calculation prevents overdrawing. | System prevents submission and displays an error for insufficient leave balance. | Negative |
1. Attempt to apply for leave exceeding the available balance. 2. Verify that the system displays an error message. 3. Confirm that the leave application is not submitted. |
4. Viewing Holiday Calendar
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_HOLIDAY_CALENDAR_01 | View the holiday calendar for the current year. | Holiday calendar displays all public holidays accurately for the year. | Positive |
1. Navigate to the 'Holiday Calendar' section. 2. Select the current year. 3. Verify that all public holidays are displayed accurately. |
TC_HOLIDAY_CALENDAR_02 | Verify that holidays in the calendar are excluded from leave balance calculations. | Holidays are excluded from leave balance deductions when calculating leave requests. | Positive |
1. Apply for leave spanning a public holiday. 2. Verify that the holiday is excluded from the leave deduction. 3. Check the updated leave balance for accuracy. |
TC_HOLIDAY_CALENDAR_03 | Attempt to add a personal holiday to the calendar. | System prevents adding personal holidays to the public holiday calendar. | Negative |
1. Navigate to the 'Holiday Calendar' section. 2. Attempt to add a new personal holiday. 3. Verify that the system prevents this action and displays an error message. |
5. Viewing Leave History
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_LEAVE_HISTORY_01 | View leave history for the current year. | Leave history displays all leave requests (approved, pending, rejected) accurately. | Positive |
1. Go to 'Leave History' section. 2. Select the current year. 3. Verify that all leave requests are displayed with correct statuses. |
TC_LEAVE_HISTORY_02 | View leave history filtered by leave type (e.g., sick leave, casual leave). | Leave history filters and displays only the selected leave type. | Positive |
1. Go to 'Leave History' section. 2. Apply a filter for a specific leave type. 3. Verify that only the filtered leave type is displayed. |
TC_LEAVE_HISTORY_03 | Attempt to view leave history for a non-existent employee. | System displays an error indicating that the employee does not exist. | Negative |
1. Navigate to 'Leave History' section. 2. Enter a non-existent employee ID. 3. Verify that the system displays an error message. |
TC_LEAVE_HISTORY_04 | Check if rejected leave requests are displayed in the leave history. | Leave history includes rejected leave requests with the correct status. | Positive |
1. Go to 'Leave History' section. 2. Select the current year. 3. Verify that rejected leave requests are displayed with accurate statuses. |
Test Cases for Attendance Tracking Module
1. Marking Attendance
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_ATTEND_MARK_01 | Mark attendance for the employee at the beginning of the workday. | Attendance is marked successfully with a timestamp of the check-in time. | Positive |
1. Employee logs into the attendance system. 2. Click on "Mark Attendance" at the beginning of the workday. 3. Verify that attendance is recorded with the correct timestamp. |
TC_ATTEND_MARK_02 | Attempt to mark attendance multiple times within the same day. | System prevents duplicate attendance entries and displays a message indicating attendance has already been marked. | Negative |
1. Mark attendance at the start of the day. 2. Attempt to mark attendance again. 3. Verify that the system prevents duplicate entries. |
TC_ATTEND_MARK_03 | Mark attendance with an invalid or missing employee ID. | System displays an error message indicating that the employee ID is invalid or missing. | Negative |
1. Enter an invalid or blank employee ID. 2. Attempt to mark attendance. 3. Verify that an error message is displayed. |
TC_ATTEND_MARK_04 | Mark attendance for an employee after the designated check-in time. | Attendance is marked as "Late" with an appropriate status and timestamp. | Positive |
1. Attempt to mark attendance after the designated check-in time. 2. Verify that the attendance is recorded with a "Late" status. 3. Confirm the correct timestamp is logged. |
2. Viewing Attendance Records
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_ATTEND_VIEW_01 | View attendance records for a specific employee for the current month. | System displays accurate attendance records with check-in and check-out times for each day. | Positive |
1. Go to the 'Attendance Records' section. 2. Select the employee ID and the current month. 3. Verify that records display check-in and check-out times correctly. |
TC_ATTEND_VIEW_02 | Attempt to view attendance records for a non-existent employee ID. | System displays an error message indicating the employee ID does not exist. | Negative |
1. Go to the 'Attendance Records' section. 2. Enter a non-existent employee ID. 3. Verify that the system displays an error message. |
TC_ATTEND_VIEW_03 | View attendance records with filters for specific dates (e.g., last week). | Attendance records are filtered and displayed accurately for the selected date range. | Positive |
1. Go to 'Attendance Records' section. 2. Apply a date filter (e.g., last week). 3. Verify that records display for the selected date range. |
TC_ATTEND_VIEW_04 | Attempt to view attendance records with a future date filter. | System displays a message or error indicating that attendance data for future dates is unavailable. | Negative |
1. Go to 'Attendance Records' section. 2. Apply a future date filter. 3. Verify that the system displays an appropriate message. |
3. Tracking Late Arrivals and Early Departures
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_ATTEND_LATE_01 | Record attendance with a check-in time after the designated arrival time. | System marks the attendance record as "Late" and logs the check-in time. | Positive |
1. Mark attendance after the designated arrival time. 2. Verify that the record shows a "Late" status. 3. Confirm the correct check-in time is logged. |
TC_ATTEND_LATE_02 | Record attendance with a check-out time before the designated departure time. | System marks the attendance record as "Early Departure" and logs the check-out time. | Positive |
1. Mark attendance with an early check-out. 2. Verify that the record shows an "Early Departure" status. 3. Confirm the correct check-out time is logged. |
TC_ATTEND_LATE_03 | Attempt to override a "Late" entry to "On Time" by manually adjusting the check-in time. | System prevents manual adjustments to check-in times once logged. | Negative |
1. Mark attendance as late. 2. Attempt to manually adjust the check-in time. 3. Verify that the system prevents this adjustment. |
TC_ATTEND_LATE_04 | Attempt to mark "Late" status for an employee who checked in on time. | System does not mark the attendance as "Late" and keeps the "On Time" status. | Negative |
1. Mark attendance on time. 2. Verify that the record shows an "On Time" status. 3. Attempt to change the status to "Late" and confirm the system prevents this. |
4. Generating Attendance Reports
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_ATTEND_REPORT_01 | Generate monthly attendance report for all employees. | Report is generated successfully and displays accurate attendance data for each employee. | Positive |
1. Navigate to the "Reports" section. 2. Select "Monthly Attendance Report" and ensure all employees are included. 3. Click "Generate Report" and verify that data for each employee is accurate. |
TC_ATTEND_REPORT_02 | Generate attendance report for a specific department within a given date range. | Report displays attendance data filtered by department and date range. | Positive |
1. Go to the "Reports" section. 2. Select the specific department and date range. 3. Generate the report and verify that it includes accurate data filtered by department and date. |
TC_ATTEND_REPORT_03 | Attempt to generate a report without selecting a date range. | System displays an error indicating that a date range selection is required. | Negative |
1. Go to the "Reports" section. 2. Attempt to generate a report without setting a date range. 3. Verify that an error message is displayed, prompting for date range selection. |
TC_ATTEND_REPORT_04 | Generate attendance report for a future date range. | System displays an error message or generates an empty report indicating no data available for future dates. | Negative |
1. Go to the "Reports" section. 2. Set a date range that falls in the future. 3. Attempt to generate the report and verify that an error or empty report is shown. |
Recruitment Module Test Cases
Post Job Openings
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_POST_JOB_01 | Verify that a new job opening can be created with valid job title, description, and requirements. | Job opening should be successfully created and displayed in the job listings. | Positive |
1. Navigate to "Post Job Openings" section. 2. Enter valid job title, description, and requirements. 3. Submit and verify the job appears in listings. |
TC_POST_JOB_02 | Verify that the job opening is visible to potential applicants after posting. | Job opening should be visible on the applicants' job search portal. | Positive |
1. Post a new job opening. 2. Switch to the applicant’s job portal. 3. Confirm the job is visible to applicants. |
TC_POST_JOB_03 | Attempt to create a job opening with missing mandatory fields (e.g., job title). | System should prevent job creation and display an appropriate error message. | Negative |
1. Go to "Post Job Openings" section. 2. Leave mandatory fields blank. 3. Attempt to submit and verify error message. |
TC_POST_JOB_04 | Attempt to create a job opening with an invalid job title format (e.g., special characters). | System should prevent job creation and display an appropriate error message. | Negative |
1. Enter a job title with special characters. 2. Attempt to submit and verify error message is shown. |
Receive and Track Applications
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_RECEIVE_APP_01 | Verify that a job application is received when a candidate submits an application for a posted job. | Application should be received and visible in the applications list under the respective job posting. | Positive |
1. Candidate applies to a posted job. 2. Check the applications list under the job posting. 3. Confirm the application is received. |
TC_RECEIVE_APP_02 | Verify that the application status updates correctly when it moves to the next stage. | System should show the correct application status (e.g., "Under Review", "Interview Scheduled"). | Positive |
1. Move the application to the next stage. 2. Check the application status. 3. Verify the status is updated correctly. |
TC_RECEIVE_APP_03 | Attempt to submit an application without attaching a resume. | System should prevent submission and display an error message indicating a required resume attachment. | Negative |
1. Start a job application. 2. Leave the resume attachment blank. 3. Attempt to submit and check for an error message. |
Schedule Interviews
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_SCHED_INTERVIEW_01 | Verify that an interview can be scheduled for a candidate with valid date, time, and interviewer details. | Interview schedule should be created, and details should be visible to the candidate. | Positive |
1. Go to the "Schedule Interview" section. 2. Enter valid date, time, and interviewer details. 3. Schedule and verify visibility for the candidate. |
TC_SCHED_INTERVIEW_02 | Verify that the candidate receives a notification about the interview schedule. | Candidate should receive an email or notification with interview details. | Positive |
1. Schedule an interview. 2. Check candidate's notifications or email. 3. Confirm that the interview notification was received. |
TC_SCHED_INTERVIEW_03 | Attempt to schedule an interview with an invalid date (e.g., past date). | System should prevent scheduling and display an error message. | Negative |
1. Enter a past date for the interview. 2. Attempt to schedule and verify error message is displayed. |
Manage Candidate Status
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_CANDIDATE_STATUS_01 | Verify that a candidate’s status can be updated to "Interviewed" after completing an interview. | Candidate status should update to "Interviewed" in the system. | Positive |
1. Open the candidate's profile. 2. Change the status to "Interviewed". 3. Save changes and verify the updated status. |
TC_CANDIDATE_STATUS_02 | Verify that a candidate’s status can be updated to "Shortlisted" after a successful interview. | Candidate status should update to "Shortlisted" in the system. | Positive |
1. Access candidate profile. 2. Update status to "Shortlisted". 3. Confirm that the status has changed. |
TC_CANDIDATE_STATUS_03 | Attempt to change candidate status without proper authorization. | System should prevent status change and display an error message about permissions. | Negative |
1. Attempt to change status as an unauthorized user. 2. Verify that an error message appears, preventing the status change. |
Performance Management Module Test Cases
Set Performance Goals
Set Performance Goals
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_SET_GOAL_01 | Verify that a manager can set performance goals for an employee with valid goal descriptions and deadlines. | Performance goals should be successfully set and displayed in the employee's profile. | Positive |
1. Login as a manager. 2. Navigate to "Set Goals" section for an employee. 3. Enter valid goal description and deadline. 4. Submit and verify goal appears in the employee's profile. |
TC_SET_GOAL_02 | Verify that an employee can view the performance goals set by their manager. | Employee should be able to view assigned performance goals in their profile. | Positive |
1. Login as an employee. 2. Navigate to the "Performance Goals" section. 3. Verify goals set by manager are visible. |
TC_SET_GOAL_03 | Attempt to set performance goals with missing mandatory fields (e.g., goal description). | System should prevent goal setting and display an appropriate error message. | Negative |
1. Login as a manager. 2. Leave goal description blank. 3. Attempt to submit and verify error message. |
TC_SET_GOAL_04 | Attempt to set duplicate performance goals for the same employee. | System should display a warning or prevent setting duplicate performance goals. | Negative |
1. Set a goal for an employee. 2. Attempt to set the same goal again. 3. Verify system shows a warning or prevents duplication. |
TC_SET_GOAL_05 | Verify that goals can be set with different priority levels (e.g., High, Medium, Low). | System should allow priority levels to be set, and these should be visible in the employee's profile. | Positive |
1. Set goals with various priority levels. 2. Check that priority levels are visible in the employee's profile. |
Conduct Performance Reviews
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_REVIEW_01 | Verify that a performance review can be conducted and recorded with valid feedback and ratings. | Performance review should be recorded and saved in the employee's profile. | Positive |
1. Login as a manager. 2. Go to "Conduct Performance Review" section. 3. Enter feedback and ratings. 4. Save review and verify it is recorded. |
TC_REVIEW_02 | Verify that the recorded performance review is visible to the respective employee. | Employee should be able to view their performance review details. | Positive |
1. Login as an employee. 2. Navigate to "Performance Reviews" section. 3. Verify the review is visible with details. |
TC_REVIEW_03 | Attempt to submit a performance review with incomplete feedback or rating information. | System should prevent review submission and display an appropriate error message. | Negative |
1. Start a performance review. 2. Leave feedback or rating blank. 3. Attempt to submit and check for an error message. |
TC_REVIEW_04 | Verify that a performance review can be edited by the manager within a specific time frame (e.g., 24 hours). | System should allow edits to the performance review within the allowed time frame. | Positive |
1. Submit a review. 2. Attempt to edit within the allowed timeframe. 3. Confirm the edit is saved. |
TC_REVIEW_05 | Attempt to edit a performance review after the allowed time frame. | System should prevent further edits and display a message about the time restriction. | Negative |
1. Wait until the edit time expires. 2. Attempt to edit the review. 3. Confirm the system prevents editing with a time-restriction message. |
Generate Performance Reports
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_PERFORMANCE_REPORT_01 | Verify that a performance report is generated accurately, reflecting individual employee performance data. | Performance report should display correct data for the selected employee and period. | Positive |
1. Go to "Generate Report" section. 2. Select employee and period. 3. Generate report and verify data accuracy. |
TC_PERFORMANCE_REPORT_02 | Attempt to generate a performance report without selecting an employee or period. | System should prevent report generation and display an appropriate error message. | Negative |
1. Leave employee or period fields blank. 2. Attempt to generate report. 3. Confirm error message appears. |
TC_PERFORMANCE_REPORT_03 | Verify that the generated performance report can be downloaded as a PDF. | Performance report should be downloadable in PDF format. | Positive |
1. Generate performance report. 2. Choose "Download as PDF" option. 3. Confirm PDF download. |
TC_PERFORMANCE_REPORT_04 | Attempt to download a performance report when no data is available for the selected period. | System should display a message indicating no data is available for the selected period. | Negative |
1. Select a period with no data. 2. Attempt to download report. 3. Confirm the system displays a "No data available" message. |
TC_PERFORMANCE_REPORT_05 | Verify that a summary of performance data for multiple employees can be generated. | System should allow selection of multiple employees and generate a summary report. | Positive |
1. Select multiple employees. 2. Generate summary report. 3. Confirm report displays data for all selected employees. |
Training and Development Module Test Cases
Assign Training Modules
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_ASSIGN_TRAINING_01 | Verify that training modules can be assigned to an employee based on their role and career path. | Training module should be successfully assigned and visible in the employee's training dashboard. | Positive |
1. Login as a manager. 2. Navigate to "Assign Training" section. 3. Select an employee and assign a relevant module. 4. Confirm module appears in employee’s training dashboard. |
TC_ASSIGN_TRAINING_02 | Attempt to assign a training module to an employee without specifying a role or career path. | System should prevent assignment and display an appropriate error message. | Negative |
1. Omit role or career path during training assignment. 2. Attempt to assign the training. 3. Verify that the system displays an error message. |
TC_ASSIGN_TRAINING_03 | Verify that a manager can assign multiple training modules to the same employee. | Multiple training modules should be assigned and visible in the employee's training list. | Positive |
1. Assign multiple training modules to the same employee. 2. Confirm that all modules appear in the employee's training list. |
TC_ASSIGN_TRAINING_04 | Attempt to assign a duplicate training module to an employee. | System should prevent assignment of duplicate training modules and display a warning. | Negative |
1. Assign a training module to an employee. 2. Attempt to assign the same module again. 3. Verify that the system displays a warning. |
TC_ASSIGN_TRAINING_05 | Verify that the system sends a notification to the employee upon training module assignment. | Employee should receive a notification with details of the assigned training module. | Positive |
1. Assign a training module to an employee. 2. Verify that the employee receives a notification. |
Track Training Progress
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_TRACK_PROGRESS_01 | Verify that an employee’s progress in a training module is tracked accurately within the system. | Employee's progress percentage should update correctly as they complete sections of the training. | Positive |
1. Begin a training module as an employee. 2. Complete sections incrementally. 3. Confirm that progress percentage updates accordingly. |
TC_TRACK_PROGRESS_02 | Attempt to track progress for a training module not assigned to the employee. | System should prevent progress tracking and display an appropriate error message. | Negative |
1. Attempt to access a module not assigned. 2. Verify that progress tracking is blocked and an error message displays. |
TC_TRACK_PROGRESS_03 | Verify that the training progress is reset when a module is reassigned to an employee. | Employee's progress should reset to 0% when a module is reassigned. | Positive |
1. Reassign a module already in progress to an employee. 2. Confirm that progress resets to 0%. |
TC_TRACK_PROGRESS_04 | Verify that the system can display progress details (e.g., modules completed, modules in progress). | System should accurately display module statuses for each assigned training. | Positive |
1. Complete and partially complete assigned modules. 2. Check progress details for accuracy. |
TC_TRACK_PROGRESS_05 | Attempt to access progress details for a training module when not logged in as the respective employee or manager. | System should prevent access and display a permissions error message. | Negative |
1. Login as another user. 2. Attempt to access another employee's progress. 3. Confirm that access is denied with a permissions error. |
Generate Training Completion Report
Test Case ID | Test Case Description | Expected Result | Test Type | Steps |
---|---|---|---|---|
TC_TRAINING_REPORT_01 | Verify that a training completion report is generated accurately for a manager to track employee progress. | Training completion report should display accurate data for each employee's completed modules. | Positive |
1. Select employees and modules to report. 2. Generate report and verify accuracy of completed module data. |
TC_TRAINING_REPORT_02 | Attempt to generate a training report without selecting a specific department or time period. | System should prevent report generation and display an appropriate error message. | Negative |
1. Attempt to generate a report without a selected department/time period. 2. Confirm that the system displays an error message. |
TC_TRAINING_REPORT_03 | Verify that the generated training completion report can be exported as a CSV file. | Training completion report should be exportable in CSV format for further analysis. | Positive |
1. Generate a training completion report. 2. Select "Export as CSV" and verify download. |
TC_TRAINING_REPORT_04 | Attempt to generate a training report for employees with no completed modules. | System should display a message indicating no data is available for the selected employees. | Negative |
1. Select employees with no completed modules. 2. Attempt to generate a report. 3. Confirm that the system displays "No data available." |
TC_TRAINING_REPORT_05 | Verify that a summary report for training completion across multiple teams can be generated. | System should allow selection of multiple teams and generate a summary completion report. | Positive |
1. Select multiple teams. 2. Generate summary report and verify accuracy for each team. |