What We Are Learn On This Post
Test Case For Login Attempts: In this article, we are going to discuss negative and positive scenarios to test the Login page. Testing of the Login page is essential in terms of security and functional aspect. Though we make sure to cover most scenarios, often some basic scenarios are missed out, which can lead to a bad user experience.
Post On: | Test Case For Login Attempts |
Post Type: | Test Case Template |
Published On: | www.softwaretestingo.com |
Applicable For: | Freshers & Experience |
Join Here: | Our Telegram Group |
What is a login attempt?
This basically means that a hacker keeps trying to guess your password until they get it right. Most of the time, they use a script for this. Limit Login Attempts allows us to track and limit the number of failed login attempts.
So, we came up with the list of scenarios to Test the Login Page, and gradually we will be adding more such checks to this list.
Test Cases For Login Attempts
Few test cases related to login attempts, considering the login form contains the only username, password, and a submit button:
- Log in with the valid credentials i.e. correct username and password
- Login with a valid username and invalid password
- Login with invalid username and valid password
- Log in with the valid username in caps and valid password
- Login with invalid credentials, to determine when the account is getting locked, in the sense how many attempts with incorrect credentials are allowed
- Login without entering the credentials, by just clicking on the login button to check the validation messages
- Log in with the valid username and password, observe the URL, make sure the data is not shown in the URL, as it can be preserved and modified later.
- I’m not covering the forgot password link scenarios here, this is only for 2 textboxes assuming username and password, and a login button.
- Login by just clicking on submit button, i.e. without entering the credentials
- Login with correct credentials, i.e. username and password
- Login with incorrect username and correct password
- Login with correct username and incorrect password
- Log in with the username in uppercase and correct password
- Login with the correct username in lowercase and correct password
- Login with the correct username in lowercase and incorrect password
- Login with incorrect username and uppercase password
- Login with correct username and correct password in lowercase
I will add more if something comes up to me. I hope this helps.
Leave a Reply