Test Scenario for Recruitment Functionality

OrangeHRM Demo - Recruitment

Test Case ID

TC-037

Test Case Name

Verify that Admin can add a new candidate

Pre-Conditions

  • The Admin must be logged in (refer to TC-001 for valid login credentials)

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on "Recruitment" on the left side bar. The Candidates form is displayed.
Step 2 Click on the "+ Add" button. The "Add Candidate" form appears.
Step 3 Input valid first name in the "First Name" field.
Input: John
First name is entered and visible.
Step 4 Input valid middle name in the "Middle Name" field.
Input: Michael
Middle name is entered and visible.
Step 5 Input valid last name in the "Last Name" field.
Input: Smith
Last name is entered and visible.
Step 6 Select a vacancy from the "Vacancy" dropdown.
Input: Software Engineer
The selected vacancy is displayed.
Step 7 Input a valid email in the "Email" field.
Input: mail@example.com
Email is entered and visible.
Step 8 Input a valid contact number in the "Contact Number" field.
Input: +381641234567
Contact number is entered and visible.
Step 9 Upload a valid resume file in the "Resume" field.
Input: valid_resume.pdf
Resume file is uploaded successfully.
Step 10 Input valid keywords in the "Keywords" field.
Input: Java, Selenium
Keywords are entered and visible.
Step 11 Select a date in the "Date of Application" field.
Input: 2024-09-30
Selected date is displayed.
Step 12 Input valid notes in the "Notes" field.
Input: Experienced in automation testing
Notes are entered and visible.
Step 13 Check the checkbox for "Consent to keep data". The checkbox is selected.
Step 14 Click on the "Save" button. The candidate is added successfully, and a confirmation message is displayed.

Post-Conditions

  • The new candidate is added successfully and visible in the candidates list.
  • The candidate's information is stored in the system and can be retrieved for future reference.

Test Scenario for Recruitment Functionality

OrangeHRM Demo - Recruitment

Test Case ID

TC-038

Test Case Name

Verify that Admin can add a new candidate by filling only required fields

Pre-Conditions

  • The Admin must be logged in (refer to TC-001 for valid login credentials)

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on "Recruitment" on the left side bar. The Candidates form is displayed.
Step 2 Click on the "+ Add" button. The "Add Candidate" form appears.
Step 3 Input valid first name in the "First Name" field.
Input: John
First name is entered and visible.
Step 4 Input valid last name in the "Last Name" field.
Input: Doe
Last name is entered and visible.
Step 5 Input a valid email in the "Email" field.
Input: john.doe@example.com
Email is entered and visible.
Step 6 Leave the remaining fields empty (Middle Name, Vacancy, Contact Number, Resume, Keywords, Date of Application, Notes, Consent to keep data). All optional fields remain empty.
Step 7 Click on the "Save" button. The candidate is added successfully, and a confirmation message is displayed.

Post-Conditions

  • The new candidate is added successfully with only required fields filled.
  • The candidate's information is stored in the system and can be retrieved for future reference.
  • Optional fields remain empty in the candidate's record.

Test Scenario for Recruitment Functionality

OrangeHRM Demo - Recruitment

Test Case ID

TC-039

Test Case Name

Verify that Admin can edit existing candidate details

Pre-Conditions

  • The Admin must be logged in (refer to TC-001 for valid login credentials)
  • At least one candidate must already exist in the system

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on "Recruitment" on the left side bar. The Candidates form is displayed.
Step 2 Click on the eye icon (👁️) under the actions column next to the desired candidate. The candidate's details are displayed.
Step 3 Click on the "Edit" button. The "Edit Candidate" form appears with pre-filled information.
Step 4 Update the candidate's first name in the "First Name" field.
Input: Jane
First name is updated and visible.
Step 5 Update the candidate's email in the "Email" field.
Input: jane.updated@example.com
Email is updated and visible.
Step 6 Leave other fields unchanged. All other fields retain their original values.
Step 7 Click on the "Save" button. The candidate's details are updated successfully, and a confirmation message is displayed.
Step 8 Navigate back to the Candidates list and locate the edited candidate. The updated first name and email are displayed in the candidate list.

Post-Conditions

  • The candidate's information is successfully updated in the system.
  • The updated details (first name and email) are reflected in the candidate list.
  • The changes persist after page refresh or logout/login.

Test Scenario for Recruitment Functionality

OrangeHRM Demo - Recruitment

Test Case ID

TC-040

Test Case Name

Verify that Admin can delete a candidate

