Test Scenario for User Account Management

OrangeHRM Demo - Account Settings and Profile Updates

Test Case ID

TC-010

Test Case Name

Verify that the user can successfully change the password with valid credentials

Pre-Conditions

  • The user must be logged in (refer to TC-001 for valid login credentials).
  • The user is on the Dashboard page: https://opensource-demo.orangehrmlive.com/web/index.php/dashboard/index

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on the user icon in the upper-right corner.
The dropdown menu is displayed.
Step 2 Select the “Change Password” option from the dropdown.
The 'Change Password' page or modal is displayed.
Step 3 Enter the current password in the “Current Password” field.
Input: admin123
Current password is entered and masked.
Step 4 Enter a new password in the “New Password” field.
Input: newpassword123
New password is entered and masked.
Step 5 Enter the same password in the “Confirm Password” field.
Input: newpassword123
Confirm password is entered and masked.
Step 6 Click on the “Save” button. A success message (e.g., “Password changed successfully”) is displayed, and the password is updated.

Post-Conditions

  • The user should be able to log in using the new password.
  • The old password should no longer be valid.

Test Scenario for User Account Management

OrangeHRM Demo - Account Settings and Profile Updates

Test Case ID

TC-011

Test Case Name

Verify that user cannot change password by providing an invalid "Current Password"

Pre-Conditions

  • The user must be logged in (refer to TC-001 for valid login credentials).
  • The user is on the Dashboard page: https://opensource-demo.orangehrmlive.com/web/index.php/dashboard/index

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on the user icon in the upper-right corner.
The dropdown menu is displayed.
Step 2 Select the “Change Password” option from the dropdown.
The 'Change Password' page or modal is displayed.
Step 3 Input an invalid current password in the “Current Password” field.
Input: admin123admin
The system masks the entered invalid current password.
Step 4 Enter a new password in the “New Password” field.
Input: newpassword123
New password is entered and masked.
Step 5 Enter the same password in the “Confirm Password” field.
Input: newpassword123
Confirm password is entered and masked.
Step 6 Click on the “Save” button. An error message is displayed, indicating that the current password is incorrect, and the password remains unchanged.

Post-Conditions

  • The user's password remains unchanged.
  • No system errors or crashes occur due to the invalid password attempt.
  • The user can still log in using the original password.

Test Scenario for User Account Management

OrangeHRM Demo - Account Settings and Profile Updates

Test Case ID

TC-012

Test Case Name

Verify that user cannot change password when the new passwords do not match

Pre-Conditions

  • The user must be logged in (refer to TC-001 for valid login credentials).
  • The user is on the Dashboard page: https://opensource-demo.orangehrmlive.com/web/index.php/dashboard/index

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on the user icon in the upper-right corner.
The dropdown menu is displayed.
Step 2 Select the “Change Password” option from the dropdown.
The 'Change Password' page or modal is displayed.
Step 3 Enter a valid current password in the “Current Password” field.
Input: admin123
Current password is entered and masked.
Step 4 Enter a new password in the “New Password” field.
Input: newpassword123
New password is entered and masked.
Step 5 Enter a different password in the “Confirm Password” field.
Input: password123
Confirm password is entered and masked.
Step 6 Click on the “Save” button. An error message is displayed, indicating that the new passwords do not match.

Post-Conditions

  • The user's password remains unchanged.
  • The user can still log in using the original password.
  • The system correctly handles the mismatch without errors or crashes.

Test Scenario for User Account Management

OrangeHRM Demo - Account Settings and Profile Updates

Test Case ID

TC-013

Test Case Name

Verify that user cannot change password with less than 7 characters

Pre-Conditions

  • The user must be logged in (refer to TC-001 for valid login credentials).
  • The user is on the Dashboard page: https://opensource-demo.orangehrmlive.com/web/index.php/dashboard/index

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on the user icon in the upper-right corner.
The dropdown menu is displayed.
Step 2 Select the “Change Password” option from the dropdown.
The 'Change Password' page or modal is displayed.
Step 3 Enter a valid current password in the “Current Password” field.
Input: admin123
Current password is entered and masked.
Step 4 Enter a new password that is less than 7 characters.
Input: Abc12
An error message appears indicating that the password must have at least 7 characters.

Post-Conditions

  • The password is not changed.
  • The user can still log in using the old (valid) password.

Test Scenario for User Account Management

OrangeHRM Demo - Account Settings and Profile Updates

Test Case ID

TC-014

Test Case Name

Verify that user cannot change password without lowercase letter

Pre-Conditions

  • The user must be logged in (refer to TC-001 for valid login credentials).
  • The user is on the Dashboard page: https://opensource-demo.orangehrmlive.com/web/index.php/dashboard/index

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on the user icon in the upper-right corner.
The dropdown menu is displayed.
Step 2 Select the “Change Password” option from the dropdown.
The 'Change Password' page or modal is displayed.
Step 3 Enter a valid current password in the “Current Password” field.
Input: admin123
Current password is entered and masked.
Step 4 Enter a new password that does not contain a lowercase letter.
Input: ADMIN123
An error message appears indicating that the password must contain at least one lowercase letter.

Post-Conditions

  • The password is not changed.
  • The user can still log in using the old (valid) password.

Test Scenario for User Account Management

OrangeHRM Demo - Account Settings and Profile Updates

Test Case ID

TC-015

Test Case Name

Verify that user cannot change password without a number

Pre-Conditions

  • The user must be logged in (refer to TC-001 for valid login credentials).
  • The user is on the Dashboard page: https://opensource-demo.orangehrmlive.com/web/index.php/dashboard/index

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on the user icon in the upper-right corner.
The dropdown menu is displayed.
Step 2 Select the “Change Password” option from the dropdown.
The 'Change Password' page or modal is displayed.
Step 3 Enter a valid current password in the “Current Password” field.
Input: admin123
Current password is entered and masked.
Step 4 Enter a new password that does not contain a number.
Input: Admin@@
An error message appears indicating that the password must contain at least one number.

Post-Conditions

  • The password is not changed.
  • The user can still log in using the old (valid) password.

Test Scenario for User Account Management

OrangeHRM Demo - Account Settings and Profile Updates

Test Case ID

TC-016

Test Case Name

Verify that the user cannot change the password when all fields are left empty

Pre-Conditions

  • The user must be logged in (refer to TC-001 for valid login credentials).
  • The user is on the Dashboard page: https://opensource-demo.orangehrmlive.com/web/index.php/dashboard/index

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on the user icon in the upper-right corner.
The dropdown menu is displayed.
Step 2 Select the “Change Password” option from the dropdown.
The 'Change Password' page or modal is displayed.
Step 3 Leave the “Current Password” field empty.
Input:
The field remains empty.
Step 4 Leave the “New Password” field empty.
Input:
The field remains empty.
Step 5 Leave the “Confirm Password” field empty.
Input:
The field remains empty.
Step 6 Click on the “Save” button.
Error messages are displayed for each required field.

Post-Conditions

  • The password is not changed.
  • The user can still log in using the old (valid) password.
  • The system correctly handles the empty input without errors or crashes.

Test Scenario for User Account Management

OrangeHRM Demo - Account Settings and Profile Updates

Test Case ID

TC-017

Test Case Name

Verify that the user can Logout successfully

Pre-Conditions

  • The user must be logged in (refer to TC-001 for valid login credentials).
  • The user is on the Dashboard page: https://opensource-demo.orangehrmlive.com/web/index.php/dashboard/index

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click on the user icon in the upper-right corner.
The dropdown menu is displayed.
Step 2 Click on the "Logout" option from the dropdown.
The user is logged out and redirected to the login page.
Step 3 Verify that the login page is displayed. The login page is displayed, confirming the user is logged out.

Test Scenario for User Account Management

OrangeHRM Demo - Account Settings and Profile Updates

Test Case ID

TC-018

Test Case Name

Verify session termination after logout

Pre-Conditions

  • The user must be logged in (refer to TC-001 for valid login credentials).
  • The user is on the Dashboard page: https://opensource-demo.orangehrmlive.com/web/index.php/dashboard/index
  • TThe user has successfully logged out (refer to TC-017 ).

Test Steps & Expected Results

Step Action Expected Result
Step 1 Click the Logout option from the user menu.
The user is logged out and redirected to the login page.
Step 2 On the login page, press the browser Back button.
The user may see the cached Dashboard page, but any attempt to interact (e.g., click on any menu item, link, or button) redirects immediately to the Login page.
Step 3 Observe whether the user can interact with the Dashboard or access any other authorized pages. The system correctly handles session termination and prevents unauthorized access after logout.