How to test a web login page
In previous interviews and interview colleagues communication process, have repeatedly asked: "give you a login page, there are two textbox above, a submit button, you will test how"? Or ask, please design more than 30 test case for this page.
addition to the above three points. You should also look for a functional interfaces behind him, which is the input-output interface is correct, and other features related to the function of the point, whether there is a correlation function and abnormal function of impact
A functional test
- Enter the correct user name and password, and click on the submit button to verify whether the correct login, the login is successful jump to the corresponding page;
- Enter the wrong user name or wrong password, click submit login will fail, and a corresponding error message box;
- Can After a successful login can jump to the correct page;
- A user name and password, if too short or too long, how they deal with;
- User name and password, there are special characters and situations other than English, such as whether to allow input;
- Before and after handling user names and passwords have spaces;
- Whether the password with an asterisk (*) display;
- Remember functional user name (user name and password can be remembered browser)
- After landing failure, you can not record the password function;
Second, the interface testing
- Layout is reasonable, and a button testbox 2 are aligned;
- Testbox length and buttons, whether the compound required height;
- The interface is beautiful;
- Pictures, colors, fonts, hyperlinks, whether are displayed correctly
- Open the login page takes a few seconds
- After entering the correct user name and password, the login is successful jump to a new page no more than 5S
- How many users can simultaneously support both Login
Fourth, security testing
- Generated after a successful login Cookie, whether it is httponly (or likely to be stolen script);
- User name and password are encrypted by the way, is sent to the Web server;
- Verify the user name and password, log in to view the complete server logs to verify correct, not just the front-end JavaScript validation;
- Enter the user name and password box should be shielded SQL injection attacks;
- Enter the user name and password box, and enter the script should be banned (to prevent XSS attacks);
- The number of incorrect landing restrictions (to prevent brute force);
Fifth, usability testing
- Can I use a full keyboard, if there are shortcuts;
- After entering a user name and password and press Enter, you can log on;
Sixth, compatibility testing
- Mainstream browser Under can normal, and the normal function (IE, 7,8,9,10, Firefox, Chrome , Safari, etc.);
- Whether different platforms normal work , such as Windows , Mac;
- It is working on a mobile device, such as Iphone;
Seven, Andriod test the WEB
- Different resolutions;
- A different browser sizes (browser maximized, and non-maximized);
- Software auxiliary test (Accessibility test) - Accessibility software testing is to test whether the software to provide adequate accessibility to disabled users;
- High-contrast displays properly (visually impaired people to use)
In previous interviews and interview colleagues communication process, have repeatedly asked: "give you a login page, there are two textbox above, a submit button, you will test how"? Or ask, please design more than 30 test case for this page.
addition to the above three points. You should also look for a functional interfaces behind him, which is the input-output interface is correct, and other features related to the function of the point, whether there is a correlation function and abnormal function of impact
A functional test
- Enter the correct user name and password, and click on the submit button to verify whether the correct login, the login is successful jump to the corresponding page;
- Enter the wrong user name or wrong password, click submit login will fail, and a corresponding error message box;
- Can After a successful login can jump to the correct page;
- A user name and password, if too short or too long, how they deal with;
- User name and password, there are special characters and situations other than English, such as whether to allow input;
- Before and after handling user names and passwords have spaces;
- Whether the password with an asterisk (*) display;
- Remember functional user name (user name and password can be remembered browser)
- After landing failure, you can not record the password function;
Second, the interface testing
- Layout is reasonable, and a button testbox 2 are aligned;
- Testbox length and buttons, whether the compound required height;
- The interface is beautiful;
- Pictures, colors, fonts, hyperlinks, whether are displayed correctly
- Open the login page takes a few seconds
- After entering the correct user name and password, the login is successful jump to a new page no more than 5S
- How many users can simultaneously support both Login
Fourth, security testing
- Generated after a successful login Cookie, whether it is httponly (or likely to be stolen script);
- User name and password are encrypted by the way, is sent to the Web server;
- Verify the user name and password, log in to view the complete server logs to verify correct, not just the front-end JavaScript validation;
- Enter the user name and password box should be shielded SQL injection attacks;
- Enter the user name and password box, and enter the script should be banned (to prevent XSS attacks);
- The number of incorrect landing restrictions (to prevent brute force);
Fifth, usability testing
- Can I use a full keyboard, if there are shortcuts;
- After entering a user name and password and press Enter, you can log on;
Sixth, compatibility testing
- Mainstream browser Under can normal, and the normal function (IE, 7,8,9,10, Firefox, Chrome , Safari, etc.);
- Whether different platforms normal work , such as Windows , Mac;
- It is working on a mobile device, such as Iphone;
Seven, Andriod test the WEB
- Different resolutions;
- A different browser sizes (browser maximized, and non-maximized);
- Software auxiliary test (Accessibility test) - Accessibility software testing is to test whether the software to provide adequate accessibility to disabled users;
- High-contrast displays properly (visually impaired people to use)
In previous interviews and interview colleagues communication process, have repeatedly asked: "give you a login page, there are two textbox above, a submit button, you will test how"? Or ask, please design more than 30 test case for this page.
addition to the above three points. You should also look for a functional interfaces behind him, which is the input-output interface is correct, and other features related to the function of the point, whether there is a correlation function and abnormal function of impact
A functional test
- Enter the correct user name and password, and click on the submit button to verify whether the correct login, the login is successful jump to the corresponding page;
- Enter the wrong user name or wrong password, click submit login will fail, and a corresponding error message box;
- Can After a successful login can jump to the correct page;
- A user name and password, if too short or too long, how they deal with;
- User name and password, there are special characters and situations other than English, such as whether to allow input;
- Before and after handling user names and passwords have spaces;
- Whether the password with an asterisk (*) display;
- Remember functional user name (user name and password can be remembered browser)
- After landing failure, you can not record the password function;
Second, the interface testing
- Layout is reasonable, and a button testbox 2 are aligned;
- Testbox length and buttons, whether the compound required height;
- The interface is beautiful;
- Pictures, colors, fonts, hyperlinks, whether are displayed correctly
- Open the login page takes a few seconds
- After entering the correct user name and password, the login is successful jump to a new page no more than 5S
- How many users can simultaneously support both Login
Fourth, security testing
- Generated after a successful login Cookie, whether it is httponly (or likely to be stolen script);
- User name and password are encrypted by the way, is sent to the Web server;
- Verify the user name and password, log in to view the complete server logs to verify correct, not just the front-end JavaScript validation;
- Enter the user name and password box should be shielded SQL injection attacks;
- Enter the user name and password box, and enter the script should be banned (to prevent XSS attacks);
- The number of incorrect landing restrictions (to prevent brute force);
Fifth, usability testing
- Can I use a full keyboard, if there are shortcuts;
- After entering a user name and password and press Enter, you can log on;
Sixth, compatibility testing
- Mainstream browser Under can normal, and the normal function (IE, 7,8,9,10, Firefox, Chrome , Safari, etc.);
- Whether different platforms normal work , such as Windows , Mac;
- It is working on a mobile device, such as Iphone;
Seven, Andriod test the WEB
- Different resolutions;
- A different browser sizes (browser maximized, and non-maximized);
- Software auxiliary test (Accessibility test) - Accessibility software testing is to test whether the software to provide adequate accessibility to disabled users;
- High-contrast displays properly (visually impaired people to use)