java - How to send text file to a http request which shows error "request was rejected because no multipart boundary as found" -


i having issue in file uploading jmeter

i hav added parameter in http header manager , uploaded .txt file , hitting http request.

parameters

sampler request giving request code 200

response data shown below:

could not parse multipart servlet request; nested exception org.apache.commons.fileupload.fileuploadexception: request rejected because no multipart boundary founderror

  1. make sure provide full path file being uploaded under "files upload" tab of http request sampler
  2. make sure tick use multipart/form-data post box
  3. make sure "parameter name" matches "name" attribute of relevant file html input field.

    jmeter file upload


in absolute majority of cases easier record file upload event using jmeter's http(s) test script recorder, make sure copy file(s) jmeter's "bin" folder prior recording request itself, see recording file uploads jmeter article more details.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -