0

Is there a way to change the default path for OPEN button? The first time I open Jmeter and clicks on 'Open file..' button, the default path is "c:\Users\ <user_name>"

I want to change it to my "< jmeter scripts folder >" and not by changing user.dir parameter.

Dotan

Dotan
  • 9
  • 3

1 Answers1

0

As of JMeter 5.5 the "default" directory is being read from user.dir property

setCurrentDirOnJFC(existingFileName, lastJFCDirectory, System.getProperty("user.dir"));

So if you want to amend this value you need to set the user.dir property either by passing it to JMeter via -D command-line argument:

jmeter.bat -Duser.dir=c:/somefolder

or in order to make the change permanent you can add the relevant line to system.properties file (lives in "bin" folder of your JMeter installation)

user.dir=c:/somefolder

More information:

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • Thanks it works! ---- I try to avoid using 'user.dir' because I'm not sure if it's going to effect other parameters. In jmeter.properties file there's #proxy.binary.directory=user.dir. I'm not sure if it's critical. – Dotan Jun 28 '22 at 10:30