jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1768593 - /jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/test/JavaTest.java
Date Mon, 07 Nov 2016 21:56:04 GMT
Author: pmouawad
Date: Mon Nov  7 21:56:03 2016
New Revision: 1768593

URL: http://svn.apache.org/viewvc?rev=1768593&view=rev
Log:
Bug 60229 - Add a new metric : sent_bytes 
Add to JavaTest of Java Request
Bugzilla Id: 60229

Modified:
    jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/test/JavaTest.java

Modified: jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/test/JavaTest.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/test/JavaTest.java?rev=1768593&r1=1768592&r2=1768593&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/test/JavaTest.java (original)
+++ jmeter/trunk/src/protocol/java/org/apache/jmeter/protocol/java/test/JavaTest.java Mon
Nov  7 21:56:03 2016
@@ -280,7 +280,9 @@ public class JavaTest extends AbstractJa
         if (samplerData != null && samplerData.length() > 0) {
             results.setSamplerData(samplerData);
         }
-
+        if(samplerData != null) {
+            results.setSentBytes(samplerData.length());
+        }
         if (resultData != null && resultData.length() > 0) {
             results.setResponseData(resultData, null);
         }



Mime
View raw message