web testing how to test a web login page

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.

The purpose of this study question: whether the interviewer familiar with the various test methods, if there is a wealth of Web testing experience, whether understand Web development, as well as the ability to design Test case.
 
Random answer:
He said the only function, should be concerned about
1. page output is in line with expectations, including page display elements, page jump;
2. floor data is correct, the need to focus on database table data, accurate to each field;
3. Log Viewer, the log files concern the overall data flow is reasonable 

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

  1. 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;
  2. Enter the wrong user name or wrong password, click submit login will fail, and a corresponding error message box;
  3. Can After a successful login can jump to the correct page;
  4. A user name and password, if too short or too long, how they deal with;
  5. User name and password, there are special characters and situations other than English, such as whether to allow input;
  6. Before and after handling user names and passwords have spaces;
  7. Whether the password with an asterisk (*) display;
  8. Remember functional user name (user name and password can be remembered browser)
  9. After landing failure, you can not record the password function;

Second, the interface testing

  1. Layout is reasonable, and a button testbox 2 are aligned;
  2. Testbox length and buttons, whether the compound required height;
  3. The interface is beautiful;
  4. Pictures, colors, fonts, hyperlinks, whether are displayed correctly
Third, the performance test
  1. Open the login page takes a few seconds
  2. After entering the correct user name and password, the login is successful jump to a new page no more than 5S
  3. How many users can simultaneously support both Login

Fourth, security testing

  1. Generated after a successful login Cookie, whether it is httponly (or likely to be stolen script);
  2. User name and password are encrypted by the way, is sent to the Web server;
  3. Verify the user name and password, log in to view the complete server logs to verify correct, not just the front-end JavaScript validation;
  4. Enter the user name and password box should be shielded SQL injection attacks;
  5. Enter the user name and password box, and enter the script should be banned (to prevent XSS attacks);
  6. The number of incorrect landing restrictions (to prevent brute force);

Fifth, usability testing

  1. Can I use a full keyboard, if there are shortcuts;
  2. After entering a user name and password and press Enter, you can log on;

Sixth, compatibility testing

  1. Mainstream browser Under can normal, and the normal function (IE, 7,8,9,10, Firefox, Chrome , Safari, etc.);
  2. Whether different platforms normal work , such as Windows , Mac;
  3. It is working on a mobile device, such as Iphone;

Seven, Andriod test the WEB

  1. Different resolutions;
  2. A different browser sizes (browser maximized, and non-maximized);
  3. Software auxiliary test (Accessibility test) - Accessibility software testing is to test whether the software to provide adequate accessibility to disabled users;
  4. High-contrast displays properly (visually impaired people to use)
 
Category:  test basis , the workplace

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.

The purpose of this study question: whether the interviewer familiar with the various test methods, if there is a wealth of Web testing experience, whether understand Web development, as well as the ability to design Test case.
 
Random answer:
He said the only function, should be concerned about
1. page output is in line with expectations, including page display elements, page jump;
2. floor data is correct, the need to focus on database table data, accurate to each field;
3. Log Viewer, the log files concern the overall data flow is reasonable 

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

  1. 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;
  2. Enter the wrong user name or wrong password, click submit login will fail, and a corresponding error message box;
  3. Can After a successful login can jump to the correct page;
  4. A user name and password, if too short or too long, how they deal with;
  5. User name and password, there are special characters and situations other than English, such as whether to allow input;
  6. Before and after handling user names and passwords have spaces;
  7. Whether the password with an asterisk (*) display;
  8. Remember functional user name (user name and password can be remembered browser)
  9. After landing failure, you can not record the password function;

Second, the interface testing

  1. Layout is reasonable, and a button testbox 2 are aligned;
  2. Testbox length and buttons, whether the compound required height;
  3. The interface is beautiful;
  4. Pictures, colors, fonts, hyperlinks, whether are displayed correctly
Third, the performance test
  1. Open the login page takes a few seconds
  2. After entering the correct user name and password, the login is successful jump to a new page no more than 5S
  3. How many users can simultaneously support both Login

