当前位置:网站首页>文件上传,用例怎么写?
文件上传,用例怎么写?
2022-07-21 05:19:00 【程序员阿常】
读者提问:文件上传,用例怎么写 ?
阿常回答:我们先分别给文件上传一个特定的场景。
文件上传:每个文件大小不超过 20M,文件个数不超过 10个,文件格式不限。
一、文件上传测试点
一)文件大小
1、文件大小 0 KB,上传时是否有提示。
2、文件大小 19.8 M,是否能上传成功。
3、文件大小 20.2 M,是否能上传成功。
4、文件大小,是提交前校验,还是提交后校验。
二)文件个数
1、上传文件个数 1个,是否能上传成功。
2、上传文件个数 10个,是否能上传成功。
3、上传文件个数 11个,上传时是否有提示。
4、上传文件个数,是提交前校验,还是提交后校验。
三)文件格式
1、验证所有支持的文件格式是否都能上传成功。
四)文件名称
1、文件名称为空,上传后文件名称显示是否正确。
2、长文件名称较长,上传后文件名称显示是否正确。
3、文件名称含特殊字符,上传后文件名称显示是否正确。
五)删除文件
1、上传的文件是否支持删除,能否删除成功。
2、删除文件后重新上传文件,文件上传成功。
六)断点续传
1、上传文件过程中断网,等网络恢复,看文件是否继续上传。
看完今天的分享对你是不是有所启发呢,有任何想法都欢迎大家后台私信阿常,一起探讨交流
。(如何发私信:滑到文章最底部,点击发消息即可)
关注公众号,更多测试干货在路上
程序员阿常
十年职场历程,拥有丰富的软件测试经验,以及项目管理经验。
244篇原创内容
公众号
边栏推荐
- Machine learning frequency vs Bayes
- tcp三次握手与四次断开
- CocosCreator3. X access Tencent game online battle engine notes
- 从字符串中提取数字
- C # from entry to mastery (I)
- 005_ SS_ Palette Image-to-Image Diffusion Models
- Reading and writing of super large Excel
- Static routing extension
- The path problem of downloading, reading and storing JSON files by hololens (personal hololens2 advanced development summary I)
- Fiddler actual combat - small white level - installation and basic packet capturing and packet changing operations
猜你喜欢
C#从入门到精通(一)
About AssetBundle resource management and hot update on hololens2 (personal hololens2 advanced development summary III)
Is the subscript operator a monocular operator or a binocular operator
Hcip day 4
Postman工具的灵活运用
AGVmir205--软件开发(API调用)
[advanced semiconductor process technology series] strained silicon process technology
AGV调试随手记(一)——型号:MIR250
rip综合实验
Analyze examples and immersively master important concepts of matter
随机推荐
Datart custom plug-in, without changing the source code, enables Bi to successfully complete another innovation
Database beginner's notes
测试三角化,利用直接线性变换法求三维点坐标(三维重建task2-1)
Analysis of matter protocol characteristics (III) device discovery, authentication and distribution network
Analysis of market capacity of smart meters, with annual shipments exceeding 100 million
单臂路由配置
从基础矩阵中求解本质矩阵,得到相机的参数(三维重建task1-5)
MGRE实验
HCIP第四天
第五天,ospf数据包
基于OSPF的MGRE实验
Jenkins持续集成自动化测试实战(上篇)
Understand the composition and working principle of cache
HCIP第二天RIP
Action principle of NAT
The market scale of 300million chips competes, and the inventory of domestic ZigBee chips
Hcip day 9
编写简单有序链表的创建和查询修改
Stack simulation queue
JDBC uses SQL statement to use limit paging error