For example function __machineName can be called from groovy:
def machineName = new org.apache.jmeter.functions.MachineName().compute()
Can anyone advise how can I call function __stringToFile in a similar way?
This function has 4 parameters: 1 - file name 2 - content 3 - append (true/false)(optional) 4 - file encoding (optional)
I would like to pass a Groovy variable (or JMeter variable) as a "content" parametr.
I need to write to a one csv file from severals threads after end of the thread loop and __StringToFile is probably the only one safe way? (prevents "race condition" during writing).