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 situations.
Test Cases for Password
- Verify if the login is possible with a valid password.
- Verify if the separate row for entering the password is visible.
- Verify the limit of characters for password matches with the specified range.
- Check if the password is masked or visible in the form of asterisks to ensure secured login.
- Check if the backspace or delete keys help in removing entered information in case wrong credentials are entered.
- Check if an error message appears for an invalid password.
- Check if the login is possible with the new password after the password is reset.
- Verify that login is not possible with the wrong credentials.
- Verify that login is only possible within the specified time limit after the password is entered.
- Verify if the font size, color, and style match with the specified requirements.
Test Cases for Forgot Password
- Check if the forgot password option is shown right after the wrong password is entered.
- Verify if the forgot password link is working correctly and landing on the correct page.
- Check if the forgot password link is directed to the right page (i.e. forgot password page).
- Verify if the link to change the password is sent to the user’s email id only.
- Verify if the security questions asked are the same as the user entered during sign up.
- Check if a wrong answer is entered to any security question, it should not proceed to the next question.
- Verify if the new password matches with required specifications for characters (e.g. special characters, upper case characters, numerics, etc.)
- Verify if the login is possible with the newly changed password.
- Check if the link gets dissolved once the user has set a new password.
- Check if the link is live/applicable for one-time use only.
- Verify that the link is working only for a specified amount of time and then shows a time-out message.
- Verify that the user should not be allowed to request forgot password frequently.
Test Case Examples
Kuldeep is the founder and lead author of ArtOfTesting. He is skilled in test automation, performance testing, big data, and CI-CD. He brings his decade of experience to his current role where he is dedicated to educating the QA professionals. You can find him on LinkedIn and also follow ArtOfTesting’s LinkedIn page.