Thursday, 14 March 2013

How to get jpeg file size in JMeter ?

Guys have you ever tried to get the size of the "jpeg file" and pass it in a sampler ?
 Below is the function which you can use in Jmeter to get the size of the jpeg file .

${__eval(${__strLen(${__FileToString(${FILE_PATH},,)},length)})}

FILE_PATH : Replace this variable with your jpeg file location.