JMeter zip file download from application

不羁岁月 提交于 2019-12-13 03:17:17

问题


I have a requirement to select multiple files in my application and need to download the zip files after processsing. Using Jmeter I am unable to download the file , getting the error message:

{"exception_body":{"http_response_code":400,"message":"The request could not be understood due to malformed syntax.","debug_message":"HTTP 400 Bad Request","error_code":1000}}

Thanks in Advance


回答1:


As per you error screenshot:-

1-The request is not formatted correctly. Need to correct this. Once done, it will show status 200 but will not download anything. Considering this is the request to download the zip.

  1. In order to download the zip, use "Save Response to a file" listener under the download request. This will download the zip file.

Update for regular expression, check below:-




回答2:


I had the same issue with JMeter and solved it used Postman to send the request. You can save the response using "Send and Download". This will download the zipfile.



来源:https://stackoverflow.com/questions/51213747/jmeter-zip-file-download-from-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!