Is there a way to specify # of threads on the command line when running Jmeter load tests from the command line/non-GUI mode? I looked at the Jmeter manual and there didn't appear to be an option to specify on the command line. There was mention of a property file but again, I don't know how to specify that in the property file to be used by Jmeter.
What I need to do is in non-GUI mode, specify the number of threads I want to run for that test on the command line.
The two hokey work arounds I am thinking of doing are:
Thanks in advance for your help.
${__P(threads,)}
The aforementioned threads
property can be overridden from the command line using -J argument like:
jmeter -Jthreads=1000 -n -t test.jmx -l result.jtl
Storing property in file is also possible, just add the next line to user.properties file (located in "bin" folder of your JMeter installation)
threads=1000
and next time you start JMeter it will pick the property up and apply it.
More information:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With