Share common input box test case design

Normal input box field verification test

1. Do not enter, empty content

2. Enter a character  

3. If there is input box character length limit of N, N-1 test characters, characters N, N + 1 characters, N + N + ... (long) these boundary values  

4. Testing required by copying a value greater than the length of the paste in the input to see if

5. Enter the half-width / em space  

6. Enter the half-width / full-width, upper / lower case characters  

7. Enter the half-width / full-width numerals  

8. Enter Simplified Chinese characters (full-width default)

9. Enter Traditional Chinese characters (full-width default)

10. Enter the half-width special characters:! @ # ¥% ...... & * ()  

11. Enter the full-width special characters:! @ # $% ^ & * ()  

12. The input character holding html: space escape character; <scrīpt> </ scrīpt>; <br>; <tr>; <td>; </ tr>; </ td>; </ html>; </ body>; </ table>  

13. 输入Javascrīpt函数:<b>Hello</b>,<scrīpt> alert("hello")</scrīpt>

14. where required password authentication, or the need for secondary confirmation input through the first copy and paste the contents of the input

15. It should be impassable

16. The words high risk, prohibited word, sensitive word

17. Enter the normal content before, after, addition of a plurality of intermediate spaces, whether filtered or filtered out while watching a stored, whether to save cause problems, if counted in calculating the length of

18. Enter Japanese characters

19. Enter html tags What problems will arise? Enter <; html>; what will happen then?

Mailbox input box field verification test

1. Enter a reasonable English and numeric characters in the correct format

Input error check fields in the first portion 2. Under the premise of the correct format

3. Inputs @ formats, such as: ab.com  

4. Input format before @ no content, such as @ B.com  

5. Enter @ no content format, such as A @  

6. Enter @ longitudinal did not content formats, such as @  

7. Enter the domain name does not format, such as a @ b., A @ b  

8. Enter @ email has a plurality of, such as a @@ b.com, a @ b @ cd  

9. Enter the domain name @ followed immediately, as a @ .com  

@ 10 following the input of a plurality of separators, such as a @ bcd, a @ bcde  

11. There are input before the @ delimiters, such as ab @ cd, abc @ de, ab @ c, abc @ d   

Enter the code block field verification test

ps: Suppose 4 digits

1. Do not enter, empty content

2. Space input

3. Enter the correct code space +, spaces appear at the beginning, middle, and end are required to test  

4. Enter the four other non-digital content

The input error check fields in the first portion

6. Enter 3 before or after the digital code is correct 3  

7. Enter the correct four other digital codes +  

Phone number input box field validation test

ps: suppose limit of 16 characters, only numbers

1. Do not enter, empty content

2. Space input

3. Enter space + numbers, spaces appear at the beginning, middle, and end are required to test  

4. Enter the other non-digital content

The input error check fields in the first portion

6. Enter a digital    

7. 16-bit digital input  

8. The digital input over 17 

9. The long digital test input

Input space + 10 numbers, spaces appear at the beginning, middle, and end are required to test

Guess you like

Origin www.cnblogs.com/tangsong41/p/11621715.html