Specific needs: There is a landing page, which has 2 textbox, a Submit button. Please design more than 30 test cases 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 problem is still quite difficult.
Read Catalogue
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
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
Interface testing (interface test)
1. For early intervention testing: Functional testing of the interface
2. Performance testing of the interface
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
Software-assisted testing (accessibility test)
Software accessibility testing refers to whether the test software provides adequate accessibility to disabled users
- High contrast can show normal (people with poor eyesight, such as me, haha)
- Artwork optimization of the interface
Web Test--How is the login interface measured?