jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1765492 - in /jmeter/trunk/test/src/org/apache/jmeter: samplers/TestSampleResult.java save/TestCSVSaveService.java
Date Tue, 18 Oct 2016 18:40:52 GMT
Author: pmouawad
Date: Tue Oct 18 18:40:52 2016
New Revision: 1765492

URL: http://svn.apache.org/viewvc?rev=1765492&view=rev
Log:
Bug 60252 - Add sent kbytes/s to Aggregate Report and Summary report
Remove use of deprecated setBytes(int)
Bugzilla Id: 60252

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/samplers/TestSampleResult.java
    jmeter/trunk/test/src/org/apache/jmeter/save/TestCSVSaveService.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/samplers/TestSampleResult.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/samplers/TestSampleResult.java?rev=1765492&r1=1765491&r2=1765492&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/samplers/TestSampleResult.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/samplers/TestSampleResult.java Tue Oct 18 18:40:52
2016
@@ -143,7 +143,7 @@ public class TestSampleResult {
             SampleResult res = new SampleResult();
             
             res.sampleStart();
-            res.setBytes(100);
+            res.setBytes(100L);
             res.setSampleLabel("sample of size 100 bytes");
             res.sampleEnd();
             assertEquals(100, res.getBytesAsLong());
@@ -217,7 +217,7 @@ public class TestSampleResult {
 
             parent.sampleStart();
             Thread.sleep(100);
-            parent.setBytes(300);
+            parent.setBytes(300L);
             parent.setSampleLabel("Parent Sample");
             parent.setSuccessful(true);
             parent.sampleEnd();
@@ -227,7 +227,7 @@ public class TestSampleResult {
             SampleResult child1 = new SampleResult(nanoTime);            
             child1.sampleStart();
             Thread.sleep(100);
-            child1.setBytes(100);
+            child1.setBytes(100L);
             child1.setSampleLabel("Child1 Sample");
             child1.setSuccessful(true);
             child1.sampleEnd();
@@ -250,7 +250,7 @@ public class TestSampleResult {
             SampleResult child2 = new SampleResult(nanoTime);            
             child2.sampleStart();
             Thread.sleep(100);
-            child2.setBytes(200);
+            child2.setBytes(200L);
             child2.setSampleLabel("Child2 Sample");
             child2.setSuccessful(true);
             child2.sampleEnd();

Modified: jmeter/trunk/test/src/org/apache/jmeter/save/TestCSVSaveService.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/save/TestCSVSaveService.java?rev=1765492&r1=1765491&r2=1765492&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/save/TestCSVSaveService.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/save/TestCSVSaveService.java Tue Oct 18 18:40:52
2016
@@ -173,7 +173,7 @@ public class TestCSVSaveService extends
         result.setThreadName("6");
         result.setDataType("7");
         result.setSuccessful(true);
-        result.setBytes(8);
+        result.setBytes(8L);
         result.setSentBytes(9);
         result.setGroupThreads(10);
         result.setAllThreads(11);



Mime
View raw message