JMeter CSV Data for filename -


with jmeter files can sent

config: enter image description here

output (success): enter image description here

but doesn't work if changing file name variable. attended images find file path set ${logname}, can resolved correctly, content-length incorrect.

after changing file name variable, http response error message, saying "java.io.filenotfoundexception: ulog_5b9139cf-5542-42dc-ae76-7fde3a61c67b_235152af-feb7-4249-a168-12ed4abb426c_0.log (the system cannot find file specified)".

i think incorrect content-length led server fail read file content. is right? how fix it? thanks.

config: enter image description here output (failure): filename resolved correctly, content length incorrect: enter image description here enter image description here

jmeter looking file in it's base dir.

if jmeter.log file you'll see like:

2014/03/05 15:52:37 info  - jmeter.services.fileserver: default base='/home/jmeter'  2014/03/05 15:52:37 info  - jmeter.services.fileserver: set new base='/home/jmeter'  

this jmeter expects file located.

so can either prefix ${logname} variable full path user's desktop like

c:\users\youruser\desktop\${logname} 

or alternatively change location jmeter looking files via beahshell pre processor follows:

import org.apache.jmeter.services.fileserver; fileserver.getfileserver().setbasedir("c:/users/youruser/desktop"); 

but use caution may have impact on other relative paths.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -