Bug 52317 - Counter : Add option to reset counter on each Thread Group iteration
Summary: Counter : Add option to reset counter on each Thread Group iteration
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-10 14:28 UTC by Thierry Mathias
Modified: 2011-12-11 20:29 UTC (History)
2 users (show)



Attachments
Script Test (10.49 KB, application/octet-stream)
2011-12-10 19:51 UTC, Thierry Mathias
Details

Note You need to log in before you can comment on or make changes to this bug.
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