Test cases for input boxes

Test cases for common input boxes

1. Enter the Chinese and English spaces, the middle space of the character string, the first and last spaces, the carriage return and line feed character
2. The character length check, the input is the extra long character of the buffer overflow, the default character, the null character, the special character, especially the reserved character
3. According to the different programming languages ​​used on the page, enter different language strings, such as HTML format language, JS function format
4, enter full-width / half-width numbers, upper and lower case English
5, enter special strings such as null, & nbsp spaces, Enter escape character
6. If it is a required item, only enter a few spaces, the program should be friendly tips
7. After the data is submitted, check whether the content in the database is correct

Test cases for numeric input boxes

1. Enter the first and last digit of the integer as 0
2. Enter the positive and negative values
3. Enter 0, the decimal and the last digit of the decimal are 0
4. Enter multiple decimal points
5. Enter the number of decimal digits greater than or equal to the required valid digit
6. Enter For non-numeric data, the program should prompt an error; if the field prohibits the direct input of non-numeric data, you can try to copy and paste it, and you should not save it when saving, and give the corresponding prompt
7, half-width numbers, full-width numbers
8, spaces + Number

Test cases for date-type input boxes

1. Enter 0
, 1, 30
, 31 , 32 for the day 2. Enter 28 , 29 , 30 , 31 for the day according to the leap year, month and month 3. Enter 0
, 1, 12, 13 for the month 4. Enter 00, 23, 24 for the hour
5. Enter 00
, 59, 60 in minutes and seconds 6. Date format verification, legal according to project requirements
7. Enter special characters such as Chinese characters, English and characters
8. In addition, verify whether the date and time involved in the system are taken from the server

Test cases for uploaded files

1. Page verification, such as the page is beautiful and easy to use, whether the button text and explanatory text are correct, the identification of the required items is correct, whether the required items are verified
2. The file type and file size are verified according to the system requirements, It can be analyzed from equivalence class and boundary value. The upload failure request has clear prompt information
3. Upload a 0kb file
4. Upload a damaged file, for example, change 1.txt to 1.jpg and upload
5. Upload a file that is used by other programs, or has been opened for editing
6. Can you manually enter the path, manually enter a file address that exists or does not exist
7. Whether the uploaded file supports Chinese path, Chinese name
8, File name maximum, minimum, special characters (including spaces), whether aligned using the program statements affected
9, a plurality of upload file can be uploaded simultaneously, whether to select a folder to upload their corresponding file
10, exceeds the maximum number of files uploaded value submitted after or before submitting check
11, upload fault tolerance test, the same inspection coverage as file operation
12, file iso Testing, such as insufficient disk space
13, upload rate performance testing, check system resources
14, to upload files safety testing, such as uploading common Trojans
15, upload the file characteristics of the test, such as whether to support HTTP
after 16, upload files , Check whether it is consistent with the original file, including directory settings, etc.
17. Whether the uploaded file can be opened correctly

Test cases for downloaded files

1. Right-click Save As to download the file correctly
, whether the tool download is correct 2. Click whether download prompts to download or the page opens
3. Whether the file without the tool installed on the machine can be opened
4. For the content opened directly in the page Whether the display is normal, the page aesthetics
5. Whether it is displayed correctly locally
6. Whether the download times are recorded correctly, and whether the download is canceled will record the download times
7. Whether the files with download permissions set in the background can be seen correctly, whether Can be correctly downloaded
8. Whether the download file supports multiple files to be downloaded at the same time, or the same file is downloaded multiple times
9. Download file abnormality test, such as local disk space is less than
10, download file rate performance test
11, download file characteristics test, such as whether Support breakpoint download
12. After downloading the file, check whether it is consistent with the original file and whether it can be opened correctly

Test cases for user registration and login

[Interface test]
1. Whether the layout is reasonable, whether the input boxes and buttons are aligned, whether the interface style is uniform, and there are correct typos
[Function test]
1. The user name and password have maximum and minimum lengths. According to the boundary value analysis, take the point, Departure point, interior point
2. The user name and password have character type requirements. According to the analysis of equivalence classes, divide into several invalid and valid equivalence classes.
3. Verify whether the required fields are empty and enter normally.
4. Enter a special username and password Characters, such as / '"\ or program language, etc.
5. When entering a password, a prompt message is required when the uppercase keyboard is opened
6. Whether the entered password is displayed in cipher text
7. Change the case of an existing user ’s username and password to log in
8 1. Whether the parameters will be passed in clear text after login
9. The user name does not exist in the database, or the user name exists, the wrong password is used to log in
10. The correct user name entered or there is a space between the front and back of the password
11. After the login fails, not record the password function
12, select the Remember password if the password can be saved, reopened whether to save the correct password
13, select the Remember Whether to change an account after the code, saved passwords correctly and account corresponding to
14, after the login fails, already enter the user name and password in general needs to be emptied
15, after logging in to save links inside, shut the browser directly copy the link to see if you can access
[Performance test]
1. It takes a few seconds to open the login page. It takes a few seconds after entering the correct user name and password to successfully jump.
2. Whether the multi-user concurrent login meets the design requirements
3. The login meets the requirements and the system is stable. Meet the requirements
[security test]
1. General password requirements cannot be copied and pasted
2. Whether the user name and password are sent to the server through encryption
3. The verification of the user name and password should be the server and the client to simultaneously verify
4. The input box of the user name and password requires blocking SQL injection, such as input or 1 = 1
5. Limit the number of incorrect logins to prevent brute force cracking
6. Verify the effective time of cookies
7. Whether to allow multiple users to log in at the same time
8. Log in with an account that has been deleted or disabled
[Ease of use test]
1. Check whether tab and enter are supported Key
[Compatibility Test]
1. Whether it can be displayed normally in mainstream browsers, whether the function is normal
2. Whether different platforms can work normally
3. Whether it works normally on mobile devices
———————————— ————
Copyright Statement: This article is the original article of the CSDN blogger "Liu_KH", following the CC 4.0 BY-SA copyright agreement, please attach the original source link and this statement.
Original link: https://blog.csdn.net/Liu_KH/java/article/details/79497753

Guess you like

Origin www.cnblogs.com/LZHOO97/p/12735546.html