-1

Uploaded a doc by adding the following details in the file upload

File path:added the PDF in bin folder
Parameter name : Documentfile
MIME Type: application/json

I am getting empty response but in Postman it is working and getting the success response

halfer
  • 19,824
  • 17
  • 99
  • 186
Rajamegam
  • 1
  • 1

1 Answers1

0

There are too many possible ways to upload a file in JMeter and in Postman. Unfortunately we cannot help you with JMeter configuration without seeing how is Postman set up.

The only piece of advice we can provide is that given you're capable of successfully executing the request in Postman you can just record it using JMeter's HTTP(S) Test Script Recorder

  1. Set Postman to use JMeter as the proxy

    enter image description here

  2. Import JMeter's certificate into Postman

    enter image description here

  3. Copy the file you're uploading to JMeter's "bin" folder

  4. Run your request in Postman

  5. JMeter will intercept the request and generate proper HTTP Request sampler

More information: How to Convert Your Postman API Tests to JMeter for Scaling

Dmitri T
  • 159,985
  • 5
  • 83
  • 133