Say you load and run JMeter test script. Does JMeter have a variable that
references the test script's filepath?
Asking because it would be useful to use within the test script itself w/o
having to specify absolute file paths or having to pass in root file path
at runtime via JMeter command line parameter. Particularly useful if JMeter
app folder is different from where test scripts are stored.
Something like
someRootDirectory
> jmeter test script
> data directory
>> dataFileWithinDataDir
and in test script you reference something like ${scriptPath} (might
include script filename & you just script out the filename, or preferably
it doesn't include that) then can use relative paths from there to get what
you want.
Or is it possible but I'd have to use a Beanshell/BSF preprocessor for
that? If so, what's the code approach to get the test plan's script path?
Thanks,
David