JMeter CSV Data for filename -
with jmeter files can sent
config:
output (success):
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: output (failure): filename resolved correctly, content length incorrect:
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
Post a Comment