jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1763986 - /jmeter/trunk/test/src/org/apache/jmeter/save/TestCSVSaveService.java
Date Sun, 09 Oct 2016 15:07:20 GMT
Author: pmouawad
Date: Sun Oct  9 15:07:20 2016
New Revision: 1763986

URL: http://svn.apache.org/viewvc?rev=1763986&view=rev
Log:
Bug 60229 - Add a new metric : sent_bytes
Update TestCSVSaveService with new field
Bugzilla Id: 60229

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

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=1763986&r1=1763985&r2=1763986&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/save/TestCSVSaveService.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/save/TestCSVSaveService.java Sun Oct  9 15:07:20
2016
@@ -155,7 +155,7 @@ public class TestCSVSaveService extends
     // header text should not change unexpectedly
     // if this test fails, check whether the default was intentionally changed or not
     public void testHeader() {
-        final String HDR = "timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType,success,failureMessage,bytes,grpThreads,allThreads,Latency,IdleTime,Connect";
+        final String HDR = "timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType,success,failureMessage,bytes,sentBytes,grpThreads,allThreads,Latency,IdleTime,Connect";
         assertEquals("Header text has changed", HDR, CSVSaveService.printableFieldNamesToString());
     }
 
@@ -163,7 +163,7 @@ public class TestCSVSaveService extends
     // sample format should not change unexpectedly
     // if this test fails, check whether the default was intentionally changed or not
     public void testSample() {
-        final String RESULT = "1,2,3,4,5,6,7,true,,8,9,10,11,12,13";
+        final String RESULT = "1,2,3,4,5,6,7,true,,8,9,10,11,12,13,14";
         SampleResult result = new SampleResult();
         result.setSaveConfig(new SampleSaveConfiguration());
         result.setStampAndTime(1, 2);
@@ -174,11 +174,13 @@ public class TestCSVSaveService extends
         result.setDataType("7");
         result.setSuccessful(true);
         result.setBytes(8);
-        result.setGroupThreads(9);
-        result.setAllThreads(10);
-        result.setLatency(11);
-        result.setIdleTime(12);
-        result.setConnectTime(13);
+        result.setSentBytes(9);
+        result.setGroupThreads(10);
+        result.setAllThreads(11);
+        result.setLatency(12);
+        result.setIdleTime(13);
+        result.setConnectTime(14);
+        
         assertEquals("Result text has changed", RESULT, CSVSaveService.resultToDelimitedString(new
SampleEvent(result,"")));
     }
 }



Mime
View raw message