jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1674140 - /jmeter/trunk/test/src/org/apache/jmeter/functions/PackageTest.java
Date Thu, 16 Apr 2015 19:29:08 GMT
Author: pmouawad
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

Modified: jmeter/trunk/test/src/org/apache/jmeter/functions/PackageTest.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/functions/PackageTest.java?rev=1674140&r1=1674139&r2=1674140&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/functions/PackageTest.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/functions/PackageTest.java Thu Apr 16 19:29:08
2015
@@ -837,8 +837,19 @@ public class PackageTest extends JMeterT
         Random r = new Random();
         Collection<CompoundVariable> parms = makeParams("0","10000000000","VAR");
         r.setParameters(parms);
-        //String s = 
+        String s = 
             r.execute(null,null);
+        long l = Long.parseLong(s);
+        assertTrue(l>=0 && l<=10000000000L);
+        
+        
+        parms = makeParams("1","1","VAR");
+        r.setParameters(parms);
+        s = 
+            r.execute(null,null);
+        l = Long.parseLong(s);
+        assertTrue(l==1);
+
     }
 
     public void variableTest1() throws Exception {



Mime
View raw message