Bug 52317

Summary: Counter : Add option to reset counter on each Thread Group iteration
Product: JMeter - Now in Github Reporter: Thierry Mathias <thierry.mathias>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: enhancement CC: p.mouawad, thierry.mathias
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Script Test

Description Thierry Mathias 2011-12-10 14:28:55 UTC
Make it possible for the user to reset the counter for the next iteration of the thread.

It could be helpfull for some user with this kind of script :

++Thread
 +HTTP Request 1
   - Regexp (VARIABLE)
 +ForEach Controller
   -Counter (CPT)
   -HTTP Request 2 (which use ${__V(VARIABLE_${count}_g1)} (and other wiht g2, ...)
...

And that it avoids having to develop its own counter

Thanks for this enhancement,
Thierry
Comment 1 Thierry Mathias 2011-12-10 19:51:10 UTC
Created attachment 28063 [details]
Script Test

You can find a test script :
Thread Test A : what I want (counter which initialize at each thread iteration)
Thread Test B : the actual counter functioning (continue to increment on next tread iteration).

Thanks,
Thierry
Comment 2 Philippe Mouawad 2011-12-11 20:29:05 UTC
Date: Sun Dec 11 20:28:07 2011
New Revision: 1213053

URL: http://svn.apache.org/viewvc?rev=1213053&view=rev
Log:
Bug 52317 - Counter : Add option to reset counter on each Thread Group iteration

Modified:
   jmeter/trunk/src/components/org/apache/jmeter/modifiers/CounterConfig.java
   jmeter/trunk/src/components/org/apache/jmeter/modifiers/gui/CounterConfigGui.java
   jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
   jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
   jmeter/trunk/xdocs/changes.xml
   jmeter/trunk/xdocs/usermanual/component_reference.xml
Comment 3 The ASF infrastructure team 2022-09-24 20:37:48 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2677