Hi! I have this problem when using a variable to point out the test data file (<path>\sit_tel.csv in my case below) in CSV Data Set Config, that Jmeter does not substitute the variable and thus complaing about not finding ${testdata}, pls see clip from log file below:
2021-04-07 12:27:36,201 INFO o.a.j.t.JMeterThread: Thread started: Loop per test environment 1-1 2021-04-07 12:27:36,217 INFO o.a.j.p.j.s.J.Set hosts, paths and files: ---- Loop number 1 means SIT-TEL ---- 2021-04-07 12:27:36,217 INFO o.a.j.p.j.s.J.Set hosts, paths and files: testdata = C:\cygwin64\home\krinis_adm\jmeter\testplan\overvakning\sit_tel.csv 2021-04-07 12:27:36,217 INFO o.a.j.s.FileServer: Stored: ${testdata} 2021-04-07 12:27:36,217 ERROR o.a.j.t.JMeterThread: Test failed! java.lang.IllegalArgumentException: File ${testdata} must exist and be readable at org.apache.jmeter.services.FileServer.createBufferedReader(FileServer.java:425) ~[ApacheJMeter_core.jar:5.2.1] at org.apache.jmeter.services.FileServer.getReader(FileServer.java:391) ~[ApacheJMeter_core.jar:5.2.1] at org.apache.jmeter.services.FileServer.getParsedLine(FileServer.java:373) ~[ApacheJMeter_core.jar:5.2.1] at org.apache.jmeter.config.CSVDataSet.iterationStart(CSVDataSet.java:208) ~[ApacheJMeter_components.jar:5.2.1] The code (JSR223 sampler) generating the INFO log line above FileServer's looks like this: vars.put("testdata",vars.get("csvPath")+"\\sit_tel.csv"); vars.put("props_folder","overvakning_props_sit_tel"); log.info("---- Loop number "+loop_no+" means SIT-TEL ----"); log.info("testdata = "+vars.get("testdata")); The Test Plan looks like this (hope it is clear enough...): [cid:image001.png@01D72BAD.4079CE20] I can see in the "Debug Sampler AP37" that the the variable ${testdata} is correctly defined with a correct value. Med vänlig hälsning Krister Nilsson ____________________________________________________________ Krister Nilsson / översteprest, prestandatest IT Fond konto och teknisk plattform Telefon direkt 010-454 21 97, mobil 072-210 21 97 krister.nils...@pensionsmyndigheten.se<mailto:krister.nils...@pensionsmyndigheten.se> Pensionsmyndigheten, Telefon vxl 0771-771 771, fax 08-658 13 00, www.pensionsmyndigheten.se<http://www.pensionsmyndigheten.se/> P Överväg miljöpåverkan innan du skriver ut detta e-brev.