Bug 66139 - Open Model Thread Group using CSV Data Set Config
Summary: Open Model Thread Group using CSV Data Set Config
Status: NEW
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 5.5
Hardware: PC All
: P2 major (vote)
Target Milestone: JMETER_5.5
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-22 14:26 UTC by Michael Hoult
Modified: 2022-09-21 14:46 UTC (History)
0 users



Attachments
Test jmx file (17.97 KB, application/xml)
2022-06-22 14:26 UTC, Michael Hoult
Details
test user list csv (1.86 KB, text/csv)
2022-06-22 14:26 UTC, Michael Hoult
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Hoult 2022-06-22 14:26:12 UTC
Created attachment 38323 [details]
Test jmx file

In v5.4.3, using a standard thread group I've been successfully using CSV Data Set Config with a CSV of 100 users for login/password in my HTTP requests.
I'm now trying v5.5 and the Open Model Thread Group, but the users are not all being read from the CSV, it seems to skip users out of the list of 100. The skipping seems random, such as users 1-4 are read then 5 is skipped, then 6-15 are read, but 16-18 are skipped, and so on.
I've also tried the CSV Data Set Config with recycle on end of file, and can see that if when it does recycle it again skips some users (not the same ones).  So by the end of a test, some users have been used 3 times, some 1, some 5, etc.
Works fine in v5.5 using a standard thread group, but when I try the Open Model the behaviour is as above.

I have simplified my test right down to a single request, and removed any confidential data.  In the attached jmx there is a "Thread Group" and a "Open Model Thread Group".  Easiest to see the issue by disabling one of these and running the test, monitoring the Summary Report.  There you can see the label and the username that is used.  "Thread Group" goes through the csv in sequence, but "Open Model Thread Group" goes through in sequence skipping random users.  I have also attached a test csv file for the usernames.
Comment 1 Michael Hoult 2022-06-22 14:26:41 UTC
Created attachment 38324 [details]
test user list csv
Comment 2 Vladimir Sitnikov 2022-06-23 06:55:31 UTC
Thanks for reporting. Open Model Thread Group indeed initializes config elements twice. The workaround is to wrap the contents of the group in a Simple Controller.

In other words, Open Model Thread Group { SimpleController { CSV Data Set; HTTP request } }.
Comment 3 Michael Hoult 2022-06-23 08:04:58 UTC
Thank you.  
The workaround is very simple to do and seems to work perfectly.
Comment 4 Vladimir Sitnikov 2022-06-23 13:53:29 UTC
I've filed a PR with the fix: https://github.com/apache/jmeter/pull/717
Comment 5 Michael Hoult 2022-06-23 14:08:41 UTC
(In reply to Vladimir Sitnikov from comment #4)
> I've filed a PR with the fix: https://github.com/apache/jmeter/pull/717

Thank you :-)
Comment 6 The ASF infrastructure team 2022-09-24 20:38:23 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5682