20 Scenarios for Testing Login Pages & Search Functionalities

20 Scenarios for Testing Login Pages & Search Functionalities

I recently had a conversation with a prospect and when I mentioned website UX testing to him, he paused and asked me with a dubious tone, “Why does a website need UX testing?”

I explained to him that, few major reasons why UX testing is so important is because improved user experience ensures customer satisfaction, retention & product promotion through mouth publicity. If the users cannot find what they are looking for on one website, they will inevitably move on to the next with the same product offering. So even if a site looks breathtaking and gets lots of bell and whistles for it, if the user can’t figure out how to use it, he is bound to move on. 

While explaining this to him, it struck me that, UX testers often invest time and efforts to test some of the most complex scenarios possible to curate the best user experience. However, in the pursuit of testing these complex scenarios, it may so happen that they may miss out on testing the basic but crucial functionalities, such as the Login & Search Functionality.

In this blog, we provide a handy list of 20+ test scenarios which are a must-add to the list of test cases for login page and search functionality. 

List of Test Scenarios (Test Cases) for Login Page

GUI & Functionality:

  1. Minimum and Maximum lengths should be set for all the text boxes
  2. Password should be displayed in masked format rather than showing actual text format
  3. Login credentials in UPPER case should not be treated as invalid
  4. Validation message should be shown when special characters are entered in the username field, or when invalid username and/or password is entered or the fields are left blank
  5. Reset button should clear data from all the text boxes in the form
  6. Login credentials, especially password, should be stored in database in encrypted format


Security:

  1. When logged in user copy URL and paste in new browser window, it should redirect to Login page
  2. Users should not be allowed to copy and paste Password from text box
  3. Notification email for multiple device login - if user login from unusual device/machine
  4. Entering Login credentials using virtual keyboard should be provided for banking application
  5. After 3 or 5 unsuccessful attempts of login, user login credentials should get locked for specific period e.g. 24 hours
  6. SSL certificate should be implemented/installed for Secured Website
  7. SQL injection attacks & XSS should be verified for login
  8. Two-way authentication through OTP on mobile/email should be tested for banking application

Session:

  1. After logout if user clicks on back button user should not be able to login within same session, it should redirect to login page
  2. If user logged in on multiple devices and Logout from one device then it should Logout from all platform/devices
  3. Maximum Session out time should be set for Secured website

Browser:

  1. If Browser cookies are cleared and user tries to login, the system should ask for credentials again
  2. ‘Remember Form Data’ setting of the browser should not remember the password
  3. Validate the login functionality when browser cookies are turned OFF

Grab your free copy of the eBook on Introduction to Agile Testing today!

Scenarios for Search Functionalities:

  1. Search results displayed should be relevant to search keyword
  2. % sign in search keyword should not redirect to 404 ERROR
  3. Application should not crash if user inserted % in search field
  4. When user start typing word in text box it should suggest words that matches typed keyword
  5. There should be pre-defined search criteria for auto complete e.g. after typing first 3 letter it should suggest matching keyword
  6. When user clicks on any link from result and navigates back, then result should be maintained
  7. After clicking Search field - search history should be displayed (latest search keyword)
  8. All search keyword/filters should get cleared on clicking Reset button
  9. Search results should be cleared on clicking clear search button
  10. History displayed in search field should be relevant to logged in user only
  11. Pagination should be tested for searches returning high number of records
  12. Total number of search records/results should be displayed on page
  13. Search keyword should get highlighted with color in the search results
  14. For ecommerce sites - search keyword should suggest similar kind of product/items
  15. For Advanced Search - limited search filters should be provided
  16. Water text should be provided for user to understand what to search
  17. Validate search rules defined for “Exact Match” with the search key word
  18. Validate search rules defined for “Similar Match” with the search key word
  19. Validate search rules defined to search with a set of keywords
  20. User should be able to search when he enters the keyword and hits ‘Enter’ button on keyboard

Author

Krunal Patel, a seasoned QA Testing Tech Lead, Agile Testing QA Manager, and Practice Lead, brings over 15 years of dynamic expertise in Information Technology. With a proven track record in multiple domains such as Insurance, Investment Banking, Health Care, Treasury, Auto Insurance, and Manufacturing, Krunal consistently delivers top-notch quality output, establishing himself as a highly accomplished IT professional in the field of Software Testing and Quality Assurance.

Table of Contents

Talk To Our Experts