jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1835021 - /jmeter/trunk/test/src/org/apache/jmeter/report/processor/graph/impl/CustomGraphConsumerTest.java
Date Tue, 03 Jul 2018 20:15:06 GMT
Author: pmouawad
Date: Tue Jul  3 20:15:06 2018
New Revision: 1835021

URL: http://svn.apache.org/viewvc?rev=1835021&view=rev
Log:
Bug 62166 - Report/Dashboard: Provide ability to register custom graphs and metrics in the
JMeter Dashboard

Fix issue in test
Bugzilla Id: 62166

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/report/processor/graph/impl/CustomGraphConsumerTest.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/report/processor/graph/impl/CustomGraphConsumerTest.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/report/processor/graph/impl/CustomGraphConsumerTest.java?rev=1835021&r1=1835020&r2=1835021&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/report/processor/graph/impl/CustomGraphConsumerTest.java
(original)
+++ jmeter/trunk/test/src/org/apache/jmeter/report/processor/graph/impl/CustomGraphConsumerTest.java
Tue Jul  3 20:15:06 2018
@@ -57,7 +57,7 @@ public class CustomGraphConsumerTest {
         customGraphConsumer.setXAxis("X axis name");
         customGraphConsumer.setYAxis("Y axis name");
         customGraphConsumer.setContentMessage("content message");
-        customGraphConsumer.setSampleVariableName("responseMessage");
+        customGraphConsumer.setSampleVariableName("ulp_lag_ratio");
         
         map = customGraphConsumer.createGroupInfos();
         
@@ -70,11 +70,11 @@ public class CustomGraphConsumerTest {
         assertThat(customGraphConsumer.getXAxis(), equalTo("X axis name"));
         assertThat(customGraphConsumer.getYAxis(), equalTo("Y axis name"));
         assertThat(customGraphConsumer.getContentMessage(), equalTo("content message"));
-        assertThat(customGraphConsumer.getSampleVariableName(), equalTo(CSVSaveService.RESPONSE_MESSAGE));
+        assertThat(customGraphConsumer.getSampleVariableName(), equalTo("ulp_lag_ratio"));
         assertThat(customGraphConsumer.getIsNativeSampleVariableName(), equalTo(false));
         
         // bytes is one of the native sample variables names
-        customGraphConsumer.setSampleVariableName("bytes");
+        customGraphConsumer.setSampleVariableName(CSVSaveService.CSV_BYTES);
         assertThat(customGraphConsumer.getIsNativeSampleVariableName(), equalTo(true));
     }
     
@@ -95,7 +95,7 @@ public class CustomGraphConsumerTest {
             }else if(key.equals("Y_Axis")) {
                 assertThat(testedValue, equalTo("\"Y axis name\""));
             }else if(key.equals("sample_Metric_Name")) {
-                assertThat(testedValue, equalTo("\"responseMessage\""));
+                assertThat(testedValue, equalTo("\"ulp_lag_ratio\""));
             }else if(key.equals("content_Message")) {
                 assertThat(testedValue, equalTo("\"content message\""));
             }
@@ -155,7 +155,7 @@ public class CustomGraphConsumerTest {
     public void testSelectMetric() {
         Sample sample = new Sample(0, sampleMetaData, data);
         String testString = map.get("Generic group").getSeriesSelector().select(sample).toString();
-        assertThat(testString, equalTo("[responseMessage]"));
+        assertThat(testString, equalTo("[ulp_lag_ratio]"));
     }
     
     // Create a static SampleMetadatObject



Mime
View raw message