jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1297821 - in /jmeter/trunk: src/core/org/apache/jmeter/samplers/SampleResult.java xdocs/changes.xml
Date Wed, 07 Mar 2012 01:12:35 GMT
Author: sebb
Date: Wed Mar  7 01:12:35 2012
New Revision: 1297821

URL: http://svn.apache.org/viewvc?rev=1297821&view=rev
Log:
Bug 52843 - Sample headerSize and bodySize not being accumulated for subsamples

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java?rev=1297821&r1=1297820&r2=1297821&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java Wed Mar  7 01:12:35
2012
@@ -277,6 +277,8 @@ public class SampleResult implements Ser
         allThreads = res.allThreads;//OK
         assertionResults = res.assertionResults;// TODO ??
         bytes = res.bytes;
+        headersSize = res.headersSize;
+        bodySize = res.bodySize;
         contentType = res.contentType;//OK
         dataEncoding = res.dataEncoding;//OK
         dataType = res.dataType;//OK
@@ -559,6 +561,8 @@ public class SampleResult implements Ser
         setEndTime(Math.max(getEndTime(), subResult.getEndTime() + nanoTimeOffset - subResult.nanoTimeOffset));
// Bug 51855
         // Include the byte count for the added sample
         setBytes(getBytes() + subResult.getBytes());
+        setHeadersSize(getHeadersSize() + subResult.getHeadersSize());
+        setBodySize(getBodySize() + subResult.getBodySize());
         addRawSubResult(subResult);
     }
     

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1297821&r1=1297820&r2=1297821&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml (original)
+++ jmeter/trunk/xdocs/changes.xml Wed Mar  7 01:12:35 2012
@@ -116,6 +116,7 @@ When doing replacement of User Defined V
 <li>Bug 52789 - Proxy with Regexp Matching can fail with NullPointerException in Value
Replacement if value is null</li>
 <li>Bug 52645 - Recording with Proxy leads to OutOfMemory</li>
 <li>Bug 52679 - User Parameters columns narrow</li>
+<li>Bug 52843 - Sample headerSize and bodySize not being accumulated for subsamples</li>
 </ul>
 
 <!-- =================== Improvements =================== -->



Mime
View raw message