jMeter set num of threads and duration in CLI

Task: run test with different threads count and duration time

Implementation:

Set parameter value to "${__P(propName, defaultValue)}" in the test plan. Set real values in CLI to "... jmeter -JpropName=2 ...".

Example:

... jmeter -Jthreads=2 -Jduration=30 ...

Done.

Leave a Reply

Your email address will not be published. Required fields are marked *




Enter Captcha Here :