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

  1. file path( image in d drive images folder , file name img.5 type png)
  2. parameter name
  3. 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:

  1. file path: full path image, i.e. d:/img5.png
  2. parameter name: image_file_1
  3. mime type: image/png

for more information on simulating file upload , download events check out performance testing: upload , download scenarios apache jmeter guide.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -