PP1
PP1

Reputation: 9

Issue in file upload in Jmeter script

As unable to record the application through JMeter recorder (encountered 401 Unauthorized while recording login), used Blazemeter Chrome plugin to record the script. But file upload is not getting successful during re-run. I have tried checking/unchecking "Use multipart/formdata" , provided details in File upload section of the transaction, used Java implementation but no luck.

enter image description here

enter image description here

enter image description here

enter image description here

Upvotes: 0

Views: 81

Answers (1)

Dmitri T
Dmitri T

Reputation: 168237

We cannot "suggest" anything without seeing the:

  1. Response Data and headers - can be observed using View Results Tree listener
  2. Request Data and headers - the same listener can show you this
  3. Values of any JMeter Variables used. Can be figured out from the request data but it's more convenient to use Debug Sampler

The most common reason for not being able to replay the recorded test script is missing or improperly implemented correlation so ensure that your test is doing what it supposed to be doing since the very first request.

The approach of "checking/unchecking" and switching to different implementations is not very good, you should rather use a sniffer tool to capture the requests originating from JMeter and from the real browser, compare them and amend JMeter's configuration unless the requests would be exactly the same (apart from dynamic parameters which need to be correlated)

Upvotes: 0

Related Questions