Search code examples
jmeterperformance-testing

Unique once data is not working as expected along with Open Model Thread Group Jmeter


We use Jmeter(5.5) test to run the Performance test. Currently, our scripts use Thread Group but planning to move to the Open Model Thread group for better control over throughput.

We have scenario where data can't be reused so "CSV Data Set Config" is configured like below- enter image description here

Issue I am facing is that ID data getting reused if it is part of "Open Model Thread group" which was not the case with "Thread Group". Is this know issue? or am I doing anything wrong here? Thanks for your help in advance!


Solution

  • You have:

    • Recycle on EOF - True
    • Stop thread on EOF - False
    • Sharing mode - All threads

    It means that each thread (virtual user) picks the next line from the CSV file on each iteration, when the last line is processed it starts over. No matter which Thread Group implementation you're using.

    In case you want to avoid duplicate values you need to set Recycle on EOF to False and Stop thread on EOF to True, in this case when the end of CSV file will be reached your test will stop.

    More information: