简体   繁体   English

如何通过jmeter中的restful api上传文件zip

[英]how to upload file zip through restful api in jmeter

EDIT: how to upload file zip through restful api in jmeter strong text 编辑:如何通过jmeter 强文本中的 restful api上传文件zip

I have upload Zip file but result show failure message 我已经上传了Zip文件,但结果显示失败消息

{"result":"failure","message":"File not found"}
i have used Mime type:application/octet-stream
but I have run through **fiddler** it show 
{"result":"success","message":"File saved successfully"}

please can any one find the sloutions for it what can do for jmeter 请任何人能找到它的捷径能为jmeter做些什么 在此处输入图片说明

I don't see any Parameter name in your HTTP Request. 我在您的HTTP请求中看不到任何参数名称。 Put a parameter name in your Request. 在请求中输入参数名称。

The Parameter name must be carefully specified. 参数名称必须仔细指定。 Otherwise, your file will be going nowhere. 否则,您的文件将无处可去。 In order to determine the correct value do one of the following: 为了确定正确的值,请执行以下任一操作:

Inspect page source and get “name” attribute of “file” type input. 检查页面源并获取“文件”类型输入的“名称”属性。 Or let JMeter do it for you via the HTTP(S) Test Script Recorder. 或者让JMeter通过HTTP(S)测试脚本记录器为您完成。

Reference: Performance testing: Upload and Download Scenarios with Apache JMeter . 参考: 性能测试:使用Apache JMeter上传和下载场景

You may also find these useful: 您可能还会发现以下有用的信息:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM