From 2243adeea9c4825ca95e3dd38e45c36b59a5b6f9 Mon Sep 17 00:00:00 2001 From: Cristina Axinte Date: Tue, 13 Jun 2017 10:32:26 +0300 Subject: [PATCH 1/5] added bug id to the failing tests till they get fixed --- .../rest/search/PivotFacetedSearchTest.java | 5 +++++ .../alfresco/rest/search/StatsSearchTest.java | 21 ++++++++++++------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/e2e-test/java/org/alfresco/rest/search/PivotFacetedSearchTest.java b/e2e-test/java/org/alfresco/rest/search/PivotFacetedSearchTest.java index 198438173..4162f47b9 100644 --- a/e2e-test/java/org/alfresco/rest/search/PivotFacetedSearchTest.java +++ b/e2e-test/java/org/alfresco/rest/search/PivotFacetedSearchTest.java @@ -27,6 +27,7 @@ import java.util.List; import org.alfresco.rest.model.RestErrorModel; import org.alfresco.rest.model.RestRequestRangesModel; import org.alfresco.utility.model.TestGroup; +import org.alfresco.utility.report.Bug; import org.alfresco.utility.testrail.ExecutionType; import org.alfresco.utility.testrail.annotation.TestRail; import org.springframework.http.HttpStatus; @@ -70,6 +71,7 @@ public class PivotFacetedSearchTest extends AbstractSearchTest .containsSummary("Pivot parameter none_like_this does not reference"); } + @Bug(id = "TAS-3500") @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, description = "Checks with pivot using Search api") @@ -98,6 +100,7 @@ public class PivotFacetedSearchTest extends AbstractSearchTest assertPivotResponse(response, "creator", null); } + @Bug(id = "TAS-3500") @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, description = "Checks nested pivot using Search api") @@ -154,6 +157,7 @@ public class PivotFacetedSearchTest extends AbstractSearchTest creatorResponse.assertThat().field("label").is("creator"); } + @Bug(id = "TAS-3500") @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, description = "Checks range pivots using Search api") @@ -216,6 +220,7 @@ public class PivotFacetedSearchTest extends AbstractSearchTest Assert.assertTrue(bucket.getMetrics().get(0).getValue().toString().contains("{count=")); } + @Bug(id = "TAS-3500") @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, description = "Checks with pivot using Search api and a label as a key") diff --git a/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java b/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java index 5cacb186f..24ac4c26e 100644 --- a/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java +++ b/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java @@ -21,13 +21,6 @@ package org.alfresco.rest.search; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertFalse; import static org.testng.Assert.assertTrue; -import org.alfresco.rest.model.RestErrorModel; -import org.alfresco.utility.model.TestGroup; -import org.alfresco.utility.testrail.ExecutionType; -import org.alfresco.utility.testrail.annotation.TestRail; -import org.springframework.http.HttpStatus; -import org.testng.Assert; -import org.testng.annotations.Test; import java.util.ArrayList; import java.util.Arrays; @@ -36,6 +29,14 @@ import java.util.Map; import java.util.Set; import java.util.stream.Collectors; +import org.alfresco.rest.model.RestErrorModel; +import org.alfresco.utility.model.TestGroup; +import org.alfresco.utility.report.Bug; +import org.alfresco.utility.testrail.ExecutionType; +import org.alfresco.utility.testrail.annotation.TestRail; +import org.springframework.http.HttpStatus; +import org.testng.annotations.Test; + /** * Stats search test. * @author Gethin James @@ -44,6 +45,7 @@ import java.util.stream.Collectors; public class StatsSearchTest extends AbstractSearchTest { + @Bug(id = "TAS-3500") @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, description = "Checks errors with stats using Search api") @@ -127,6 +129,7 @@ public class StatsSearchTest extends AbstractSearchTest assertTrue(percentiles.keySet().containsAll(Arrays.asList("1.0","75.0","99.0","99.9"))); } + @Bug(id = "TAS-3500") @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, description = "Checks errors with stats labels using Search api") @@ -146,6 +149,7 @@ public class StatsSearchTest extends AbstractSearchTest assertStatsFacetedResponse(response, "DateChanged", 8); } + @Bug(id = "TAS-3500") @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, description = "Checks errors with stats fitlers using Search api") @@ -180,6 +184,7 @@ public class StatsSearchTest extends AbstractSearchTest assertTrue((Integer)metricCount.get("count") > count, "With the exclude filter there will be more documents than returned"); } + @Bug(id = "TAS-3500") @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, description = "Checks errors with stats with Pivot using Search api") @@ -242,7 +247,7 @@ public class StatsSearchTest extends AbstractSearchTest } - + @Bug(id = "TAS-3500") @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, description = "Checks errors with stats with Pivot using Search api") From d1294cacdbd612d2b128321f250d21ce1b4bb2ab Mon Sep 17 00:00:00 2001 From: Gethin James Date: Tue, 13 Jun 2017 15:58:23 +0200 Subject: [PATCH 2/5] Revert "added bug id to the failing tests till they get fixed" This reverts commit 656b562c8acf7b56517d7a118f3469031def300c. --- .../rest/search/PivotFacetedSearchTest.java | 5 ----- .../alfresco/rest/search/StatsSearchTest.java | 21 +++++++------------ 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/e2e-test/java/org/alfresco/rest/search/PivotFacetedSearchTest.java b/e2e-test/java/org/alfresco/rest/search/PivotFacetedSearchTest.java index 4162f47b9..198438173 100644 --- a/e2e-test/java/org/alfresco/rest/search/PivotFacetedSearchTest.java +++ b/e2e-test/java/org/alfresco/rest/search/PivotFacetedSearchTest.java @@ -27,7 +27,6 @@ import java.util.List; import org.alfresco.rest.model.RestErrorModel; import org.alfresco.rest.model.RestRequestRangesModel; import org.alfresco.utility.model.TestGroup; -import org.alfresco.utility.report.Bug; import org.alfresco.utility.testrail.ExecutionType; import org.alfresco.utility.testrail.annotation.TestRail; import org.springframework.http.HttpStatus; @@ -71,7 +70,6 @@ public class PivotFacetedSearchTest extends AbstractSearchTest .containsSummary("Pivot parameter none_like_this does not reference"); } - @Bug(id = "TAS-3500") @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, description = "Checks with pivot using Search api") @@ -100,7 +98,6 @@ public class PivotFacetedSearchTest extends AbstractSearchTest assertPivotResponse(response, "creator", null); } - @Bug(id = "TAS-3500") @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, description = "Checks nested pivot using Search api") @@ -157,7 +154,6 @@ public class PivotFacetedSearchTest extends AbstractSearchTest creatorResponse.assertThat().field("label").is("creator"); } - @Bug(id = "TAS-3500") @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, description = "Checks range pivots using Search api") @@ -220,7 +216,6 @@ public class PivotFacetedSearchTest extends AbstractSearchTest Assert.assertTrue(bucket.getMetrics().get(0).getValue().toString().contains("{count=")); } - @Bug(id = "TAS-3500") @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, description = "Checks with pivot using Search api and a label as a key") diff --git a/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java b/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java index 24ac4c26e..5cacb186f 100644 --- a/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java +++ b/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java @@ -21,6 +21,13 @@ package org.alfresco.rest.search; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertFalse; import static org.testng.Assert.assertTrue; +import org.alfresco.rest.model.RestErrorModel; +import org.alfresco.utility.model.TestGroup; +import org.alfresco.utility.testrail.ExecutionType; +import org.alfresco.utility.testrail.annotation.TestRail; +import org.springframework.http.HttpStatus; +import org.testng.Assert; +import org.testng.annotations.Test; import java.util.ArrayList; import java.util.Arrays; @@ -29,14 +36,6 @@ import java.util.Map; import java.util.Set; import java.util.stream.Collectors; -import org.alfresco.rest.model.RestErrorModel; -import org.alfresco.utility.model.TestGroup; -import org.alfresco.utility.report.Bug; -import org.alfresco.utility.testrail.ExecutionType; -import org.alfresco.utility.testrail.annotation.TestRail; -import org.springframework.http.HttpStatus; -import org.testng.annotations.Test; - /** * Stats search test. * @author Gethin James @@ -45,7 +44,6 @@ import org.testng.annotations.Test; public class StatsSearchTest extends AbstractSearchTest { - @Bug(id = "TAS-3500") @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, description = "Checks errors with stats using Search api") @@ -129,7 +127,6 @@ public class StatsSearchTest extends AbstractSearchTest assertTrue(percentiles.keySet().containsAll(Arrays.asList("1.0","75.0","99.0","99.9"))); } - @Bug(id = "TAS-3500") @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, description = "Checks errors with stats labels using Search api") @@ -149,7 +146,6 @@ public class StatsSearchTest extends AbstractSearchTest assertStatsFacetedResponse(response, "DateChanged", 8); } - @Bug(id = "TAS-3500") @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, description = "Checks errors with stats fitlers using Search api") @@ -184,7 +180,6 @@ public class StatsSearchTest extends AbstractSearchTest assertTrue((Integer)metricCount.get("count") > count, "With the exclude filter there will be more documents than returned"); } - @Bug(id = "TAS-3500") @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, description = "Checks errors with stats with Pivot using Search api") @@ -247,7 +242,7 @@ public class StatsSearchTest extends AbstractSearchTest } - @Bug(id = "TAS-3500") + @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, description = "Checks errors with stats with Pivot using Search api") From b5955868d1b325b2a4b3e4fafbcd3df014af3a1a Mon Sep 17 00:00:00 2001 From: Gethin James Date: Tue, 13 Jun 2017 16:00:58 +0200 Subject: [PATCH 3/5] TAS-3500: Tagging tests are TestGroup.ASS_1 --- .../org/alfresco/rest/search/PivotFacetedSearchTest.java | 5 +++-- e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/e2e-test/java/org/alfresco/rest/search/PivotFacetedSearchTest.java b/e2e-test/java/org/alfresco/rest/search/PivotFacetedSearchTest.java index 198438173..5bbeaf171 100644 --- a/e2e-test/java/org/alfresco/rest/search/PivotFacetedSearchTest.java +++ b/e2e-test/java/org/alfresco/rest/search/PivotFacetedSearchTest.java @@ -41,8 +41,9 @@ import org.testng.annotations.Test; public class PivotFacetedSearchTest extends AbstractSearchTest { - @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) - @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, + @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }) + @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }, + executionType = ExecutionType.REGRESSION, description = "Checks errors with pivot using Search api") public void searchWithPivotingErrors() throws Exception { diff --git a/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java b/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java index 5cacb186f..764803150 100644 --- a/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java +++ b/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java @@ -44,8 +44,9 @@ import java.util.stream.Collectors; public class StatsSearchTest extends AbstractSearchTest { - @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) - @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, + @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }) + @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }, + executionType = ExecutionType.REGRESSION, description = "Checks errors with stats using Search api") public void searchWithBasicStats() throws Exception { From 469c2c0e176ee43189b19d203cbba879e1389856 Mon Sep 17 00:00:00 2001 From: Gethin James Date: Thu, 15 Jun 2017 12:20:37 +0200 Subject: [PATCH 4/5] MNT-18051: Changed stats count to countValues --- .../alfresco/rest/search/StatsSearchTest.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java b/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java index 764803150..ba4719931 100644 --- a/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java +++ b/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java @@ -26,7 +26,6 @@ import org.alfresco.utility.model.TestGroup; import org.alfresco.utility.testrail.ExecutionType; import org.alfresco.utility.testrail.annotation.TestRail; import org.springframework.http.HttpStatus; -import org.testng.Assert; import org.testng.annotations.Test; import java.util.ArrayList; @@ -67,19 +66,19 @@ public class StatsSearchTest extends AbstractSearchTest response = query(query); //8 metrics by default for a numeric field Set metricTypes = assertStatsFacetedResponse(response, "DBID", 8); - assertTrue(metricTypes.containsAll(Arrays.asList("missing", "count", "sum","min","max", "sumOfSquares", "mean", "stddev"))); + assertTrue(metricTypes.containsAll(Arrays.asList("missing", "countValues", "sum","min","max", "sumOfSquares", "mean", "stddev"))); statsModel1.setField("creator"); response = query(query); //4 metrics by default for a string field metricTypes = assertStatsFacetedResponse(response, "creator", 4); - assertTrue(metricTypes.containsAll(Arrays.asList("missing", "count", "min","max"))); + assertTrue(metricTypes.containsAll(Arrays.asList("missing", "countValues", "min","max"))); statsModel1.setField("modified"); response = query(query); //8 metrics by default for a date field metricTypes = assertStatsFacetedResponse(response, "modified", 8); - assertTrue(metricTypes.containsAll(Arrays.asList("missing", "count", "sum","min","max", "sumOfSquares", "mean", "stddev"))); + assertTrue(metricTypes.containsAll(Arrays.asList("missing", "countValues", "sum","min","max", "sumOfSquares", "mean", "stddev"))); statsModel1.setField("modifier"); statsModel1.setMin(false); @@ -92,7 +91,7 @@ public class StatsSearchTest extends AbstractSearchTest statsModel1.setField("DBID"); statsModel1.setMin(true); statsModel1.setMax(true); - statsModel1.setCount(false); + statsModel1.setCountValues(false); statsModel1.setMissing(false); statsModel1.setSum(false); statsModel1.setSumOfSquares(false); @@ -101,7 +100,7 @@ public class StatsSearchTest extends AbstractSearchTest response = query(query); metricTypes = assertStatsFacetedResponse(response, "DBID", 2); assertTrue(metricTypes.containsAll(Arrays.asList("min","max"))); - assertFalse(metricTypes.containsAll(Arrays.asList("missing", "count", "sum","sumOfSquares", "mean", "stddev"))); + assertFalse(metricTypes.containsAll(Arrays.asList("missing", "countValues", "sum","sumOfSquares", "mean", "stddev"))); statsModel1.setField("modifier"); statsModel1.setMin(false); @@ -170,7 +169,7 @@ public class StatsSearchTest extends AbstractSearchTest RestGenericMetricModel countMetric = response.getContext().getFacets().get(0).getBuckets().get(0).getMetrics().get(0); Integer count = response.getPagination().getTotalItems(); Map metricCount = (Map) countMetric.getValue(); - assertEquals(count, metricCount.get("count")); + assertEquals(count, metricCount.get("countValues")); statsModel1.setExcludeFilters(Arrays.asList("justCars")); response = query(query); @@ -178,7 +177,7 @@ public class StatsSearchTest extends AbstractSearchTest countMetric = response.getContext().getFacets().get(0).getBuckets().get(0).getMetrics().get(0); count = response.getEntries().size(); metricCount = (Map) countMetric.getValue(); - assertTrue((Integer)metricCount.get("count") > count, "With the exclude filter there will be more documents than returned"); + assertTrue((Integer)metricCount.get("countValues") > count, "With the exclude filter there will be more documents than returned"); } @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) @@ -239,7 +238,7 @@ public class StatsSearchTest extends AbstractSearchTest created.assertThat().field("type").is("pivot"); created.assertThat().field("label").is("created"); //Another nested stats - assertEquals(created.getBuckets().get(0).getMetrics().size(), 8, "Metrics are on the end of a pivot bucket"); + assertEquals(created.getBuckets().get(0).getMetrics().size(), 9, "Metrics are on the end of a pivot bucket"); } @@ -288,7 +287,7 @@ public class StatsSearchTest extends AbstractSearchTest RestGenericFacetResponseModel facetResponseModel = response.getContext().getFacets().get(0); facetResponseModel.assertThat().field("type").is("pivot"); facetResponseModel.assertThat().field("label").is("creator"); - assertEquals(facetResponseModel.getBuckets().get(0).getMetrics().size(), 8, "Metrics are on the end of a pivot bucket"); + assertEquals(facetResponseModel.getBuckets().get(0).getMetrics().size(), 9, "Metrics are on the end of a pivot bucket"); RestGenericFacetResponseModel statsFacet = response.getContext().getFacets().get(1); statsFacet.assertThat().field("type").is("stats"); statsFacet.assertThat().field("label").is("numericId"); From 66fec6e1bf2070d5a2eecba567c4efaeb2878f40 Mon Sep 17 00:00:00 2001 From: Gethin James Date: Tue, 20 Jun 2017 12:48:03 +0200 Subject: [PATCH 5/5] TAS-3500: Tagging more tests are TestGroup.ASS_1 --- .../rest/search/PivotFacetedSearchTest.java | 20 +++++++++++-------- .../alfresco/rest/search/StatsSearchTest.java | 20 +++++++++++-------- 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/e2e-test/java/org/alfresco/rest/search/PivotFacetedSearchTest.java b/e2e-test/java/org/alfresco/rest/search/PivotFacetedSearchTest.java index 5bbeaf171..bc54be77d 100644 --- a/e2e-test/java/org/alfresco/rest/search/PivotFacetedSearchTest.java +++ b/e2e-test/java/org/alfresco/rest/search/PivotFacetedSearchTest.java @@ -71,8 +71,9 @@ public class PivotFacetedSearchTest extends AbstractSearchTest .containsSummary("Pivot parameter none_like_this does not reference"); } - @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) - @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, + @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }) + @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }, + executionType = ExecutionType.REGRESSION, description = "Checks with pivot using Search api") public void searchWithPivoting() throws Exception { @@ -99,8 +100,9 @@ public class PivotFacetedSearchTest extends AbstractSearchTest assertPivotResponse(response, "creator", null); } - @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) - @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, + @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }) + @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }, + executionType = ExecutionType.REGRESSION, description = "Checks nested pivot using Search api") public void searchWithNestedPivoting() throws Exception { @@ -155,8 +157,9 @@ public class PivotFacetedSearchTest extends AbstractSearchTest creatorResponse.assertThat().field("label").is("creator"); } - @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) - @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, + @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }) + @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }, + executionType = ExecutionType.REGRESSION, description = "Checks range pivots using Search api") public void searchWithRangePivoting() throws Exception { @@ -217,8 +220,9 @@ public class PivotFacetedSearchTest extends AbstractSearchTest Assert.assertTrue(bucket.getMetrics().get(0).getValue().toString().contains("{count=")); } - @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) - @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, + @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }) + @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }, + executionType = ExecutionType.REGRESSION, description = "Checks with pivot using Search api and a label as a key") public void searchWithPivotingUsingLabel() throws Exception { diff --git a/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java b/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java index ba4719931..59735b6ee 100644 --- a/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java +++ b/e2e-test/java/org/alfresco/rest/search/StatsSearchTest.java @@ -127,8 +127,9 @@ public class StatsSearchTest extends AbstractSearchTest assertTrue(percentiles.keySet().containsAll(Arrays.asList("1.0","75.0","99.0","99.9"))); } - @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) - @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, + @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }) + @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }, + executionType = ExecutionType.REGRESSION, description = "Checks errors with stats labels using Search api") public void searchWithStatsLabel() throws Exception { @@ -146,8 +147,9 @@ public class StatsSearchTest extends AbstractSearchTest assertStatsFacetedResponse(response, "DateChanged", 8); } - @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) - @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, + @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }) + @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }, + executionType = ExecutionType.REGRESSION, description = "Checks errors with stats fitlers using Search api") public void searchWithStatsFilters() throws Exception { @@ -180,8 +182,9 @@ public class StatsSearchTest extends AbstractSearchTest assertTrue((Integer)metricCount.get("countValues") > count, "With the exclude filter there will be more documents than returned"); } - @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) - @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, + @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }) + @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }, + executionType = ExecutionType.REGRESSION, description = "Checks errors with stats with Pivot using Search api") public void searchWithStatsAndMutlilevelPivot() throws Exception { @@ -243,8 +246,9 @@ public class StatsSearchTest extends AbstractSearchTest } - @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH }) - @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH }, executionType = ExecutionType.REGRESSION, + @Test(groups = { TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }) + @TestRail(section = {TestGroup.REST_API, TestGroup.SEARCH, TestGroup.ASS_1 }, + executionType = ExecutionType.REGRESSION, description = "Checks errors with stats with Pivot using Search api") public void searchWithStatsAndPivot() throws Exception {