Pre-Conditions

  • The Admin must be logged in (refer to TC-001 for valid login credentials)
  • At least one candidate must already exist in the system

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on "Recruitment" on the left side bar. The Candidates form is displayed.
Step 2 Click on the trash can icon (🗑️) under the actions column next to the desired candidate. A confirmation prompt appears asking if the Admin wants to delete the candidate.
Step 3 Confirm the deletion by clicking "Yes, Delete" in the prompt. The candidate is deleted successfully, and a confirmation message is displayed.
Step 4 Verify that the deleted candidate no longer appears in the candidate list. The candidate is removed from the list, and the total number of candidates is decreased by 1.

Post-Conditions

  • The candidate is permanently deleted from the system.
  • The deleted candidate no longer appears in the candidate list.
  • The total number of candidates in the system is reduced by 1.

Test Scenario for Recruitment Functionality

OrangeHRM Demo - Recruitment

Test Case ID

TC-041

Test Case Name

Verify that Admin can cancel candidate deletion

Pre-Conditions

  • The Admin must be logged in (refer to TC-001 for valid login credentials)
  • At least one candidate must already exist in the system

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on "Recruitment" on the left side bar. The Candidates form is displayed.
Step 2 Click on the trash can icon (🗑️) under the actions column next to the desired candidate. A confirmation prompt appears asking if the Admin wants to delete the candidate.
Step 3 Click "No, Cancel" in the confirmation prompt. The confirmation prompt closes, and the candidate remains in the list unchanged.

Post-Conditions

  • No candidates are deleted from the system.
  • All candidates remain visible in the candidate list.
  • The checkboxes remain selected.

Test Scenario for Recruitment Functionality

OrangeHRM Demo - Recruitment

Test Case ID

TC-042

Test Case Name

Verify that Admin can delete multiple candidates at once (bulk delete)

Pre-Conditions

  • The Admin must be logged in (refer to TC-001 for valid login credentials)
  • At least 3 candidates must already exist in the system

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on "Recruitment" on the left side bar. The Candidates form is displayed.
Step 2 Check and note the current total number of candidates displayed. The total number of candidates is visible and noted.
Step 3 Select the checkboxes next to 2-3 candidates from the list. The selected candidates are checked, and the "Delete Selected" button appears or becomes enabled.
Step 4 Click on the "Delete Selected" button (or trash icon for bulk delete). A confirmation prompt appears asking if the Admin wants to delete the selected candidates.
Step 5 Confirm the deletion by clicking "Yes, Delete" in the prompt. The selected candidates are deleted successfully, and a confirmation message is displayed.
Step 6 Verify that the deleted candidates no longer appear in the candidate list. The selected candidates are removed from the list.
Step 7 Check the total number of candidates displayed. The total number of candidates is decreased by the number of deleted candidates (2-3) compared to the count noted in Step 2.

Post-Conditions

  • The selected candidates are permanently deleted from the system.
  • The deleted candidates no longer appear in the candidate list.
  • The total number of candidates in the system is reduced accordingly.
  • The Admin remains logged in and can continue managing other candidates.

Test Scenario for Recruitment Functionality

OrangeHRM Demo - Recruitment

Test Case ID

TC-043

Test Case Name

Verify that Admin can cancel bulk delete operation

Pre-Conditions

  • The Admin must be logged in (refer to TC-001 for valid login credentials)
  • At least 3 candidates must already exist in the system

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on "Recruitment" on the left side bar. The Candidates form is displayed.
Step 2 Select the checkboxes next to 2-3 candidates from the list. The selected candidates are checked, and the "Delete Selected" button appears or becomes enabled.
Step 3 Click on the "Delete Selected" button. A confirmation prompt appears asking if the Admin wants to delete the selected candidates.
Step 4 Click "No, Cancel" in the confirmation prompt. The confirmation prompt closes without deleting any candidates.
Step 5 Verify that all previously selected candidates still appear in the candidate list. All candidates remain in the list unchanged, and the total number of candidates is the same as before.

Post-Conditions

  • No candidates are deleted from the system.
  • All candidates remain visible in the candidate list.
  • The checkboxes remain selected.

Test Scenario for Recruitment Functionality

OrangeHRM Demo - Recruitment

Test Case ID

TC-044

Test Case Name

Verify that Admin can add a new vacancy

