Is there a way of accessing the current script’s absolute physical path via a variable/property? There doesn’t appear to be anything listed via a Debug Sampler.
It’s incredibly annoying that actions like loading CSV files and JMX Includes uses the current working directory as its relative path.
Include Controller
As per component’s reference:
1) In case of console launch use:
-Jincludecontroller.prefix=/full/path/to/jmx/scripts/dir/
2) in case of GUI – add the same to .sh/.cmd/.bat file or write a wrapper file;
3) in case of Jmeter Ant Task usage – set as separate property:
CSV Data Set Config
As per component’s reference:
You can declare a test plan variable that retrieves parameter value with the folder containing csv data files:
e.g.
Setting from console:
Setting for distributed testing setup: