jmeter如何上传excel文件

最近在接口测试过程中,遇到一个这样的问题:某个接口需要通过上传excel文件作为接口传参。
通过抓包得到需要上传excel文件的接口传参的Request Headers 是:
jmeter如何上传excel文件
这里的 Content-Type是动态信息,应该放在HTTP 信息头管理器。
然后,再看该接口抓包得到的接口传参:
jmeter如何上传excel文件
那么在jmeter的使用方法与上传图片的方法(https://blog.****.net/liujingqiu/article/details/68945745) 类似,此处上传excel文件,
jmeter如何上传excel文件
另外,name=t的传参,就直接放在 Parameters中,
jmeter如何上传excel文件
最后,执行脚本,可以看到excel文件上传成功了~~
jmeter如何上传excel文件

参考:https://blog.****.net/qq_41117947/article/details/79964346

关于更多jmeter应用,可以加好友
jmeter如何上传excel文件