Bug 66107

Summary: Throughput Controller doesn't work if loop count is infinite
Product: JMeter - Now in Github Reporter: Sergey Danilov <ushanka.x>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 5.4.3   
Target Milestone: JMETER_5.5   
Hardware: All   
OS: other   
Attachments: test plan to reproduce the behavior

Description Sergey Danilov 2022-06-07 07:40:39 UTC
Created attachment 38311 [details]
test plan to reproduce the behavior

Hello Ladies and Gentlemen! 

Throughput Controller doesn't work if loop count is set to `infinite`. I added an attachment, where you can reproduce it. It looks like an unexpected behavior.

In test plan from attachment I waited 50 requests, because of first Thread Group is 5 (threads) * 10 (seconds duration) * 0.8 (80% percents with Throughput Controller) = 40 requests, and second Thread Group is 5 (threads) * 10 (seconds duration) * 0.2 (20% percents with Throughput Controller) = 10 requests. But I get 100 requests (50 with first Thread Group and 50 with second Thread Group). Throughput Controller in this case doesn't work.

But if I set `loop_count` parameter in both Thread Groups to 10 (loop count == duration) – it works. Then I get 40 requests from first Thread Group and 10 requests from second Thread Group. 

Tell me please, is that a wrong logic or maybe I don't understand the conception of Throughput Controller work? Thanks!
Comment 1 The ASF infrastructure team 2022-09-24 20:38:23 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5675