简体   繁体   中英

how to upload file zip through restful api in jmeter

EDIT: how to upload file zip through restful api in jmeter strong text

I have upload Zip file but result show failure message

{"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 在此处输入图片说明

I don't see any Parameter name in your HTTP Request. 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.

Reference: Performance testing: Upload and Download Scenarios with Apache JMeter .

You may also find these useful:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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