HR Payroll System Test Case: In this post below, we discuss test cases for the payroll system. The system under test is taken from the software released by Jake Rodriguez. You can check the image below to get more ideas about the payroll system. If you are interested in looking at even better features and the complex HR payroll system, then I suggest checking free open source software available. That way, you can practice writing test cases more effectively.
All Manual: Account Deactivation Test Case
Here’s the sample payroll system screenshot. We are basing our manual test cases based on these software features and available options.
How does HR Payroll System program work?
As you can see from the image, the software has the system to check the employee days under work and does the calculation for the salary. It can edit, modify, and delete the employee. It can also navigate through the record using the next, previous, first, and last buttons. The software is designed in Java Swing, and the database used is Oracle. You can find additional functionality on the software hosting page.
How complex are these payroll system? It depends on the organization and the work structure allotted to the person. I have seen some of the complex forms in the payroll system. So I decided to pick this simple HR payroll system that you can use to understand and jot down some test cases for the same.
Test cases for HR Payroll System
- Check if the ID field is system generated or requires manual input.
- Check if the ID field auto increments when the next or previous button is pressed.
- Check if the ID field points to the correct employee ID.
- Check if the ID field only allows numeric input when under modification.
- Check if the ID field is editable or not if an edit button is pressed.
- Check if the Employee Name field accepts text data only.
- Check the minimum required length for the Employee Name.
- Check the maximum required length for the Employee Name.
- Check if the Employee Name from the previous records points to the valid name for the employee.
- Check if the Employee Name accepts both uppercase and lowercase input.
- Check if the Employee Name does not accept any form of special character.
- Check if the Dept field accepts the department present within the company.
- Check if the Dept field requires manual addon or if it gets auto-generated.
- Check the Dept field for the minimum length of the input.
- Check the DEPT field for the maximum length of the input.
- Check the “No of days” field only accepts numeric data.
- Check the ‘No of days” field for the maximum available input. (Ideally, it should restrict for 31 days per month).
- Check Rate per day field for the minimum length of the input.
- Check Rate per day field for the maximum length of the input.
- Check the salary field to verify if it is editable or not.
- Check the salary field for the calculation (no of days * per day amount).
- Check the salary field for the live input or if it requires pressing the “computer” button.
- Check if the add button clears the form for the fresh input.
- Check if the add button does not open the existing record.
- Check if the save button saves the data.
- Verify if the save button saves the valid data.
- Check if the update button allows the modified data to be added to the database.
- Check if the update button does not retain the old information in the database.
- Check if the delete button removes the data from the database.
- Check if the deleted data using the delete button does not remain in the database.
- Check if the first button click points the form to the first record in the database.
- Check if the last button click points the form to the last record in the database.
- Check if the next button click points the form to the next available record in the database.
- Check if the previous button click points the form to the previous record from the existing open record in the database.
- Check if the exit button click results in closure of the program.
- Check if the close window button on the program exits the program.
- Check if the minimize window button for the program minimizes the program to the taskbar.
- Check if the maximize window button for the program maximizes the program to the desktop.
You can come up with even more and detailed test cases for the current payroll system. I am sure by now, you have got the idea of how the system works and how this complex software requires testing. If you have any suggestions or comments to improve this post or any other part of the website, feel free to let me know in the comments. Please do share this article on social media sites like facebook or twitter. I’d appreciate your shares and feedback.