You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2015/04/16 21:15:25 UTC

[Bug 57825] New: __Random function fails if min value is equal to max value (regression related to 54453)

https://bz.apache.org/bugzilla/show_bug.cgi?id=57825

            Bug ID: 57825
           Summary: __Random function fails if min value is equal to max
                    value (regression related to 54453)
           Product: JMeter
           Version: 2.13
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: p.mouawad@ubik-ingenierie.com

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)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 57825] __Random function fails if min value is equal to max value (regression related to 54453)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57825

--- Comment #2 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
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

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 57825] __Random function fails if min value is equal to max value (regression related to 54453)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57825

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
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

-- 
You are receiving this mail because:
You are the assignee for the bug.