This interview question has been encountered many times and summarized again.
Specific Requirement: There is a login page with 2 textbox and a submit button on it. Please design more than 30 test cases for this page.
Objective: to check whether the interviewer is familiar with various testing methods, has rich Web Testing experience, has knowledge of web development, and has the ability to design test cases.
This question is still quite difficult. Generally, it is difficult for people to answer it well.
Reading directory
Function Test)
- Enter the correct user name and password, and click Submit to verify that the logon is successful.
- Enter the wrong user name or password, verify that the login will fail, and the corresponding error message is prompted.
- Can I jump to the correct page after logging on successfully?
- What should I do if the user name and password are too short or too long?
- Username and password, with special characters and other non-English characters
- Remember the user name Function
- The password cannot be logged after logon fails.
- There are spaces before and after the user name and password
- Whether the password is displayed as a star
Ui Test)
- Is the layout reasonable? Are two testboxes and one button aligned?
- Length and height of testbox and button combination requirements
Performance Test)
- It takes several seconds to open the logon page.
- Enter the correct user name and password, and log on to the new page, no more than 5 seconds
Security Test)
- Whether the cookie generated after successful login is HTTPOnly (otherwise it is easy to be stolen by scripts)
- Whether the user name and password are encrypted and sent to the Web server
- The user name and password should be verified on the server, not simply by using JavaScript on the client.
- The user name and password input box should block SQL injection attacks
- In the user name and password input box, you must disable script input to prevent XSS attacks)
- Limit on the number of wrong logins (preventing brute force cracking)
Availability Test)
- Can I use all the keyboard operations and have shortcut keys?
- Enter the user name, password, and press Enter. Can you log on?
Compatibility Test)
- Normal display of mainstream browsers (ie, 6, 7, 8, 9, Firefox, chrome, Safari, etc)
- Whether different platforms work normally, such as Windows and Mac
- Whether the mobile device works normally, such as iPhone or android
- Different Resolutions
Accessibility Test)
Software-assisted Function TestingYesTest whether the software provides adequate auxiliary functions to users with disabilities
- Whether the display is normal in high contrast (use by persons with poor eyesight)