jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1297810 - in /jmeter/trunk: src/core/org/apache/jmeter/visualizers/RunningSample.java xdocs/changes.xml
Date Wed, 07 Mar 2012 00:35:48 GMT
Author: sebb
Date: Wed Mar  7 00:35:48 2012
New Revision: 1297810

URL: http://svn.apache.org/viewvc?rev=1297810&view=rev
Log:
Bug 43450 - Listeners/Savers assume SampleResult count is always 1
fixed Generate Summary Results

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java?rev=1297810&r1=1297809&r2=1297810&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java Wed Mar  7 00:35:48
2012
@@ -204,8 +204,9 @@ public class RunningSample {
     public void addSample(SampleResult res) {
         long aTimeInMillis = res.getTime();
         boolean aSuccessFlag = res.isSuccessful();
+        
+        counter+=res.getSampleCount();
 
-        counter++;
         long startTime = res.getStartTime();
         long endTime = res.getEndTime();
 
@@ -229,7 +230,7 @@ public class RunningSample {
         }
 
         if (!aSuccessFlag) {
-            errorCount++;
+            errorCount += res.getErrorCount();
         }
     }
 

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1297810&r1=1297809&r2=1297810&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml (original)
+++ jmeter/trunk/xdocs/changes.xml Wed Mar  7 00:35:48 2012
@@ -86,6 +86,7 @@ When doing replacement of User Defined V
 
 <h3>Listeners</h3>
 <ul>
+<li>Bug 43450 - Listeners/Savers assume SampleResult count is always 1; fixed Generate
Summary Results</li>
 </ul>
 
 <h3>Assertions</h3>



Mime
View raw message