json - JMeter EOF does not exist -
in jmeter, http request performs post of json-formmated body data. within request, have listener (save responses file) save response. see image: listener: save resonses
i need post response within 2nd http request, created config element (csv data set config) containing basename follows: see image: config element: csv data set config
in 2nd http request, added following body data hope of posting contents of saved file body of second request.
${__filetostring(/users/c13018/documents/results/${__eval(${json_file})}.json,,)} when run it, stop thread exception caused "... file 'eof'.json not exist."
if change following using hard-coded filename, works.
${__filetostring(c:/users/c13018/documents/results/${__eval(recordtest_1)}.json,,)} any idea why?
solved
i guess taking of examples provided others "too literally". correct payload body needed be
${__filetostring(${__eval(${json_file})},,)} additionally, removed cvs controller element because no longer needed after correctly fixing http body use variable name (newrecordfile) defined in listener.
Comments
Post a Comment