html - Jmeter image upload using record and play -
i'm trying upload/add image while recording session, i'm getting error
undefined index: image_file_1
and found parameter name of add image button through inspect element in firebug below
<a class="btn btn-price select-file" href="javascript: void(0)"> add <i class="fo"></i> </a> <input class="file" type="file" style="display: none;" name="image_file_1"> <input type="hidden" value="image_file_1" name="attachmentsform[image][1][filename]"> <input type="hidden" value="" name="attachmentsform[image][1][filepath]"> <input type="hidden" value="local" name="attachmentsform[image][1][filelocation]">
so plz let me know have use in
- file path( image in d drive images folder , file name img.5 type png)
- parameter name
- mime type:
in order allow jmeter pick image during recording process needs live under jmeter working directory (it may vary depending on how launch jmeter same location jmeter.log file lives - /bin folder of jmeter installation). if drop img5.png file /bin folder , retry process should record upload event expected.
in regards manual simulation of image upload event - use following parameters:
- file path: full path image, i.e.
d:/img5.png
- parameter name:
image_file_1
- mime type:
image/png
for more information on simulating file upload , download events check out performance testing: upload , download scenarios apache jmeter guide.
Comments
Post a Comment