Pre-Conditions

  • The Admin must be logged in (refer to TC-001 for valid login credentials)

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on "Recruitment" on the left side bar. The Candidates page is displayed.
Step 2 Click on the "Vacancies" button in the top left corner. The Vacancies page is displayed.
Step 3 Click on the "+ Add" button. The "Add Vacancy" form is displayed with fields for vacancy details.
Step 4 Input Vacancy Name in the "Vacancy Name" field.
Input: Project Manager
Vacancy Name is entered and visible.
Step 5 Select Job Title from the "Job Title" dropdown.
Input: Head of Support
Job Title is selected and visible.
Step 6 Input Description in the "Description" field.
Input: Responsible for developing software solutions
Description is entered and visible.
Step 7 Input Hiring Manager in the "Hiring Manager" field.
Input: John Smith
Hiring Manager is entered and visible.
Step 8 Input Number of Positions in the "Number of Positions" field.
Input: 3
Number of Positions is entered and visible.
Step 9 Switch the "Active" toggle to ON position. The "Active" toggle is turned on and displayed in active state.
Step 10 Switch the "Publish in RSS Feed and Web Page" toggle to ON position. The "Publish in RSS Feed and Web Page" toggle is turned on and displayed in active state.
Step 11 Click on the "Save" button. A confirmation message is displayed, indicating that the vacancy has been added successfully. The new vacancy appears in the vacancies list.

Post-Conditions

  • The new vacancy is added successfully and visible in the vacancies list.
  • The vacancy is marked as active and published in RSS feed and web page.
  • The Admin can view, edit, or delete the newly created vacancy.

Test Scenario for Recruitment Functionality

OrangeHRM Demo - Recruitment

Test Case ID

TC-045

Test Case Name

Verify that Admin can add a new vacancy with only required fields

Pre-Conditions

  • The Admin must be logged in (refer to TC-001 for valid login credentials)

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on "Recruitment" on the left side bar. The Candidates page is displayed.
Step 2 Click on the "Vacancies" button in the top left corner. The Vacancies page is displayed.
Step 3 Click on the "+ Add" button. The "Add Vacancy" form is displayed with fields for vacancy details.
Step 4 Input Vacancy Name in the "Vacancy Name" field.
Input: QA Engineer
Vacancy Name is entered and visible.
Step 5 Select Job Title from the "Job Title" dropdown.
Input: QA Engineer
Job Title is selected and visible.
Step 6 Input Hiring Manager in the "Hiring Manager" field.
Input: Jane Doe
Hiring Manager is entered and visible.
Step 7 Leave the "Description" and "Number of Positions" fields empty and keep toggle switches in their default state. Optional fields remain empty or in default state.
Step 8 Click on the "Save" button. A confirmation message is displayed, indicating that the vacancy has been added successfully. The new vacancy appears in the vacancies list.

Post-Conditions

  • The new vacancy is added successfully with only required fields filled.
  • Optional fields (Description, toggles) remain empty or in default state.
  • The vacancy is visible in the vacancies list.

Test Scenario for Recruitment Functionality

OrangeHRM Demo - Recruitment

Test Case ID

TC-046

Test Case Name

Verify that Admin cannot add a vacancy without Vacancy Name

Pre-Conditions

  • The Admin must be logged in (refer to TC-001 for valid login credentials)

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on "Recruitment" on the left side bar. The Candidates page is displayed.
Step 2 Click on the "Vacancies" button in the top left corner. The Vacancies page is displayed.
Step 3 Click on the "+ Add" button. The "Add Vacancy" form is displayed.
Step 4 Leave the "Vacancy Name" field empty. The field remains empty.
Step 5 Select Job Title from the "Job Title" dropdown.
Input: Software Engineer
Job Title is selected and visible.
Step 6 Input Hiring Manager.
Input: John Smith
Hiring Manager is entered and visible.
Step 7 Click on the "Save" button. An error message is displayed next to the "Vacancy Name" field: "Required". The vacancy is not saved.

Post-Conditions

  • No vacancy is created in the system.
  • The Admin remains on the "Add Vacancy" page for correction.
  • The error message is clearly visible next to the Vacancy Name field.

Test Scenario for Recruitment Functionality

OrangeHRM Demo - Recruitment

Test Case ID

TC-047

Test Case Name

Verify that Admin cannot add a vacancy without Job Title

Pre-Conditions

  • The Admin must be logged in (refer to TC-001 for valid login credentials)

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on "Recruitment" on the left side bar. The Candidates page is displayed.
Step 2 Click on the "Vacancies" button in the top left corner. The Vacancies page is displayed.
Step 3 Click on the "+ Add" button. The "Add Vacancy" form is displayed.
Step 4 Input Vacancy Name.
Input: Backend Developer
Vacancy Name is entered and visible.
Step 5 Leave the "Job Title" dropdown unselected. The Job Title field remains empty.
Step 6 Input Hiring Manager.
Input: Jane Doe
Hiring Manager is entered and visible.
Step 7 Click on the "Save" button. An error message is displayed next to the "Job Title" field: "Required". The vacancy is not saved.

