jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mchassagn...@apache.org
Subject svn commit: r1798183 - /jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/ErrorMetric.java
Date Fri, 09 Jun 2017 09:57:07 GMT
Author: mchassagneux
Date: Fri Jun  9 09:57:07 2017
New Revision: 1798183

URL: http://svn.apache.org/viewvc?rev=1798183&view=rev
Log:
Ignore Case for error metric


Bugzilla Id: 61167

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/ErrorMetric.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/ErrorMetric.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/ErrorMetric.java?rev=1798183&r1=1798182&r2=1798183&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/ErrorMetric.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/ErrorMetric.java Fri
Jun  9 09:57:07 2017
@@ -51,7 +51,7 @@ public class ErrorMetric {
         if (responseCode.isEmpty()) {
             return "0";
         } else {
-            return responseCode;
+            return responseCode.trim();
         }
     }
 
@@ -62,7 +62,7 @@ public class ErrorMetric {
         if (responseMessage.isEmpty()) {
             return "None";
         } else {
-            return responseMessage;
+            return responseMessage.trim();
         }
     }
 
@@ -83,7 +83,7 @@ public class ErrorMetric {
 
     @Override
     public int hashCode() {
-        return getResponseCode().hashCode() + getResponseMessage().hashCode();
+        return getResponseCode().toLowerCase().hashCode() + getResponseMessage().toLowerCase().hashCode();
     }
 
 }



Mime
View raw message