Table Of Contents
Test Cases for Password
Although the password is one single field on the login page, you will realize how important it is to create password test cases so your customers are not left confused when they misplace the login credentials. Here is a list of test cases for the password field that you can follow:- Verify if a valid password is allowing users to successfully log in to their accounts.
- Check if an invalid password entry is preventing users from logging into the account.
- Check if an error message displays when the entered password is wrong.
- Validate that the password field is case-sensitive.
- Verify the size, font, and placement of the password input field on the page.
- Check that the entered password is not visible at first and is hidden by some special characters (dots, asterisk, or such).
- Test if the option to make the password visible (usually, Show Password) is present or not.
- Test if clicking on the Show Password button makes the password visible to the user.
- Validate that the character limit for the password field is accurate and within the range specified in the specification documents.
Test Cases for Forgot Password
Similar to test cases for the password field, there are many test cases for the forgot password option. Knowledge of these different tests will help you run the right cases and scripts to verify the forgot password functionality on the login page. It is an essential requirement that every user will use once. We recommend that you properly understand the value of the forgot password function before building or running the below tests.Features under test | Test cases |
Forgot password link | Check that the forgot password option is visible on the page. Verify that the forgot password link is clickable. Verify that clicking on the link takes the user to the forgot password page. |
Forgot password functionality | Check if you receive an email with a password reset link with valid credentials. Check if an error message is displayed when you provide an invalid email address for forgot password. Verify that you get the password reset link for an already registered email. Login after resetting the password and see if you can successfully log in. Test that you receive a confirmation message or email after changing/resetting the password. Test if the password reset option ensures taking input that follows the guidelines of password creation. Check and see if the user gets blocked when they try to reset the password beyond a certain number of attempts. Verify that the reset password link is disabled after the new password is set. If there are any security questions, check if they are displayed right and take only valid answers. Verify that the password reset link email is sent only to the particular user’s email. |
When to Automate Test Cases for Forgot Password?
Both password and forgot password options have many test cases that call for thorough understanding and attention. Missing out on even one test or its result can prove to be fatal for the entire software. It may give access to an individual who is not the right user or deny entry to the owner of the account. To avoid any of such instances and more of a similar manner and intensity, automating the test cases for the password field along with forgot password option is an essential choice. You should automate your test cases when:- There are numerous test cases that require immense manual effort and a high budget.
- Your team has fewer members working on the project.
- There are communication/collaboration issues when testing is done manually.
- You want to avoid human-borne problems.
- It is clear to you that opting for test automation will save you time, money, and the discomfort of working on the same thing again and again.
How to Automate Test Cases for Forgot Password?
For forgot password testing, you can go through the test cases that we have listed above. Here, we will take the example of verifying if the user receives an email upon clicking on the password reset button with the valid email address, with Testsigma as the test automation tool. Below is the Testsigma login page with Forgot Password link.
This is the forgot password page we will request the link from:
Here are the steps on how you can automate the above-mentioned test case for forgot password with Testsigma tool:
Step 1:Create a new test case with a name and navigation URL.
Step 2:
Create the test steps using NLP dropdowns or the record option available in the tool. Testsigma provides multiple NLP options that you can choose to build the test steps in plain English without any coding.
Step 3:
After you are done creating the tests, run them to see the pass and fail status. In this case, we have provided a valid email address to receive the password reset link, So the status would be Pass. You can also check screenshots and videos of the test to share with the team members.
Step 4:
Lastly, verify that you have received the email with the password reset link in your email. You can further check that the reset link is valid and works properly for you. You can also check out how you can create test cases for regression testing, API testing, and cross-browser testing blogs and guides to better understand Testsigma and its features.Book a demo with us now!