Post-Conditions

  • No vacancy is created in the system.
  • The Admin remains on the "Add Vacancy" page for correction.
  • The error message is clearly visible next to the Job Title field.

Test Scenario for Recruitment Functionality

OrangeHRM Demo - Recruitment

Test Case ID

TC-048

Test Case Name

Verify that Admin cannot add a vacancy without Hiring Manager

Pre-Conditions

  • The Admin must be logged in (refer to TC-001 for valid login credentials)

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on "Recruitment" on the left side bar. The Candidates page is displayed.
Step 2 Click on the "Vacancies" button in the top left corner. The Vacancies page is displayed.
Step 3 Click on the "+ Add" button. The "Add Vacancy" form is displayed.
Step 4 Input Vacancy Name.
Input: Frontend Developer
Vacancy Name is entered and visible.
Step 5 Select Job Title from the "Job Title" dropdown.
Input: Software Engineer
Job Title is selected and visible.
Step 6 Leave the "Hiring Manager" field empty. The field remains empty.
Step 7 Click on the "Save" button. An error message is displayed next to the "Hiring Manager" field: "Required". The vacancy is not saved.

Post-Conditions

  • No vacancy is created in the system.
  • The Admin remains on the "Add Vacancy" page for correction.
  • The error message is clearly visible next to the Hiring Manager field.

Test Scenario for Recruitment Functionality

OrangeHRM Demo - Recruitment

Test Case ID

TC-049

Test Case Name

Verify that Admin can edit an existing vacancy

Pre-Conditions

  • The Admin must be logged in (refer to TC-001 for valid login credentials)
  • At least one vacancy must already exist in the system (refer to TC-037 for adding a vacancy)

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on "Recruitment" on the left side bar. The Candidates page is displayed.
Step 2 Click on the "Vacancy" button in the top left corner. The Vacancies page is displayed with a list of existing vacancies.
Step 3 Locate the vacancy to edit from the list and click on the edit icon (✏️) in the actions column. The "Edit Vacancy" form is displayed with pre-filled information.
Step 4 Update the "Vacancy Name" field.
Input: Senior Software Engineer
Vacancy Name is updated and visible.
Step 5 Update the "Number of Positions" field.
Input: 5
Number of Positions is updated and visible.
Step 6 Update the "Description" field.
Input: Lead development of enterprise software solutions
Description is updated and visible.
Step 7 Leave other fields unchanged. All other fields retain their original values.
Step 8 Click on the "Save" button. A confirmation message is displayed, indicating that the vacancy has been updated successfully.
Step 9 Navigate back to the Vacancies list and locate the edited vacancy. The updated vacancy name and details are displayed in the vacancies list.

Post-Conditions

  • The vacancy information is successfully updated in the system.
  • The updated details are reflected in the vacancies list.
  • The changes persist after page refresh or logout/login.

Test Scenario for Recruitment Functionality

OrangeHRM Demo - Recruitment

Test Case ID

TC-050

Test Case Name

Verify that Admin can delete a vacancy

Pre-Conditions

  • The Admin must be logged in (refer to TC-001 for valid login credentials)
  • At least one vacancy must already exist in the system

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on "Recruitment" on the left side bar. The Candidates page is displayed.
Step 2 Click on the "Vacancies" button in the top left corner. The Vacancies page is displayed with a list of existing vacancies.
Step 3 Check and note the current total number of vacancies displayed. The total number of vacancies is visible and noted.
Step 4 Locate the vacancy to delete and click on the trash can icon (🗑️) in the actions column. A confirmation prompt appears asking if the Admin wants to delete the vacancy.
Step 5 Confirm the deletion by clicking "Yes, Delete" in the prompt. The vacancy is deleted successfully, and a confirmation message is displayed.
Step 6 Verify that the deleted vacancy no longer appears in the vacancies list. The vacancy is removed from the list.
Step 7 Check the total number of vacancies displayed. The total number of vacancies is decreased by 1 compared to the count noted in Step 3.

Post-Conditions

  • The vacancy is permanently deleted from the system.
  • The deleted vacancy no longer appears in the vacancies list.
  • The total number of vacancies in the system is reduced by 1.
  • Any associated candidates remain in the system but are no longer linked to the deleted vacancy.

Test Scenario for Recruitment Functionality

OrangeHRM Demo - Recruitment

Test Case ID

TC-051

Test Case Name

Verify that Admin can delete multiple vacancies at once