Fourth, security testing

  1. Generated after a successful login Cookie, whether it is httponly (or likely to be stolen script);
  2. User name and password are encrypted by the way, is sent to the Web server;
  3. Verify the user name and password, log in to view the complete server logs to verify correct, not just the front-end JavaScript validation;
  4. Enter the user name and password box should be shielded SQL injection attacks;
  5. Enter the user name and password box, and enter the script should be banned (to prevent XSS attacks);
  6. The number of incorrect landing restrictions (to prevent brute force);

Fifth, usability testing

  1. Can I use a full keyboard, if there are shortcuts;
  2. After entering a user name and password and press Enter, you can log on;

Sixth, compatibility testing

  1. Mainstream browser Under can normal, and the normal function (IE, 7,8,9,10, Firefox, Chrome , Safari, etc.);
  2. Whether different platforms normal work , such as Windows , Mac;
  3. It is working on a mobile device, such as Iphone;

Seven, Andriod test the WEB

  1. Different resolutions;
  2. A different browser sizes (browser maximized, and non-maximized);
  3. Software auxiliary test (Accessibility test) - Accessibility software testing is to test whether the software to provide adequate accessibility to disabled users;
  4. 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.

The purpose of this study question: whether the interviewer familiar with the various test methods, if there is a wealth of Web testing experience, whether understand Web development, as well as the ability to design Test case.
 
Random answer:
He said the only function, should be concerned about
1. page output is in line with expectations, including page display elements, page jump;
2. floor data is correct, the need to focus on database table data, accurate to each field;
3. Log Viewer, the log files concern the overall data flow is reasonable 

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

  1. 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;
  2. Enter the wrong user name or wrong password, click submit login will fail, and a corresponding error message box;
  3. Can After a successful login can jump to the correct page;
  4. A user name and password, if too short or too long, how they deal with;
  5. User name and password, there are special characters and situations other than English, such as whether to allow input;
  6. Before and after handling user names and passwords have spaces;
  7. Whether the password with an asterisk (*) display;
  8. Remember functional user name (user name and password can be remembered browser)
  9. After landing failure, you can not record the password function;

Second, the interface testing

  1. Layout is reasonable, and a button testbox 2 are aligned;
  2. Testbox length and buttons, whether the compound required height;
  3. The interface is beautiful;
  4. Pictures, colors, fonts, hyperlinks, whether are displayed correctly
Third, the performance test
  1. Open the login page takes a few seconds
  2. After entering the correct user name and password, the login is successful jump to a new page no more than 5S
  3. How many users can simultaneously support both Login

Fourth, security testing

  1. Generated after a successful login Cookie, whether it is httponly (or likely to be stolen script);
  2. User name and password are encrypted by the way, is sent to the Web server;
  3. Verify the user name and password, log in to view the complete server logs to verify correct, not just the front-end JavaScript validation;
  4. Enter the user name and password box should be shielded SQL injection attacks;
  5. Enter the user name and password box, and enter the script should be banned (to prevent XSS attacks);
  6. The number of incorrect landing restrictions (to prevent brute force);

Fifth, usability testing

  1. Can I use a full keyboard, if there are shortcuts;
  2. After entering a user name and password and press Enter, you can log on;

Sixth, compatibility testing

  1. Mainstream browser Under can normal, and the normal function (IE, 7,8,9,10, Firefox, Chrome , Safari, etc.);
  2. Whether different platforms normal work , such as Windows , Mac;
  3. It is working on a mobile device, such as Iphone;

Seven, Andriod test the WEB

  1. Different resolutions;
  2. A different browser sizes (browser maximized, and non-maximized);
  3. Software auxiliary test (Accessibility test) - Accessibility software testing is to test whether the software to provide adequate accessibility to disabled users;
  4. High-contrast displays properly (visually impaired people to use)

Guess you like

Origin www.cnblogs.com/Horne/p/10978815.html