1

In Jmeter HTTP request, send files with the request option is there.Here name attribute is not displayed.So I unable to enter the parameter name.how to upload the file or image.

2 Answers 2

3
  1. You can record file upload (just make sure that file(s) you're uploading live in JMeter's "bin" folder). JMeter is smart enough to detect "Parameter Name" and MIME type
  2. If you don't want or cannot record - look into the page source and search for input type="file ... line.

    name attribute will be "Parameter Name" you're looking for. I.e. for StackOverflow upload dialog it will be file

    Stackoverflow upload

See How to Test Image Upload Functionality With JMeter guide for a little bit more detailed information on simulating file upload in your Jmeter test.

Sign up to request clarification or add additional context in comments.

1 Comment

Suppose name attribute is missing.How to give the parameter name?
0

Referring to the section HTTP Request in Apache JMeter, as you can see in below screenshot,

  1. You could use Browse... for file upload option.
  2. You could enter parametername as well.

Hope it helps.

JMeter Apache HTTP Request

2 Comments

Thanks.How to know the Parameter name?
1. You could accept this answer if it has helped you :) 2. Depending on your requirement, you could set ParameterName.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.