Skip to main content

Test Cases for Login Page

Here in this article i am telling you the Test cases of Login page which you can use in your interviews. For Test Cases i am showing you a login page of Google as a sample login form to understand these test cases.


Test Cases, Login form test cases, Sample Test cases, template of Test Cases
Image Source Google



For Test Requirement:

  • Email should be in valid format.
  • Password should at least 6 character long.
  • Password should contain the combination of numbers, special character as per requirement.

Functionality Test Cases regarding Login Page:
  • If User enter the valid Email and Password and click on Sign in button, user should be signed in and redirect to the Logged in page as per requirement.
  • If user put both email and password blank and click on Sign In button then system should show the error that please enter your Email and Password.
  • If user put email but leave password blank and click on Sign In button then system should show the error that please enter your Password.
  • If user put Password but leave Email blank and click on Sign In button then system should show the error that please enter your Email.
  • If User Put the wrong Email and correct password and click on Sign in button , it should be stay on login page with an error message that please put your correct Password.
  • If User Put the correct Email and wrong password and click on Sign in button , it should be stay on login page with an error message that please put your correct Password.
  • If User Put the wrong Email and wrong password and click on Sign in button , it should be stay on login page with an error message that please put your correct Email/Password.
  • Once user filled both Email and Password correct and check on checkbox (Stay Sign in) then if user didn't logged out from the system , user will always logged in and whenever user put the URL in that browser he/she will be logged in.
  • Once user filled both Email and Password correct and check on checkbox (Stay Sign in) then if user  logged out from the system then next time user need to put his/her credential(Email and Password) to get logged into the system.
  • Once user filled both Email and Password correct and uncheck on checkbox (Stay Sign in) then if user need to put his/her credential(Email and Password) to get logged into the system even he/she logged out or not.
Click on "Can't access your account?":
  • Once user will click on this link then a new page/pop up window should open where user can fill his/her email address.
Security Test Cases:
  • When user typing the password it should be visible in encrypted form so that other one who is sitting behind you can't get your password.
  • In database the password should also be saved in encrypted form.
  • Your login form should be safe with SQL injection attack.
  • Your login form should be safe from Cross Site Scripting(XSS).
  • When user put correct email and password, please check that in URL your password should be in encrypted form.
  • Be ensure that the pages which user can't access without access should not be accessible without login. User should not allow to access the secure pages without login by just directly hit the URL.
  • The login form should be blocked or any captcha should be generated if user try to login with wrong credential more then 3 times. 
  • Client side validation should be there with each text box.
  • Error message should not contains any malicious information so that hackers can use that to hack the websites.
  • If user logged in and redirect to my profile page then on browser back button it should not redirect back on login page.
  • Put some session timeout. If user is ideal for some time or not using the site then there should be some session timeout in this cases.
UI Test Cases:
  • The all field should be as per the designed Table.
  • All fields should be aligned in all browser.
  • There should be no spelling mistakes.
  • Color of page should be eye catching.
Performance Test Cases:
  • Page should be tested in various network like Dial Up, ISDN
  • Page should be tested that how much time it is taking when page is redirecting to the Login page.
  • Page should be tested that how much time it is taking when user put the Login credential to reach to the My account page.
  • How much user can access this login page at same time.
  • What happen with login page if accessing user more then the limit.

Comments

Popular posts from this blog

What is API?

In general way, API (Application Programming Interface) is the intermediate software which is useful for two applications to communicate. API is the tool which is used for interaction of two applications. If developer developing any software which have multiple blocks (Modules) than developer use APIs to put them together.

Smoke Testing

In Smoke Testing, Testing team check the key feature or key bugs of the software. Smoke testing ensure that critical functionality of the software is working fine.If key features are not working then it is no needed to test the overall functionality because it is just waste of time. In Smoke Testing, test team check the basic feature of the software and if basic feature is not working it means software is broken very badly and further testing is unnecessary. If Smoke Testing failed then it is declared that build is unstable and revert back to developer team until smoke test is pass.