Test Cases for Password and Forgot Password Functionality

Secured gateway for any website, social media platform, or platform holding personal information is very crucial. Therefore, creating a non-faulty login page is very important. That is why while writing test cases for password or test cases for forgot password, one should be very careful and keep in mind all the possibilities. Any loophole will make the website go down, risking user’s personal information. Here are some test scenarios for password and forgot password functionality.

I hope these will be helpful next time you are required to list down scenarios for a similar situation.

Test Cases for Password

test case for password
  1. Verify if the login is possible with a valid password.

  2. Verify if the separate row for entering the password is visible.

  3. Verify the limit of characters for password matches with the specified range.

  4. Check if the password is masked or visible in the form of asterisks to ensure secured login.

  5. Check if the backspace or delete keys help in removing entered information in case wrong credentials are entered.

  6. Check if an error message appears for an invalid password.

  7. Check if the login is possible with the new password after the password is reset.

  8. Verify that login is not possible with the wrong credentials.

  9. Verify that login is only possible within the specified time limit after the password is entered.

  10. Verify if the font size, color, and style match the specified requirements.

Test Cases for Forgot Password

test case for forgot password
  1. Check if the forgot password option is shown right after the wrong password is entered.

  2. Verify if the forgot password link is working correctly and landing on the correct page.

  3. Check if the forgot password link is directed to the right page (i.e. forgot password page).

  4. Verify if the link to change the password is sent to the user’s email id only.

  5. Verify if the security questions asked are the same as the user entered during sign up.

  6. Check if a wrong answer is entered to any security question, it should not proceed to the next question.

  7. Verify if the new password matches with required specifications for characters (e.g. special characters, upper case characters, numerics, etc.)

  8. Verify if the login is possible with the newly changed password.

  9. Check if the link gets dissolved once the user has set a new password.

  10. Check if the link is live/applicable for one-time use only.

  11. Verify that the link is working only for a specified amount of time and then shows a time-out message.

  12. Verify that the user should not be allowed to request forgot password frequently.

This completes our tutorial on test cases for password and test cases for forgot password.

Test Case Examples

Login PageRegistration PageE-commerce AppGoogle Search
GMailYoutubeFacebookATM Machine
ChairCoffee MachineDateFieldDoor
CalculatorFanFlight ReservationCar
Hospital ManagementKeyboardKindleLift
Mobile PhoneMouseMicrowave OvenNotepad
Online ExaminationPenPencilRemote Control
StaplerTableTriangleTV
Wrist WatchWater BottleWhatsappWhite Board
BikeMarkerForgot PasswordAir Conditioner

Leave a Comment