Reputation: 1188
I want to run my jmeter scripts in the following manner:
Thread Count Rampup loop count
100 10 20
150 1 10
200 1 10
I gave this data in CSV Data Set Config, tried to read it, but it is not read from CSV file for Thread Group level.
I don't want to copy the thread group and configure the above configuration.
Is there any way we can parameterize and use it
Thanks
Upvotes: 0
Views: 77
Reputation: 2872
I don't think you can, the number of threads and stuff are being initialized before any CSV files are being read.
You can use __P() function to define number of users, iterations and ramp-up time
so you can run your test using a batch file or sequence of commands like:
jmeter -Jusers=100 -Jrampup=10 -Jloops=10 -n -t test.jmx -l result.jtl \
&& jmeter -Jusers=150 -Jrampup=1 -Jloops=10 -n -t test.jmx -l result.jtl \
etc.
Alternatively go for the Open Model Thread Group or any suitable alternative from Custom Thread Groups bundle
Upvotes: 1