I have a CSV file(containing 2 requests) and I would like to execute JMeter in the below fashion:
THREAD 1:
LoopCount 1
Request 1
Request 2
LoopCount 2
Request 1
Request 2
LoopCount 3
Request 1
Request 2
My current JMX file looks like below
THREAD GROUP(Threads=1, LoopCount=3):
Loop Controller(LoopCount=forever)
HTTP Request
CSV Data Config(Recycle on EOF=False, Stop Thread on EOF=True)
But it executes only one time(1 loop). And if I modify Recycle on EOF = True, it executes forever.
Stop Thread on EOF=True
which instructs JMeter to stop the thread (virtual user) when the end of file is reachedRecycle on EOF=False
which means that when the last line of the CSV file is reached you will get <EOF>
value stored in the respective variable for each and every next requestSo
In the above demo image:
${__jm__Thread Group__idx}
is the pre-defined variable which returns the current loop of the Thread GroupMore information: Using CSV DATA SET CONFIG