mirror of https://github.com/apache/jmeter.git
40804 - Change Counter default to max = Long.MAX_VALUE
git-svn-id: https://svn.apache.org/repos/asf/jakarta/jmeter/branches/rel-2-2@479794 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1f94b8f0b1
commit
b396c41cd5
|
|
@ -130,8 +130,16 @@ public class CounterConfig extends AbstractTestElement implements Serializable,
|
|||
setProperty(END, end);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return counter upper limit (default Long.MAX_VALUE)
|
||||
*/
|
||||
public long getEnd() {
|
||||
return getPropertyAsLong(END);
|
||||
long propertyAsLong = getPropertyAsLong(END);
|
||||
if (propertyAsLong == 0 && "".equals(getProperty(END).getStringValue())) {
|
||||
propertyAsLong = Long.MAX_VALUE;
|
||||
}
|
||||
return propertyAsLong;
|
||||
}
|
||||
|
||||
public void setIncrement(long inc) {
|
||||
|
|
|
|||
|
|
@ -2793,7 +2793,9 @@ with the start, continuing on like that until the test is ended. </p>
|
|||
number during the first iteration.</property>
|
||||
<property name="Increment" required="Yes">How much to increment the counter by after each
|
||||
iteration.</property>
|
||||
<property name="Maximum" required="Yes">If the counter exceeds the maximum, then it is reset to the Start value.</property>
|
||||
<property name="Maximum" required="No">If the counter exceeds the maximum, then it is reset to the Start value.
|
||||
Since version 2.2.1, the default is Long.MAX_VALUE (previously it was 0).
|
||||
</property>
|
||||
<property name="Format" required="No">Optional format, e.g. 000 will format as 001, 002 etc.
|
||||
This is passed to DecimalFormat, so any valid formats can be used.
|
||||
If there is a problem interpreting the format, then it is ignored.
|
||||
|
|
|
|||
Loading…
Reference in New Issue