How to test Web login page
This side of the test has met many times, summed up again.
Specific needs: There is a landing page, which has 2 textbox, a Submit button. Please design more than 30 test case for this page.
Purpose of this question: whether the interviewer is familiar with various test methods, has extensive experience in web testing, is aware of web development, and the ability to design test case
The subject is still quite difficult, and it is difficult for the average person to answer the question well.
Functional Testing (function test)
- Enter the correct user name and password and click the Submit button to verify that you are logged in correctly.
- Enter the wrong user name or password, verify that the login fails, and prompt for the appropriate error message.
- Can I jump to the correct page after successful login?
- User name and password, if too short or too long, what should be done
- User name and password, with special characters, and other non-English cases
- Remembering the features of the user name
- Unable to log password function after login failed
- Handling of spaces before and after user name and password
- Whether the password is displayed as an asterisk
interface testing (UI test)
- Whether the layout is reasonable, 2 testbox and a button are aligned
- Testbox and the length of the button, whether the height of the composite requirements
- Whether the interface looks good
- Pictures, colors, fonts, hyperlinks, are all displayed correctly
Performance test (performance test)
- Opening the login page takes a few seconds
- After entering the correct username and password, login successfully jumps to the new page, no more than 5 seconds
- How many users can log in at the same time
Safety Testing (security test)
- Whether the cookie generated after successful login is HttpOnly (otherwise easy to be hacked by script)
- Whether the user name and password are sent to the Web server in an encrypted manner
- Authentication of user names and passwords should be done with server-side authentication, not simply by using JavaScript on the client
- User name and password input box, should block SQL injection attack
- User name and password of the input box, should prohibit input script (prevent XSS attack)
- Number of incorrect login limits (to prevent brute force)
Usability Testing (usability test)
- Whether the keyboard can be fully operated, whether there are shortcut keys
- Enter user name, password and press ENTER, whether you can login
Compatibility Testing (compatibility test)
- Whether the main browser can show normal function (ie,6,7,8,9, Firefox, Chrome, Safari, etc.)
- Whether different platforms work properly, such as windows, MAC
- Whether the mobile device is working properly, such as the iphone, andriod
- Different resolutions
- Different browser sizes (browser maximization, and non-maximized)
Software-assisted testing (accessibility test)
Software accessibility testing refers to whether the test software provides adequate accessibility to disabled users
- can display normal under high contrast (for people with poor eyesight)
How to test Web login page