What We Are Learn On This Post
Test Case For Login Attempts | Login Attempts Test Cases
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 bad user experience.
Test Scenario Overview | |
---|---|
Post On: | Test Case For Login Attempts |
Post Type: | Test Case Template |
Published On: | www.softwaretestingo.com |
Applicable For: | Freshers & Experience |
So, we came up with the list of scenarios to Test Login Page and gradually we will be adding more such checks to this list.
What is the possible test case for login attempts?
- 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.
I will add more if something comes up to me. I hope this helps.
Related Test Cases | |
---|---|
☑️ Library Management System Test Cases | ☑️ Lift Test Cases |
☑️ Login Page Test Cases | ☑️ Login Screen Page Test Case |
Few test cases related to login attempt, considering the login form contains the only username, password, and a submit 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
The above test cases are to follow on UI and for API, let’s say we have two fields, namely:
{ "username":"abcd@gmail.com", "password":"Test@1234" }
Few test cases will be:
- Username contains domain ‘.com’
- Username is not blank
- The password is not blank
- Password is correct
Tasks To Improve Your Knowledge | |
---|---|
☑️ Negative test cases for login page | ☑️ Forgot password test cases |
☑️ Test cases for password and confirm password | ☑️ Mobile app login test cases |
☑️ API testing test cases for login page | ☑️ Test cases for Facebook |
☑️ Test cases for Instagram | ☑️ Test scenarios for Flipkart application |
Let We Inform you, For improves your knowledge you can take the above as a task and you can work on that. But from the above task list some of the tasks we have already completed and you can find those on our blog. After Completion if you want to share with us that then you can write to us at softwaretestingo.com@gmail.com.
In return for that maybe we plan something more surprising for your career. |
If you like to know about API testing insights, you can join this upcoming Webinar: ‘The Future is API Testing – Trends and How to Propel Your Testing’.
Leave a Reply