From 74b7c8ef41697455fd174cac7c0b079544ce9a3a Mon Sep 17 00:00:00 2001 From: Dmytro Nochevnov Date: Fri, 23 Aug 2019 18:29:06 +0300 Subject: [PATCH] Exclude failing java selenium tests from execution Signed-off-by: Dmytro Nochevnov --- .../che/selenium/dashboard/CreateAndDeleteProjectsTest.java | 2 ++ .../che/selenium/dashboard/ImportMavenProjectFromGitTest.java | 2 ++ .../che/selenium/dashboard/ImportProjectFromGitHubTest.java | 2 ++ .../selenium/factory/DirectUrlFactoryWithRootFolderTest.java | 3 ++- .../factory/DirectUrlFactoryWithSpecificBranchTest.java | 3 ++- 5 files changed, 10 insertions(+), 2 deletions(-) diff --git a/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/dashboard/CreateAndDeleteProjectsTest.java b/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/dashboard/CreateAndDeleteProjectsTest.java index ef31eb2e75b..606671dc434 100644 --- a/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/dashboard/CreateAndDeleteProjectsTest.java +++ b/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/dashboard/CreateAndDeleteProjectsTest.java @@ -12,6 +12,7 @@ package org.eclipse.che.selenium.dashboard; import static org.eclipse.che.commons.lang.NameGenerator.generate; +import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR; import static org.eclipse.che.selenium.pageobject.dashboard.ProjectSourcePage.Template.CONSOLE_JAVA_SIMPLE; import static org.eclipse.che.selenium.pageobject.dashboard.workspaces.WorkspaceDetails.WorkspaceDetailsTab.PROJECTS; @@ -36,6 +37,7 @@ import org.testng.annotations.Test; /** @author Andrey Chizhikov */ +@Test(groups = UNDER_REPAIR) public class CreateAndDeleteProjectsTest { private static final String WORKSPACE = generate("workspace", 4); diff --git a/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/dashboard/ImportMavenProjectFromGitTest.java b/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/dashboard/ImportMavenProjectFromGitTest.java index 2bc7631a541..9f4cd73fdac 100644 --- a/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/dashboard/ImportMavenProjectFromGitTest.java +++ b/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/dashboard/ImportMavenProjectFromGitTest.java @@ -12,6 +12,7 @@ package org.eclipse.che.selenium.dashboard; import static org.eclipse.che.commons.lang.NameGenerator.generate; +import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR; import static org.eclipse.che.selenium.pageobject.dashboard.ProjectSourcePage.Sources.GIT; import com.google.inject.Inject; @@ -35,6 +36,7 @@ import org.testng.annotations.Test; /** @author Andrey Chizhikov */ +@Test(groups = UNDER_REPAIR) public class ImportMavenProjectFromGitTest { private final String WORKSPACE = generate("ImtMvnPrjGit", 4); diff --git a/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/dashboard/ImportProjectFromGitHubTest.java b/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/dashboard/ImportProjectFromGitHubTest.java index 695b61a89f5..eedc8115e22 100644 --- a/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/dashboard/ImportProjectFromGitHubTest.java +++ b/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/dashboard/ImportProjectFromGitHubTest.java @@ -12,6 +12,7 @@ package org.eclipse.che.selenium.dashboard; import static org.eclipse.che.commons.lang.NameGenerator.generate; +import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR; import static org.eclipse.che.selenium.core.utils.WaitUtils.sleepQuietly; import static org.eclipse.che.selenium.pageobject.dashboard.ProjectSourcePage.Sources.GITHUB; import static org.testng.AssertJUnit.assertTrue; @@ -40,6 +41,7 @@ import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; +@Test(groups = UNDER_REPAIR) public class ImportProjectFromGitHubTest { private static final String WORKSPACE = generate(ImportProjectFromGitHubTest.class.getSimpleName(), 4); diff --git a/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/factory/DirectUrlFactoryWithRootFolderTest.java b/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/factory/DirectUrlFactoryWithRootFolderTest.java index 74b00cf619b..2dd124346b4 100644 --- a/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/factory/DirectUrlFactoryWithRootFolderTest.java +++ b/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/factory/DirectUrlFactoryWithRootFolderTest.java @@ -13,6 +13,7 @@ import static org.eclipse.che.selenium.core.TestGroup.GITHUB; import static org.eclipse.che.selenium.core.TestGroup.OPENSHIFT; +import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR; import static org.eclipse.che.selenium.core.constant.TestTimeoutsConstants.UPDATING_PROJECT_TIMEOUT_SEC; import com.google.inject.Inject; @@ -32,7 +33,7 @@ import org.testng.annotations.Test; /** @author Musienko Maxim */ -@Test(groups = {GITHUB, OPENSHIFT}) +@Test(groups = {GITHUB, OPENSHIFT, UNDER_REPAIR}) public class DirectUrlFactoryWithRootFolderTest { private static final Logger LOG = LoggerFactory.getLogger(DirectUrlFactoryWithRootFolderTest.class); diff --git a/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/factory/DirectUrlFactoryWithSpecificBranchTest.java b/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/factory/DirectUrlFactoryWithSpecificBranchTest.java index 488acf5223e..b65b45885f4 100644 --- a/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/factory/DirectUrlFactoryWithSpecificBranchTest.java +++ b/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/factory/DirectUrlFactoryWithSpecificBranchTest.java @@ -14,6 +14,7 @@ import static org.eclipse.che.selenium.core.CheSeleniumSuiteModule.AUXILIARY; import static org.eclipse.che.selenium.core.TestGroup.GITHUB; import static org.eclipse.che.selenium.core.TestGroup.OPENSHIFT; +import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR; import static org.eclipse.che.selenium.core.constant.TestTimeoutsConstants.UPDATING_PROJECT_TIMEOUT_SEC; import static org.testng.AssertJUnit.assertEquals; @@ -36,7 +37,7 @@ import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -@Test(groups = {GITHUB, OPENSHIFT}) +@Test(groups = {GITHUB, OPENSHIFT, UNDER_REPAIR}) public class DirectUrlFactoryWithSpecificBranchTest { private static final Logger LOG = LoggerFactory.getLogger(DirectUrlFactoryWithSpecificBranchTest.class);