I am trying to do some test with jMeter.
I have CSV file with the urls and want to iterate over all of them and make HTTP Request. I have achieved that by typing exact number of urls in the ThreadGroup in Loop Count field.
Is there any possibility to set jMeter in that way it will loop over the urls without the need to type count of the urls in ThreadGroup? Any controller can do this?
you need to set true for Stop thread on EOF in the CSV data Set config, which would stop the loop. JMeter supports CSV files which have a header line defining the column names. To enable this, leave the "Variable Names" field empty. This will automatically fill the corresponding variables with values of the columns.
The loop count can be infinite and one can run concurrent threads for a specific amount of time by checking on Specify Thread Lifetime and adding Duration say 60 seconds. Now that we have specified Thread Group, we can specify what that thread is actually going to execute, say an HTTP request to a server in our case.
You can define the urls in the csv data format and have Jmeter loop through it.
The csv file can be defined and loaded with the CSV data config.
The variable names stand for each of the columns in the csv file, and can be referred in the loop controllers.
Example:
${url}
CSV Data Set Config
, with the file path and the variable name url which stands for the column listing the urls. ${url}
with the http request handler to fire the request.CSV Data Set Config
set Recycle on EOF? = False
and Stop thread on EOF? = True
.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