What are some functional test cases for single user login on a web application?
Single User Login Test Cases
I provide you a list of test scenarios, some functional test cases for single user login:
- All mandatory fields should be validated and indicated by an asterisk (*) symbol.
- Field length validation for the User name (6-12 chars) and Password (6-12 chars)
- Field labels should be standard, e.g. field accepting user’s first name should be labeled properly as ‘First Name.’
- Validation error messages should be displayed properly in the correct position.
- All error messages should be displayed in the same CSS style (e.g., using red color).
- General confirmation messages should be displayed using CSS style other than error messages style (e.g., using green color).
- Tooltips text should be meaningful.
- Dropdown fields should have first entry as blank or text like ‘Select’.
- Delete functionality for any record on a page should ask for confirmation.
- Input fields should be checked for the max field value. Input values greater than the specified max limit should not be accepted or stored in a database.
- Check all input fields for special characters.
- Check for timeout functionality. Timeout values should be configurable. Check application behavior after an operation timeout.
- Check numeric input fields with character input values. A proper validation message should appear.
- All fields on a page (e.g., text box, radio options, dropdown lists) should be aligned properly.
- Enough space should be provided between field labels, columns, rows, error messages, etc.
- The scroll bar should be enabled only when necessary.
- Font size, style, and color for headline, description text, labels, infield data, and grid info should be standard as specified in SRS.
- Upon click of an input text field, the mouse arrow pointer should get changed to a cursor.
- The user should not be able to type in the drop-down, select lists.
- Information filled by users should remain intact when there is an error message on page submit. The user should be able to submit the form again by correcting the errors.
- Check if proper field labels are used in error messages.
- Tab and Shift+Tab order should work properly.
- Default radio options should be pre-selected on page load.
- Dropdown field values should be displayed in a defined sort order.
- Field-specific and page-level help messages should be available.
- Check if correct fields are highlighted in case of errors.
- Check if dropdown list options are readable and not truncated due to the field size limit.
Check Also: Amazon Login Screen Test Cases
- All buttons on a page should be accessible by keyboard shortcuts, and the user should be able to perform all operations using a keyboard.
- Clicking on Sign Up should take the user to a registration page.
- Clicking on ‘Log out’ should take the user back to Home Page.
- If the user clicks on the “Remember me” option, he should be redirected to the appropriate page on the next login.
- The user should be redirected to an appropriate page for the Forgot password option.
- Forgot Password link should be present on the form.
- The reset button should clear data from all the text boxes in the form.
- The user should be redirected to the Login page if the Login URL is bypassed.
- All the test cases should be separately run for logged In and not logged in user
- Browser compatibility for the search functionality should be verified.
- The User Interface of the page, which shows only one search result or does not give any search results, should be presentable and consistent.
Thank you. I think it will help you.
Below mentioned are some of the functional test cases for a single user login of a web application:
- Verify that user gets validation message if Login button is clicked leaving all fields blank
- Verify that the user gets a validation message if an invalid username and valid password is used.
- Verify that the user gets a validation message if a valid username and invalid password is used.
- Verify that the password field is encrypted.
- Verify that the user can log in successfully if a valid username and password are entered.
- Verify that user if the user is logged in the system using the first browser, if he attempts to log in from the second browser, then he should automatically be logged out from the first browser.
- Verify max length and field validation for different characters in the fields
- Verify that password is not passed as clear text after clicking on the login
- Verify that the password is not saved in clear text in cookies also.
- Verify that cookies are persistent or non-persistent
Hope this helps 🙂
- Log in to the app with valid cred
- When a user already logged in, try to login with same credentials of the user already logged in a different environment as it is expected not to allow the user to log in since a user is already logged in
- Try to login with both invalid creds (uid,pwd)
- Try to login with anyone is wrong, i.e. uid or pwd
- Go on with field-level, i.e. specific field has to accept specific like if the password is accepting any unknown values which are deviated from the requirement.