About file upload Download the following points are mainly considered:
1. File type:
When you get the demand, look at the file type there are no restrictions, if there is a limit to the requirements of the file test; If there is no limit to the upload type, the following aspects should be considered in the test case:
- A variety of common file types, including bat, XLS, xlsx, doc, docx, EXE, JSP, RAR, ZIP, ISO, etc., as well as a variety of video, audio and graphics, etc.;
- About file name: Pure Chinese name, Chinese and English mix, Chinese and digital filenames, Chinese and special characters (&*, etc.) filenames, English and digital filenames, English and special character filenames, plain English filenames, etc.;
- File name length: 1 characters, 10 characters, 100 characters, etc., including the length under various filenames;
- File storage location: D:\ file, computer \c disk \ user \ folder \ file,.. \ folder 1\ folder 2\ folder 3\ folder 4 ... File
2. File name test:
- File name too long
- The file name reaches the maximum length (Chinese, English or mixed together) after upload name display, page layout, page display normal
- The file name contains special characters
- The file name is all Chinese
- The file name is all in English
- The file name is mixed with Chinese and English
3. File Size:
Typically, the system will set the upper value of the upload file size, so when considering the upload file size, the following scenarios are included:
- File size is 0
- Files that conform to the format, with a total size slightly smaller than the restricted size
- Files that conform to the file, the total size equals the limit size
- Files that conform to the file, the total size is slightly larger than the restricted size
4. Security testing:
- Upload executable file (exe file)
- Upload common Trojan files,-tips cannot be uploaded
- Server space is full when uploading, prompt
5. Performance test:
- Upload speed is very slow (speed limit), when more than a certain time, prompt
- Upload process Broken network, there is a hint whether the upload success
- Upload Process Server Stop payroll--Prompt for upload success
- Upload Process Server resource utilization, in normal range
6. Interface Test:
- Interface aesthetics, ease of use (keyboard and mouse operation, tab jump Order is correct), display normal (as required)
- Button text is correct
- correct/Incorrect text of the error message
- Descriptive text is correct
7. Other:
- Upload a file of the same name when there are multiple upload boxes
- Upload a file that is being opened
- File path is manually entered to limit length
- Does the upload process have the ability to cancel the file being uploaded?
- Save when there are no files that have been selected well but not uploaded
- Select a good but not uploaded file can be deselected
- When the attachment is empty, whether the upload button is available, whether there is a prompt message, whether the information is clear, whether it can better guide users to use the function;
- Attachment for some reason upload failure, the system can be normal processing (network suddenly broken, the file itself is damaged, uploading the customer accidentally think off the upload dialog box, etc.);
- If the file size is a critical value, the system can be handled normally;
- After selecting the file, click the Upload button to indicate the time it takes to display the information, depending on the project;
- Whether the file name is written in accordance with the requirements of the user after the successful upload
6. About the Download:
- Whether the file can be downloaded normally, and whether the download process may be re-downloaded for some reason after a sudden interruption;
- Download the file, whether it can open normally, after opening the contents of the file is changed, etc.
PS: There are also bulk uploads and downloads
File upload, download Test point summary