当前位置:网站首页>Jmeter上传和下载文件
Jmeter上传和下载文件
2022-07-22 18:10:00 【农耕园】
零 上传文件的请求参数


一 配置HTTP Header Manager

二 配置HTTP Request
File path: 上传文件的路径
Parameter Name:file(根据情况自己命名)
MIME Type:application/octet-stream



常用的MIME Type:
| 文件后缀 | Mime类型 | 说明 |
|---|---|---|
.flv | flv/flv-flash | 在线播放 |
.html或.htm | text/html | 超文本标记语言文本 |
.rtf | application/rtf | RTF文本 |
.gif | image/gif | GIF图形 |
.jpeg或.jpg | image/jpeg | JPEG图形 |
.au | audio/basic | au声音文件 |
.mid或.midi | audio/midi或audio/x-midi | MIDI音乐文件 |
.ra或.ram或.rm | audio/x-pn-realaudio | RealAudio音乐文件 |
.mpg或.mpeg或.mp3 | video/mpeg | MPEG文件 |
.avi | video/x-msvideo | AVI文件 |
.gz | application/x-gzip | GZIP文件 |
.tar | application/x-tar | TAR文件 |
.exe | application/octet-stream | 下载文件类型 |
.rmvb | video/vnd.rn-realvideo | 在线播放 |
.txt | text/plain | 普通文本 |
.mrp | application/octet-stream | MRP文件(国内普遍的手机) |
.ipa | application/iphone-package-archive | IPA文件(IPHONE) |
.deb | application/x-debian-package-archive | DED文件(IPHONE) |
.apk | application/vnd.android.package-archive | APK文件(安卓系统) |
.cab | application/vnd.cab-com-archive | CAB文件(Windows Mobile) |
.xap | application/x-silverlight-app | XAP文件(Windows Phone 7) |
.sis | application/vnd.symbian.install-archive | SIS文件(symbian平台) |
.jar | application/java-archive | JAR文件(JAVA平台手机通用格式) |
.jad | text/vnd.sun.j2me.app-descriptor | JAD文件(JAVA平台手机通用格式) |
.sisx | application/vnd.symbian.epoc/x-sisx-app | SISX文件(symbian平台) |
三 执行结果



四 执行过程中遇到报错信息
1 提示Required request part 'file' is not present
{"message":"400 BAD_REQUEST \"Required request part 'file' is not present\"","status":400,"code":"illegal_argument","timestamp":1656560961553}2 状态码500,提示类型不能转换
{"message":"org.springframework.http.codec.multipart.SynchronossPartHttpMessageReader$SynchronossFormFieldPart cannot be cast to org.springframework.http.codec.multipart.FilePart","status":500,"code":"error","timestamp":1656561342391}边栏推荐
猜你喜欢

postman提取response header中的token参数值,设置为环境变量,附代码

Test case: phone number

OpenGL create a new window

Software life cycle model ----- V model

Selenium基础知识 自动登录百度网盘

软件测试基础

课后练习01---QQ登录

Divide according to whether to check the original code: white box test and black box test

Basic process of sales service

2021-06-03pip报错 ValueError: Unable to find resource t64.exe in package pip._vendor.distlib
随机推荐
关于count=count++
【HUAWEI】华为机试试题-105
[original] software test example guidance
Appium environment deployment for mobile terminal testing [unfinished to be continued]
学习amber教程A17:伞形采样,绘制丙氨酸三肽的势能面
Strategies of test case design and writing
一个简易的手机端todo
测试前言2
amber教程3.2:GPU查看和用pmemd引擎跑MD
beanshell处理json的技巧
Divided by whether to run source code: static test and dynamic test
使用数据库 创建和删除数据库
测试点,第一天总结
OpenGL create a new window
After class exercise 02 --- phone number of a city
爬取网页动态加载的评论
Software bug
【SIT环境测试通过后,部署PRE环境,仍然有bug存在的原因】
BeanShell内置变量prev的使用技巧
Solutions to xftp upload errors