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
- 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
If you don't want or cannot record - look into the page source and search for input type="file ... line.
nameattribute will be "Parameter Name" you're looking for. I.e. for StackOverflow upload dialog it will befile
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.
1 Comment
bala s
Suppose name attribute is missing.How to give the parameter name?
Referring to the section HTTP Request in Apache JMeter, as you can see in below screenshot,
- You could use Browse... for file upload option.
- You could enter parametername as well.
Hope it helps.
2 Comments
bala s
Thanks.How to know the Parameter name?
a3.14_Infinity
1. You could accept this answer if it has helped you :) 2. Depending on your requirement, you could set ParameterName.

