雷咩咩 wrote:
Hi jmeter super uses,
Is it possible, to create a jmeter plan, to configure a list of thread numbers
somewhere(csv or script), such as 1, 2, 4, 10.
then let jmeter automatically run a thread group using each of these number as
'number of threads' automatically?
my initial though is to create a for each controller then add a thread group as sub
item.
unfortunately thread group seems to be the top level element, and controllers
cannot be parent of thread group.
Regards,
Yang
If you want to have a single Thread Group and would like to parameterize
it from a CSV file and sequentially run it with different number of
threads - it's not possible as of JMeter 5.5
<https://lists.apache.org/thread/k575c2oqnr0pv52fckcg399o4nkqt8c6>
You will either need to define the number of threads via __P() function
like ${__P(threads,)} and then run the .jmx test plan several times like:
jmeter -Jthreads=1 -n -t test.jmx -l 1user.jtl
jmeter -Jthreads=2 -n -t test.jmx -l 2users.jtl
etc.
Alternatively you can consider switching to Ultimate Thread Group
<https://jmeter-plugins.org/wiki/UltimateThreadGroup/> which has
threadsschedule special property so you can define 4 steps with desired
number of threads, ramp-up period, duration, etc. Ultimate Thread Group
can be installed as a part of Custom Thread Groups bundle using JMeter
Plugins Manager <https://www.blazemeter.com/blog/jmeter-plugins-manager>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org