How do I test the input box for a Web? _ Test Cases

Source: Internet
Author: User

Software Test Communication Group, Welcome to test the prawns, new entrants to the group, together to explore the study of testing technology, the group also has a lot of information, 656721740

The Web input box is the control that the page uses very frequently in the B/S architecture system. For example, we login to a website, input username and password controls are input boxes, such as the use of Baidu search, in the input search content control is also input box, such as online shopping for an item, we need to enter the purchase quantity, but also an input box, The control that enters the transfer amount when net bank transfers is also the input box. Here is the generic test point for the input box I summarized.


How to test the input box for a web. 1, the first consideration is a text input box or a numeric text input box


Text input box test point:
1. Repeat
2, empty is not to fill in support
2, Length: For example, support 100 characters, that need to test 100 characters, 101 characters, 100 characters after entering a Chinese character, the maximum length of the display is normal
3, which is supported by the type of characters: numbers, letters, Chinese characters, characters. @。 #, special characters (whether tab return is supported)
4, whether to support more than a row, save the success of the display is displayed by the multiple lines entered
5, the character with HTML tag pair, display is normal such as::<br> <br> &nbsp;
6, the string before and after the space, before and after the space is filtered, the middle of the space is retained
7, the maximum length display is normal
8, the full angle half the letter, the numeral
9, the string with JS tag pair, such as <script>alert (' AA ');</script>
10, the replication function is available
11, the Paste function is available, paste more than the maximum length of the string how to display.
12. Multi-browser compatibility
13, Permission check


Numeric input-Box test point:
1. Repeat
2, the blank does not fill in support
2. Numeric type:
A: decimal support number of digits, not enough to support the number of digits, the following is automatically up to 0, more than the number of supported digits, is rounded or direct shed
B: Integer
3, 0 whether the support, compliance with business logic
4. Does the negative number support
5, the range of values: for example -5<x<5
A: When the decimal type is 4 decimal places: -5.0000-4.9999 0.0000 4.9999 5.0000
B: Integer type:-5-4 0 4 5
6, non-numeric type support input
7, half-width digits, full-width digits.
8, Space + number
9. Multi-browser compatibility

10, permission check


Software Test Communication Group 656721740, whether it is 0 basis or test prawns, welcome everyone to the group inside the discussion, exchange, everyone progress, the group has a lot of test-related information


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.