Onecore

  • Home
  • About
  • Advertise
  • Archives
  • Privacy Policy
  • Contact

Test Cases for Login Screen Page

software templates

This article explains test cases both negative and positive for the login screen. I’m taking example of gmail login screen. If you want you can take example of WordPress or yahoo login screen or any other of your choice. The positive and negative scenarios depends on the information given the requirement document. As we are testing gmail login screen we are limited to the application which is already published with limited set of information available to test. So our best approach is exploratory testing of the web app.

I’m laying down a process which you can follow in order to come up with a login screen test cases. First we’ll write the test requirements based on our exploratory testing observation and after tht we’ll write the test scenarios and then form the negative and positive test cases.  If you want to use existing testing templates and test cases, I suggest you check these templates out.

You can make use of following login screen of gmail for your testing.

Gmail Login Screen

Gmail Login Screen

Test Requirements

As we don’t have the official Google requirements for the login screen. We’ll come up with our own requirement set for the login screen. We’ll write the scenario based on these requirements.

  • Username should contain letter, number and period.
  • Username should not be left blank.
  • Username should not be more than 40 characters.
  • Username should not start with or contain any symbols.
  • Password should be atleast 6 characters.
  • Password should contain combination of letter, numbers and symbols.
  • Password should not contain spaces and period.
  • Password should not be more than 40 characters.

Test Scenarios

Write down the test scenarios based on the following test types:

User Interface

You can check out new Outlook interface and see how the interface has changed over the years.

Here are some of the questions that can help you form test cases.

  • Where is the cursor focus in text area when you load the page?
  • Does enter key works as a substitue for the sign in button action?
  • Does username and password text field appears in order?
  • Does remmeber me check box selected by default?
  • Does the login page has register link for new users?
  • Does the user interface look as per the design specification?
  • Does login screen behaves responsively to mobile or tablet screen?
  • Do the link on page remain active or are dead?

Functionality

Login screen functionality varies with each type of application. So there is going to be a difference between yahoo login and gmail login. Here’s some general possible functionality scenarios.

Take example of Lycos mail how they are not paying attention to functionality issues.

  • Does the login form works successfully?
  • Is logout link redirects back to the login screen? Is logout link functional?
  • Does forgot password link works? Does it redirect to valid password recovery page?
  • Do forward and backward buttons work properly while logged in? and also for logged out user?
  • Does form works similar in every popular browser?
  • How errors are handled and displayed?

Security

Security of the form is very crucial and you can use following scenarios to form your test cases.

Take a look at how the Outlook handles bad username and passwords security issue.

So let’s take those cases into consideration.

  • Does textbox offers masking of characters in password field?
  • Does masked characters allow deciphering if copied?
  • Is it possible to copy and paste the password?
  • is there any minimum password length?
  • is the form giving away security information if the source is viewed?
  • is the form vulnerable to SQL injection?
  • Does form allows accessing pages without logging in?
  • is URL manipulation allows access to members only area of mail?
  • is multiple accounts from same IP but different browser allowed at the same time?
  • are cookies allowed? are they disabled or allowed to be edited?

Once you go through these scenarios, you need to come up with following possible positive and negative test cases.

Positive test cases.

  • Enter valid username and password.
  • Click on forgot password link and retrieve the password for the username.
  • Click on register link and fill out the form and register username and password.
  • Use enter button after typing correct username and password.
  • Use tab to navigate from username textbox to password textbox and then to login button.

Negative test cases

  • Enter valid username and invalid password.
  • Enter valid password but invalid username.
  • Keep both field blank and hit enter or click login button.
  • Keep username blank and enter password.
  • Keep password blank and enter username.
  • Enter username and password wrong.

The more you know about the form requirement and the developed page, the more scenarios that you can come up with to test the login screen thoroughly. There are going to be plenty of combinations but that would require more time to test and exhaustive testing is not practical though possible. So you have to choose the test cases which are more important for the product risk. I hope you have found value in this information. Feel free to let me know if you need more information or have any suggestions.

software templates

Featured Articles

  • Sample Test Cases for Calendar App
  • Sample Test Cases for Dialog Box
  • Test Cases for Amazon Login Screen Page
  • Sample Test Cases for Online Editor
  • Sample Test Cases for Online Book Shopping

WPForms

ENDORSEMENT DISCLOSURE: In order for us to support our website activities, we may receive monetary compensation or other types of remuneration for our endorsement, recommendation, testimonial and/or link to any products or services from this website.

Copyright © 2022 . This website uses cookies to ensure you get the best experience on our website.