jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1743253 - /jmeter/trunk/src/core/org/apache/jmeter/report/processor/ErrorsSummaryConsumer.java
Date Tue, 10 May 2016 19:24:05 GMT
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);



Mime
View raw message