You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2016/05/10 19:24:05 UTC

svn commit: r1743253 - /jmeter/trunk/src/core/org/apache/jmeter/report/processor/ErrorsSummaryConsumer.java

Author: pmouawad
Date: Tue May 10 19:24:05 2016
New Revision: 1743253

URL: http://svn.apache.org/viewvc?rev=1743253&view=rev
Log:
Bug 59455 - Report : Errors Summary uses wrong default value for "jmeter.save.saveservice.assertion_results_failure_message"
Bugzilla Id: 59455

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/report/processor/ErrorsSummaryConsumer.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/ErrorsSummaryConsumer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/ErrorsSummaryConsumer.java?rev=1743253&r1=1743252&r2=1743253&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/ErrorsSummaryConsumer.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/ErrorsSummaryConsumer.java Tue May 10 19:24:05 2016
@@ -33,6 +33,12 @@ import org.apache.jmeter.util.JMeterUtil
  */
 public class ErrorsSummaryConsumer extends AbstractSummaryConsumer<Long> {
 
+    private static final boolean ASSERTION_RESULTS_FAILURE_MESSAGE = 
+            JMeterUtils
+                .getPropDefault(
+                        SampleSaveConfiguration.ASSERTION_RESULTS_FAILURE_MESSAGE_PROP,
+                        true);
+            
     private static final Long ZERO = Long.valueOf(0);
     private static final String ASSERTION_FAILED = "Assertion failed"; //$NON-NLS-1$
     private long errorCount = 0L;
@@ -75,10 +81,7 @@ public class ErrorsSummaryConsumer exten
         String code = sample.getResponseCode();
         if (isSuccessCode(code)) {
             code = ASSERTION_FAILED;
-            if (JMeterUtils
-                    .getPropDefault(
-                            SampleSaveConfiguration.ASSERTION_RESULTS_FAILURE_MESSAGE_PROP,
-                            false)) {
+            if (ASSERTION_RESULTS_FAILURE_MESSAGE) {
                 String msg = sample.getFailureMessage();
                 if (!StringUtils.isEmpty(msg)) {
                     code = StringEscapeUtils.escapeJson(msg);