How to test Web login page

Source: Internet
Author: User
Tags sql injection attack

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)
    1. Enter the correct user name and password and click the Submit button to verify that you are logged in correctly.
    2. Enter the wrong user name or password, verify that the login fails, and prompt for the appropriate error message.
    3. Can I jump to the correct page after successful login?
    4. User name and password, if too short or too long, what should be done
    5. User name and password, with special characters, and other non-English cases
    6. Remembering the features of the user name
    7. Unable to log password function after login failed
    8. Handling of spaces before and after user name and password
    9. Whether the password is displayed as an asterisk

interface testing (UI test)
    1. Whether the layout is reasonable, 2 testbox and a button are aligned
    2. Testbox and the length of the button, whether the height of the composite requirements
    3. Whether the interface looks good
    4. Pictures, colors, fonts, hyperlinks, are all displayed correctly

Performance test (performance test)
    1. Opening the login page takes a few seconds
    2. After entering the correct username and password, login successfully jumps to the new page, no more than 5 seconds
    3. How many users can log in at the same time

Safety Testing (security test)
    1. Whether the cookie generated after successful login is HttpOnly (otherwise easy to be hacked by script)
    2. Whether the user name and password are sent to the Web server in an encrypted manner
    3. Authentication of user names and passwords should be done with server-side authentication, not simply by using JavaScript on the client
    4. User name and password input box, should block SQL injection attack
    5. User name and password of the input box, should prohibit input script (prevent XSS attack)
    6. Number of incorrect login limits (to prevent brute force)

Usability Testing (usability test)
    1. Whether the keyboard can be fully operated, whether there are shortcut keys
    2. Enter user name, password and press ENTER, whether you can login

Compatibility Testing (compatibility test)
    1. Whether the main browser can show normal function (ie,6,7,8,9, Firefox, Chrome, Safari, etc.)
    2. Whether different platforms work properly, such as windows, MAC
    3. Whether the mobile device is working properly, such as the iphone, andriod
    4. Different resolutions
    5. 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

    1. can display normal under high contrast (for people with poor eyesight)

How to test Web login page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.