Test Cases For Login Page | Security Test Cases

.
Test case for login page positive and negative

Hello Folks, 

In this tutorial, we will learn how to write login Page Test Cases? We will also learn about positive test scenarios and Negative test scenarios. We can also manage our test cases in excel sheet.

How to write test cases for login page?
Here!! Important Sample test cases for the login page are given below.

UI Test Case For Login Page

  • Verify that the login page has the basic web elements that every login page contains such as Username, Password, Login button, Forgot password, Remember me, cancel button, Logo, create an account, etc.
  • Verify the Spelling, font size, etc. for alert messages.
  • Verify the responsiveness of applications on different platforms.


Functional Test Scenarios For Login Page
  • Check that all the elements are Active or not the user is able to click or type.
  • Verify the login by entering the valid username and valid password.
  • Check the login functionality by entering the valid username and invalid password (An error message must be displayed).
  • Verify the login functionality by entering the invalid username and valid password (An error message must be displayed).
  • Verify the functionality of login without entering the username and password (An error message must be displayed).
  • Verify by entering the only username (An error message must be displayed).
  • Check the login functionality by entering the only password (An error message must be displayed).
  • Verify that the password is encrypted or not when the user enters.
  • Verify that the "Remember me" check box by default is unselected. (or as per srs)
  • Verify whether the user's Login credential saves or not in the browser when the user logs in by checking the "Remember me" Check box.
  • Verify the "forgot password" functionality, whether the user is able to click on the "forgot password" link or not.
  • Verify the functionality of the "reset" button user is able to click it or not.
  • Verify that the text box gets cleared or not when clicking on the reset button.

Other Test scenarios Cases for login 

  • Verify the keyboard tab functionality, User is able to select the web element through the tab button or not.
  • Verify that the user able to click on the login button through the enter button or not.
  • Verify that the cursor blinks in the text box by default or not when the login page gets loaded.
  • Verify the Placeholder for textboxes(username, password).
  • Verify that the user is able to log in with the new password or not after he /she changes the password.

Security Test Cases for Login Page 
Here some of the important test cases for the login page are given below ...

  • Check the max limit of the unsuccessful login attempt.

  • Check the session Timeout. The system should log out the user for the given time.
  • Check that once a user logs in, clicking the back button doesn’t log out the user. 
  • Check if SQL Injection attacks on the login page. The application should not be vulnerable to SQL injection attacks. 
  • Check the implementation of the SSL certificate.
  • Check that the XSS vulnerability does not work. 
  • Check that when a user tries to log in with the same Login Credentials from a different browser simultaneously.
  • Check that when the user tries to log in with different Login Credentials from the Same browsers simultaneously.


Hope !!! The above test cases for the login page with Example are helpful for you ...

Team,
QA acharya

Share Your Knowledge With Us -
Mail your content - qaacharya.in@gmail.com

Test cases for the login page

Post a Comment

0 Comments