On Wed, Dec 16, 2020 at 7:37 AM glin...@live.com <glin...@live.com> wrote:
>
> Everything is possible, just make sure to:
>
>  1. Use  setUp Thread Group
> <https://www.blazemeter.com/blog/how-use-setup-thread-group-jmeter-when-preparing-load-test>
> which is executed *before* other thread groups
>  2. If you want to make csv file names dynamic make sure to define them
> using  __setProperty() function
> <https://jmeter.apache.org/usermanual/functions.html#__setProperty>   in the
> setUp Thread Group and read them via  __P() function
> <https://jmeter.apache.org/usermanual/functions.html#__P>   in the "normal"
> Thread Groups

Sorry I can't get it to work. I'm getting

java.lang.IllegalArgumentException: File 1 must exist and be readable

It must be something simple but I just can't figure it out now. So
here is my code:

---------------------
CsvFile = "Test.csv"

log.info("CsvFile: ${CsvFile}")
props.put("CsvFile", CsvFile)
log.info("CsvFile: ${__P(CsvFile)}")
setProperty("CsvFile", CsvFile)
log.info("CsvFile: ${__P(CsvFile)}")
---------------------

And for that, I'm getting:

2020-12-16 16:48:49,970 INFO o.a.j.p.j.s.J.init: CsvFile: Test.csv
2020-12-16 16:48:49,970 INFO o.a.j.p.j.s.J.init: CsvFile: 1
2020-12-16 16:48:49,970 INFO o.a.j.p.j.s.J.init: CsvFile: 1

What's wrong? Thx!!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org

Reply via email to