From 66fec6e1bf2070d5a2eecba567c4efaeb2878f40 Mon Sep 17 00:00:00 2001 From: Gethin James Date: Tue, 20 Jun 2017 12:48:03 +0200 Subject: [PATCH] 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 {