Pre-Conditions

  • The Admin must be logged in (refer to TC-001 for valid login credentials)
  • At least one vacancy must already exist in the system

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on "Recruitment" on the left side bar. The Candidates page is displayed.
Step 2 Click on the "Vacancies" button in the top left corner. The Vacancies page is displayed with a list of existing vacancies.
Step 3 Check and note the current total number of vacancies displayed. The total number of vacancies is visible and noted.
Step 4 Select multiple vacancies by checking the checkboxes next to the desired vacancies. The checkboxes for the selected vacancies are checked.
Step 5 Click on the "Delete Selected" button at the top of the vacancies list. A confirmation pop-up appears, asking for confirmation to delete the selected vacancies.
Step 6 Confirm the deletion by clicking "Yes, Delete" in the prompt. The vacancies are deleted successfully, and a confirmation message is displayed.
Step 7 Verify that the deleted vacancies no longer appear in the vacancies list.. The vacancies are removed from the list.
Step 8 Check the total number of vacancies displayed. The total number of vacancies is decreased by the number of deleted vacancies compared to the count noted in Step 3.

Post-Conditions

  • The vacancies are permanently deleted from the system.
  • The deleted vacancies no longer appear in the vacancies list.
  • The total number of vacancies in the system is reduced.
  • Any associated candidates remain in the system but are no longer linked to the deleted vacancy.

Test Scenario for Recruitment Functionality

OrangeHRM Demo - Recruitment

Test Case ID

TC-052

Test Case Name

Verify that Number of Positions field accepts valid range (1-99)

Pre-Conditions

  • The Admin must be logged in (refer to TC-001 for valid login credentials)

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on "Recruitment" on the left side bar. The Candidates page is displayed.
Step 2 Click on the "Vacancies" button in the top left corner. The Vacancies page is displayed.
Step 3 Click on the "+ Add" button. The "Add Vacancy" form is displayed.
Step 4 Fill in all required fields except "Number of Positions".
Vacancy Name: Product Manager
Job Title: Product Manager
Hiring Manager: John Smith
All required fields are filled correctly.
Step 5 Input minimum valid value in "Number of Positions" field.
Input: 1
The value is entered and visible.
Step 6 Click on the "Save" button. A confirmation message is displayed. The vacancy is added successfully with 1 position.
Step 7 Click on the "+ Add" button again to create a new vacancy. The "Add Vacancy" form is displayed.
Step 8 Fill in all required fields except "Number of Positions".
Vacancy Name: Senior Product Manager
Job Title: Product Manager
Hiring Manager: Jane Doe
All required fields are filled correctly.
Step 9 Input maximum valid value in "Number of Positions" field.
Input: 99
The value is entered and visible.
Step 10 Click on the "Save" button. A confirmation message is displayed. The vacancy is added successfully with 99 positions.

Post-Conditions

  • Vacancies with 1 and 99 positions are successfully created.
  • The system accepts values within the valid range (1-99).

Test Scenario for Recruitment Functionality

OrangeHRM Demo - Recruitment

Test Case ID

TC-053

Test Case Name

Verify that Number of Positions field rejects invalid values (0, negative, > 99)

Pre-Conditions

  • The Admin must be logged in (refer to TC-001 for valid login credentials)

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on "Recruitment" on the left side bar. The Candidates page is displayed.
Step 2 Click on the "Vacancies" button in the top left corner. The Vacancies page is displayed.
Step 3 Click on the "+ Add" button. The "Add Vacancy" form is displayed.
Step 4 Fill in all required fields except "Number of Positions".
Vacancy Name: Data Analyst
Job Title: Data Analyst
Hiring Manager: Jane Doe
All required fields are filled correctly.
Step 5 Input 0 in "Number of Positions" field.
Input: 0
The value is entered.
Step 6 Click on the "Save" button. An error message is displayed: "Number of Positions must be between 1 and 99". The vacancy is not saved.
Step 7 Clear the field and input a negative number.
Input: -5
The value is entered or prevented by the system.
Step 8 Click on the "Save" button. An error message is displayed: "Number of Positions must be between 1 and 99". The vacancy is not saved.
Step 9 Clear the field and input a number greater than 99.
Input: 100
The value is entered.
Step 10 Click on the "Save" button. An error message is displayed: "Number of Positions must be between 1 and 99". The vacancy is not saved.
Step 11 Clear the field and input a valid value.
Input: 5
The value is entered and visible.
Step 12 Click on the "Save" button. A confirmation message is displayed. The vacancy is added successfully.

Post-Conditions

  • No vacancy is created with invalid Number of Positions values (0, negative, >99).
  • The system properly validates and rejects out-of-range values.
  • The vacancy is successfully created only with a valid value (1-99).