Reputation: 465
I have two thread groups.
Thread group1:
http request
csv data set configure -> stops when reached end of file
Thread group2:
while loop
http request
csv data set configure -> reiterate when reached end of file
Both the thread groups run in concurrent manner, I want to stop the thread group2 when the thread group1 finished execution
Upvotes: 1
Views: 245
Reputation: 167992
Amend your configuration as follows:
Thread Group
Loop Controller with the following __groovy() function in the "Loop Count" section:
${__groovy(new File('test.csv').readLines().size(),)}
Flow Control Action sampler configured as follows:
This way HTTP Request will be executed as many times as the number of lines in the test.csv
file, then test will proceed to Flow Control Action sampler which will stop the test
Upvotes: 1