Bug 57825

Summary: __Random function fails if min value is equal to max value (regression related to 54453)
Product: JMeter Reporter: Philippe Mouawad <p.mouawad>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: regression CC: p.mouawad
Priority: P2    
Version: 2.13   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Philippe Mouawad 2015-04-16 19:15:25 UTC
Since 2.13, ${__Random(1,1,value)} fails with:
java.lang.IllegalArgumentException
	at org.apache.jmeter.util.ThreadLocalRandom.nextLong(ThreadLocalRandom.java:168)
	at org.apache.jmeter.functions.Random.execute(Random.java:65)
	at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:142)
	at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:118)
	at org.apache.jmeter.testelement.property.FunctionProperty.getStringValue(FunctionProperty.java:101)
	at org.apache.jmeter.testelement.AbstractTestElement.getPropertyAsString(AbstractTestElement.java:274)
	at org.apache.jmeter.testelement.AbstractTestElement.getName(AbstractTestElement.java:167)
	at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:492)
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:261)
	at java.lang.Thread.run(Thread.java:745)
Comment 1 Philippe Mouawad 2015-04-16 19:28:29 UTC
Date: Thu Apr 16 19:27:18 2015
New Revision: 1674139

URL: http://svn.apache.org/r1674139
Log:
Bug 57825 - __Random function fails if min value is equal to max value (regression related to 54453)
Bugzilla Id: 57825

Modified:
    jmeter/trunk/src/functions/org/apache/jmeter/functions/Random.java
    jmeter/trunk/xdocs/changes.xml
Comment 2 Philippe Mouawad 2015-04-16 19:29:31 UTC
Date: Thu Apr 16 19:29:08 2015
New Revision: 1674140

URL: http://svn.apache.org/r1674140
Log:
Bug 57825 - __Random function fails if min value is equal to max value (regression related to 54453)
Add Unit Test
Bugzilla Id: 57825

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/functions/PackageTest.java