I'm trying to get the directory of the test (.jmx file). I'm using this when running in GUI mode.
${__BeanShell(import org.apache.jmeter.gui.GuiPackage;GuiPackage.getInstance().getTestPlanFile();)}
This doesn't work when ran Jmeter is ran in non GUI mode. Is there any alternative to this?