Do not execute selenium tests under repair by default (#11689)

Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
6.19.x
Dmytro Nochevnov 2018-11-02 14:37:22 +02:00 committed by GitHub
parent c67c12e699
commit 11a20f1f69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
29 changed files with 86 additions and 37 deletions

View File

@ -78,6 +78,7 @@ initVariables() {
PRODUCT_PROTOCOL="http"
PRODUCT_HOST=$(detectDockerInterfaceIp)
PRODUCT_PORT=8080
INCLUDE_TESTS_UNDER_REPAIR=false
unset DEBUG_OPTIONS
unset MAVEN_OPTIONS
@ -149,6 +150,7 @@ checkParameters() {
elif [[ "$var" == --skip-sources-validation ]]; then :
elif [[ "$var" == --multiuser ]]; then :
elif [[ "$var" =~ --exclude=.* ]]; then :
elif [[ "$var" =~ --include-tests-under-repair ]]; then :
else
printHelp
@ -209,6 +211,9 @@ applyCustomOptions() {
elif [[ "$var" =~ --exclude=.* ]]; then
EXCLUDE_PARAM=$(echo "$var" | sed -e "s/--exclude=//g")
elif [[ "$var" == --include-tests-under-repair ]]; then
INCLUDE_TESTS_UNDER_REPAIR=true
fi
done
}
@ -418,6 +423,7 @@ Other options:
--skip-sources-validation Fast build. Skips source validation and enforce plugins
--workspace-pool-size=[<SIZE>|auto] Size of test workspace pool.
Default value is 0, that means that test workspaces are created on demand.
--include-tests-under-repair Include tests which belong to group 'UNDER REPAIR'
HOW TO of usage:
Test Eclipse Che single user assembly:
@ -435,6 +441,9 @@ HOW TO of usage:
Run suite:
${CALLER} <...> --suite=<PATH_TO_SUITE>
Include tests which belong to group 'UNDER REPAIR'
./selenium-tests.sh --include-tests-under-repair
Rerun failed tests:
${CALLER} <...> --failed-tests
${CALLER} <...> --failed-tests --rerun [ATTEMPTS]
@ -725,6 +734,11 @@ getProductConfig() {
# Prepare list of test groups to exclude.
getExcludedGroups() {
local excludeParamArray=(${EXCLUDE_PARAM//,/ })
if [[ ${INCLUDE_TESTS_UNDER_REPAIR} == false ]]; then
excludeParamArray+=( 'under_repair' )
fi
echo $(IFS=$','; echo "${excludeParamArray[*]}")
}
@ -780,8 +794,8 @@ generateTestNgFailedReport() {
# generates and updates failsafe report
generateFailSafeReport () {
mvn -q surefire-report:failsafe-report-only ${MAVEN_OPTIONS}
mvn -q site -DgenerateReports=false ${MAVEN_OPTIONS}
mvn -q surefire-report:failsafe-report-only
mvn -q site -DgenerateReports=false
echo "[TEST]"
echo -e "[TEST] ${YELLOW}REPORT:${NO_COLOUR}"

View File

@ -20,4 +20,5 @@ public interface TestGroup {
String GITHUB = "github";
String OSIO = "osio";
String K8S = "k8s";
String UNDER_REPAIR = "under_repair";
}

View File

@ -84,6 +84,7 @@ public class TestFilter {
groups.remove(TestGroup.SINGLEUSER);
groups.remove(TestGroup.MULTIUSER);
groups.remove(TestGroup.GITHUB);
groups.remove(TestGroup.UNDER_REPAIR);
if (!groups.isEmpty() && !groups.contains(infrastructure.toString().toLowerCase())) {
annotation.setEnabled(false);
}

View File

@ -18,6 +18,7 @@ import static org.eclipse.che.selenium.core.TestGroup.MULTIUSER;
import static org.eclipse.che.selenium.core.TestGroup.OPENSHIFT;
import static org.eclipse.che.selenium.core.TestGroup.OSIO;
import static org.eclipse.che.selenium.core.TestGroup.SINGLEUSER;
import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.verify;
@ -66,8 +67,13 @@ public class TestFilterTest {
public Object[][] disableTestGroupManagementData() {
return new Object[][] {
{new String[] {GITHUB}, GITHUB, CHE_MULTIUSER, Infrastructure.OPENSHIFT},
{new String[] {GITHUB}, SOME_GROUP + "," + GITHUB, CHE_SINGLEUSER, Infrastructure.OPENSHIFT},
{new String[] {OPENSHIFT}, GITHUB, CHE_MULTIUSER, Infrastructure.DOCKER},
{
new String[] {UNDER_REPAIR},
SOME_GROUP + "," + UNDER_REPAIR,
CHE_SINGLEUSER,
Infrastructure.OPENSHIFT
},
{new String[] {OPENSHIFT, UNDER_REPAIR}, GITHUB, CHE_MULTIUSER, Infrastructure.DOCKER},
{new String[] {MULTIUSER}, SOME_GROUP, CHE_SINGLEUSER, Infrastructure.DOCKER},
{
new String[] {OPENSHIFT, OSIO}, EMPTY_EXCLUDED_GROUPS, CHE_SINGLEUSER, Infrastructure.DOCKER

View File

@ -124,6 +124,7 @@ Other options:
--skip-sources-validation Fast build. Skips source validation and enforce plugins
--workspace-pool-size=[<SIZE>|auto] Size of test workspace pool.
Default value is 0, that means that test workspaces are created on demand.
--include-tests-under-repair Include tests which belong to group 'UNDER REPAIR'
HOW TO of usage:
Test Eclipse Che single user assembly:
@ -141,6 +142,9 @@ HOW TO of usage:
Run suite:
./selenium-tests.sh <...> --suite=<PATH_TO_SUITE>
Include tests which belong to group 'UNDER REPAIR'
./selenium-tests.sh --include-tests-under-repair
Rerun failed tests:
./selenium-tests.sh <...> --failed-tests
./selenium-tests.sh <...> --failed-tests --rerun [ATTEMPTS]

View File

@ -23,7 +23,6 @@ import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import org.eclipse.che.selenium.core.SeleniumWebDriver;
import org.eclipse.che.selenium.core.TestGroup;
import org.eclipse.che.selenium.core.client.TestGitHubRepository;
import org.eclipse.che.selenium.core.client.TestWorkspaceServiceClient;
import org.eclipse.che.selenium.core.user.DefaultTestUser;
@ -41,7 +40,6 @@ import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
@Test(groups = {TestGroup.GITHUB})
public class ImportProjectFromGitHubTest {
private static final String WORKSPACE =
generate(ImportProjectFromGitHubTest.class.getSimpleName(), 4);

View File

@ -12,6 +12,7 @@
package org.eclipse.che.selenium.dashboard.workspaces;
import static java.util.Arrays.asList;
import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR;
import static org.eclipse.che.selenium.core.project.ProjectTemplates.MAVEN_SPRING;
import static org.eclipse.che.selenium.core.workspace.WorkspaceTemplate.UBUNTU_JDK8;
import static org.eclipse.che.selenium.pageobject.dashboard.NewWorkspace.Stack.BLANK;
@ -205,7 +206,7 @@ public class WorkspacesListTest {
workspaces.waitDeleteWorkspaceBtnDisappearance();
}
@Test
@Test(groups = UNDER_REPAIR)
public void checkSorting() {
workspaces.waitPageLoading();
workspaces.clickOnRamButton();
@ -275,7 +276,7 @@ public class WorkspacesListTest {
checkExpectedJavaWorkspaceDisplaying();
}
@Test()
@Test
public void checkWorkspaceActions() throws Exception {
workspaces.waitPageLoading();
String mainWindow = seleniumWebDriver.getWindowHandle();

View File

@ -117,7 +117,7 @@ public class WorkspaceDetailsMachineActionsTest {
checkRamSection(IMAGE_NAME);
}
@Test(groups = DOCKER)
@Test(groups = {DOCKER})
public void checkRamSectionDocker() {
checkRamSection("FROM " + IMAGE_NAME + "\n");
}

View File

@ -45,7 +45,6 @@ import org.eclipse.che.selenium.pageobject.intelligent.CommandsPalette;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
/** @author Musienko Maxim */
public class ChangeVariableWithEvaluatingTest {
@ -112,7 +111,6 @@ public class ChangeVariableWithEvaluatingTest {
consoles.waitJDTLSProjectResolveFinishedMessage(PROJECT_NAME_CHANGE_VARIABLE);
}
@Test
public void changeVariableTest() throws Exception {
buildProjectAndOpenMainClass();
commandsPalette.openCommandPalette();

View File

@ -11,6 +11,7 @@
*/
package org.eclipse.che.selenium.debugger;
import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR;
import static org.eclipse.che.selenium.pageobject.debug.DebugPanel.DebuggerActionButtons.BTN_DISCONNECT;
import static org.eclipse.che.selenium.pageobject.debug.DebugPanel.DebuggerActionButtons.RESUME_BTN_ID;
import static org.testng.Assert.fail;
@ -41,6 +42,7 @@ import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
/** @author Dmytro Nochevnov */
@Test(groups = UNDER_REPAIR)
public class InnerClassAndLambdaDebuggingTest {
private static final String PROJECT = "java-inner-lambda";
private static final String PATH_TO_CLASS = PROJECT + "/src/main/java/test/App.java";

View File

@ -11,6 +11,7 @@
*/
package org.eclipse.che.selenium.editor.autocomplete;
import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR;
import static org.eclipse.che.selenium.pageobject.CodenvyEditor.MarkerLocator.ERROR;
import static org.eclipse.che.selenium.pageobject.CodenvyEditor.MarkerLocator.TASK_OVERVIEW;
import static org.testng.Assert.fail;
@ -37,6 +38,7 @@ import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
/** @author Musienko Maxim */
@Test(groups = UNDER_REPAIR)
public class AutocompleteWithInheritTest {
private static final String PROJECT_NAME =
NameGenerator.generate(AutocompleteWithInheritTest.class.getSimpleName(), 4);

View File

@ -11,6 +11,7 @@
*/
package org.eclipse.che.selenium.editor.autocomplete;
import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR;
import static org.eclipse.che.selenium.pageobject.CodenvyEditor.MarkerLocator.ERROR;
import static org.eclipse.che.selenium.pageobject.CodenvyEditor.MarkerLocator.WARNING;
import static org.testng.Assert.fail;
@ -34,6 +35,7 @@ import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
/** @author Andrienko Alexander on 08.01.15. */
@Test(groups = UNDER_REPAIR)
public class QuickFixAndCodeAssistantFeaturesTest {
private static final String PROJECT_NAME =
NameGenerator.generate(QuickFixAndCodeAssistantFeaturesTest.class.getSimpleName(), 4);

View File

@ -11,6 +11,7 @@
*/
package org.eclipse.che.selenium.editor.autocomplete;
import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR;
import static org.testng.Assert.fail;
import com.google.inject.Inject;
@ -34,6 +35,7 @@ import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
/** @author Aleksandr Shmaraev */
@Test(groups = UNDER_REPAIR)
public class ShowHintsCommandTest {
private final Logger LOG = LoggerFactory.getLogger(ShowHintsCommandTest.class);
private static final String PROJECT_NAME =
@ -96,6 +98,7 @@ public class ShowHintsCommandTest {
editor.waitMarkerInPosition(MarkerLocator.ERROR, 34);
editor.goToCursorPositionVisible(33, 16);
editor.callShowHintsPopUp();
try {
editor.waitShowHintsPopUpOpened();
} catch (TimeoutException ex) {

View File

@ -11,6 +11,7 @@
*/
package org.eclipse.che.selenium.factory;
import static org.eclipse.che.selenium.core.TestGroup.GITHUB;
import static org.testng.Assert.assertTrue;
import static org.testng.Assert.fail;
@ -20,7 +21,6 @@ import java.nio.file.Paths;
import java.util.Arrays;
import java.util.List;
import org.eclipse.che.selenium.core.SeleniumWebDriver;
import org.eclipse.che.selenium.core.TestGroup;
import org.eclipse.che.selenium.core.client.TestGitHubRepository;
import org.eclipse.che.selenium.core.client.TestProjectServiceClient;
import org.eclipse.che.selenium.core.client.TestWorkspaceServiceClient;
@ -36,7 +36,7 @@ import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
/** @author Musienko Maxim */
@Test(groups = TestGroup.GITHUB)
@Test(groups = {GITHUB})
public class DirectUrlFactoryWithRootFolderTest {
@Inject private ProjectExplorer projectExplorer;
@Inject private DefaultTestUser testUser;

View File

@ -38,11 +38,7 @@ import org.openqa.selenium.TimeoutException;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
/**
* //
*
* @author Musienko Maxim
*/
/** @author Musienko Maxim */
public class RemoveFilesWithActiveTabs {
private static final String PROJECT_NAME = NameGenerator.generate("project", 6);
@Inject private TestWorkspace ws;

View File

@ -11,6 +11,7 @@
*/
package org.eclipse.che.selenium.git;
import static org.eclipse.che.selenium.core.TestGroup.GITHUB;
import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.Git.GIT;
import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.Git.Remotes.PULL;
import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.Git.Remotes.REMOTES_TOP;
@ -22,7 +23,6 @@ import com.google.inject.name.Named;
import java.nio.file.Path;
import java.nio.file.Paths;
import org.eclipse.che.commons.lang.NameGenerator;
import org.eclipse.che.selenium.core.TestGroup;
import org.eclipse.che.selenium.core.client.TestGitHubRepository;
import org.eclipse.che.selenium.core.client.TestUserPreferencesServiceClient;
import org.eclipse.che.selenium.core.user.DefaultTestUser;
@ -37,7 +37,7 @@ import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
/** @author Aleksandr Shmaraev */
@Test(groups = TestGroup.GITHUB)
@Test(groups = {GITHUB})
public class GitPullTest {
private static final String PROJECT_NAME = NameGenerator.generate("FirstProject-", 4);

View File

@ -11,6 +11,7 @@
*/
package org.eclipse.che.selenium.git;
import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR;
import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.Git.BRANCHES;
import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.Git.GIT;
import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.Workspace.IMPORT_PROJECT;
@ -59,7 +60,6 @@ import org.testng.annotations.Test;
* @author Aleksandr Shmaraev
* @author Ihor Okhrimenko
*/
@Test(groups = TestGroup.GITHUB)
public class ImportWizardFormTest {
private static final Logger LOG = LoggerFactory.getLogger(ImportWizardFormTest.class);
private static final String GITHUB_COM = "github.com";
@ -408,7 +408,7 @@ public class ImportWizardFormTest {
editor.waitActive();
}
@Test(priority = 1)
@Test(priority = 1, groups = UNDER_REPAIR)
public void checkImportProjectSubmoduleByHttpsUrl() {
projectExplorer.waitProjectExplorer();
currentProjectName = multimoduleRepo.getName() + "Https";
@ -418,7 +418,7 @@ public class ImportWizardFormTest {
openAndCheckRegularSubmodule(currentProjectName);
}
@Test(priority = 1)
@Test(priority = 1, groups = UNDER_REPAIR)
public void checkImportProjectSubmoduleBySshUrl() {
projectExplorer.waitProjectExplorer();
currentProjectName = multimoduleRepo.getName() + "Ssh";
@ -428,7 +428,7 @@ public class ImportWizardFormTest {
openAndCheckRegularSubmodule(currentProjectName);
}
@Test(priority = 1)
@Test(priority = 1, groups = UNDER_REPAIR)
public void checkImportProjectSubmoduleFromGithub() throws Exception {
projectExplorer.waitProjectExplorer();
currentProjectName = multimoduleRepo.getName();

View File

@ -12,6 +12,7 @@
package org.eclipse.che.selenium.languageserver;
import static java.lang.String.format;
import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR;
import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.Assistant.ASSISTANT;
import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.Assistant.FIND_DEFINITION;
import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.Assistant.FIND_PROJECT_SYMBOL;
@ -141,7 +142,7 @@ public class TypeScriptEditingTest {
editor.waitTextElementsActiveLine("print");
}
@Test(priority = 4, alwaysRun = true)
@Test(priority = 4, alwaysRun = true, groups = UNDER_REPAIR)
public void checkHoveringFeature() {
editor.moveCursorToText("Greeter");
try {

View File

@ -11,6 +11,7 @@
*/
package org.eclipse.che.selenium.languageserver.csharp;
import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR;
import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.Assistant.ASSISTANT;
import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.Assistant.Refactoring.LS_RENAME;
import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.Assistant.Refactoring.REFACTORING;
@ -40,6 +41,7 @@ import org.openqa.selenium.TimeoutException;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
@Test(groups = UNDER_REPAIR)
public class CSharpClassRenamingTest {
private static final String PROJECT_NAME =
NameGenerator.generate(CSharpClassRenamingTest.class.getSimpleName(), 4);

View File

@ -11,6 +11,7 @@
*/
package org.eclipse.che.selenium.languageserver.csharp;
import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR;
import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.Assistant.ASSISTANT;
import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.Assistant.FIND_DEFINITION;
import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.Assistant.GO_TO_SYMBOL;
@ -41,6 +42,7 @@ import org.openqa.selenium.TimeoutException;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
@Test(groups = UNDER_REPAIR)
public class CSharpFileAdvancedOperationsTest {
private static final String PROJECT_NAME =
NameGenerator.generate(CSharpClassRenamingTest.class.getSimpleName(), 4);
@ -83,7 +85,7 @@ public class CSharpFileAdvancedOperationsTest {
projectExplorer.waitItem(PROJECT_NAME + "/bin");
}
@Test(alwaysRun = true)
@Test
public void checkHoveringFeature() {
String expectedTextInHoverPopUp =
"System.Console\nRepresents the standard input, output, and error streams for console applications. This class cannot be inherited.";
@ -109,7 +111,7 @@ public class CSharpFileAdvancedOperationsTest {
editor.typeTextIntoEditor(Keys.END.toString());
}
@Test(priority = 3, alwaysRun = true)
@Test(priority = 3, alwaysRun = true, groups = UNDER_REPAIR)
public void checkGoToSymbolFeature() {
menu.runCommand(ASSISTANT, GO_TO_SYMBOL);
try {

View File

@ -11,6 +11,7 @@
*/
package org.eclipse.che.selenium.languageserver.csharp;
import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR;
import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.Workspace.CREATE_PROJECT;
import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.Workspace.WORKSPACE;
import static org.eclipse.che.selenium.pageobject.CodenvyEditor.MarkerLocator.ERROR;
@ -41,6 +42,7 @@ import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
/** @author Musienko Maxim */
@Test(groups = UNDER_REPAIR)
public class CSharpFileEditingTest {
private final String PROJECT_NAME = NameGenerator.generate("AspProject", 4);

View File

@ -18,6 +18,7 @@ import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.A
import static org.openqa.selenium.Keys.ARROW_LEFT;
import static org.openqa.selenium.Keys.CONTROL;
import static org.openqa.selenium.Keys.ENTER;
import static org.testng.Assert.fail;
import com.google.inject.Inject;
import java.net.URL;
@ -37,6 +38,7 @@ import org.eclipse.che.selenium.pageobject.Menu;
import org.eclipse.che.selenium.pageobject.NotificationsPopupPanel;
import org.eclipse.che.selenium.pageobject.ProjectExplorer;
import org.openqa.selenium.Keys;
import org.openqa.selenium.TimeoutException;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
@ -113,7 +115,13 @@ public class PhpAssistantFeaturesTest {
editor.waitActive();
editor.moveCursorToText(TEXT_FOR_HOVERING);
editor.waitTextInHoverPopUpEqualsTo(EXPECTED_HOVER_POPUP_TEXT);
try {
editor.waitTextInHoverPopUpEqualsTo(EXPECTED_HOVER_POPUP_TEXT);
} catch (TimeoutException ex) {
// remove try-catch block after issue has been resolved
fail("Known random failure https://github.com/eclipse/che/issues/10674", ex);
}
}
@Test

View File

@ -12,6 +12,7 @@
package org.eclipse.che.selenium.miscellaneous;
import static java.lang.String.valueOf;
import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR;
import static org.eclipse.che.selenium.pageobject.PanelSelector.PanelTypes.LEFT_BOTTOM_ID;
import static org.testng.Assert.fail;
@ -34,8 +35,6 @@ import org.eclipse.che.selenium.pageobject.PanelSelector;
import org.eclipse.che.selenium.pageobject.ProjectExplorer;
import org.openqa.selenium.Keys;
import org.openqa.selenium.TimeoutException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
@ -46,7 +45,6 @@ import org.testng.annotations.Test;
*/
public class WorkingWithTerminalTest {
private static final String PROJECT_NAME = NameGenerator.generate("project", 4);
private static final Logger LOG = LoggerFactory.getLogger(WorkingWithTerminalTest.class);
private static final String[] CHECK_MC_OPENING = {
"Left", "File", "Command", "Options", "Right", "Name", "bin", "dev", "etc", "home",
@ -250,7 +248,7 @@ public class WorkingWithTerminalTest {
terminal.waitTextInFirstTerminal("tomcat8");
}
@Test
@Test(groups = UNDER_REPAIR)
public void shouldCancelProcessByCtrlC() {
terminal.typeIntoActiveTerminal("cd /" + Keys.ENTER);

View File

@ -11,6 +11,7 @@
*/
package org.eclipse.che.selenium.plainjava;
import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR;
import static org.eclipse.che.selenium.core.constant.TestIntelligentCommandsConstants.CommandsDefaultNames.JAVA_NAME;
import static org.eclipse.che.selenium.core.constant.TestIntelligentCommandsConstants.CommandsGoals.RUN_GOAL;
import static org.eclipse.che.selenium.core.constant.TestIntelligentCommandsConstants.CommandsTypes.JAVA_TYPE;
@ -53,6 +54,7 @@ import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
/** @author Aleksandr Shmaraev */
@Test(groups = UNDER_REPAIR)
public class RunPlainJavaProjectTest {
private static final String PROJECT_NAME = "run-plain-java-project";
private static final String NEW_PACKAGE = "base.test";

View File

@ -11,6 +11,7 @@
*/
package org.eclipse.che.selenium.refactor.methods;
import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR;
import static org.testng.Assert.fail;
import com.google.inject.Inject;
@ -132,7 +133,7 @@ public class RenameVirtualMethodsTest {
doRefactorByWizardWithClosingWarnMess(14, 10, "k");
}
@Test
@Test(groups = UNDER_REPAIR)
public void testGeneric2() {
try {
doRefactorByWizard(20, 20, "addIfPositive");

View File

@ -11,6 +11,7 @@
*/
package org.eclipse.che.selenium.refactor.move;
import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR;
import static org.eclipse.che.selenium.core.constant.TestTimeoutsConstants.DEFAULT_TIMEOUT;
import static org.eclipse.che.selenium.pageobject.CodenvyEditor.MarkerLocator.ERROR;
import static org.eclipse.che.selenium.pageobject.CodenvyEditor.MarkerLocator.WARNING;
@ -36,6 +37,7 @@ import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
/** @author Aleksandr Shmaraev */
@Test(groups = UNDER_REPAIR)
public class CodeAssistAfterMoveItemTest {
private static final String APPLY_WORKSPACE_CHANGES = "Apply Workspace Changes\nDone";

View File

@ -11,6 +11,7 @@
*/
package org.eclipse.che.selenium.refactor.packages;
import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR;
import static org.testng.Assert.fail;
import com.google.inject.Inject;
@ -352,7 +353,7 @@ public class RenamePackageTest {
editor.closeFileByNameWithSaving("A");
}
@Test
@Test(groups = UNDER_REPAIR)
public void checkTest3() {
projectExplorer.openItemByPath(PROJECT_NAME + "/src/main/java/mine/pack");
projectExplorer.openItemByPath(PROJECT_NAME + "/src/main/java/mine/pack/Textfile.txt");
@ -589,7 +590,7 @@ public class RenamePackageTest {
editor.closeFileByNameWithSaving("MyA");
}
@Test
@Test(groups = UNDER_REPAIR)
public void checkTestHierarchical10() {
projectExplorer.openItemByPath(PROJECT_NAME + "/src/main/java/m_y/pack");
projectExplorer.openItemByPath(PROJECT_NAME + "/src/main/java/m_y/pack/C.java");
@ -623,7 +624,7 @@ public class RenamePackageTest {
editor.closeFileByNameWithSaving("C");
}
@Test
@Test(groups = UNDER_REPAIR)
public void checkTestDisableImport11() {
projectExplorer.openItemByPath(PROJECT_NAME + "/src/main/java/my_/pack");
projectExplorer.openItemByPath(PROJECT_NAME + "/src/main/java/my_/pack/C.java");

View File

@ -12,6 +12,7 @@
package org.eclipse.che.selenium.stack;
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.constant.TestMenuCommandsConstants.Workspace.IMPORT_PROJECT;
import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.Workspace.WORKSPACE;
import static org.eclipse.che.selenium.pageobject.CodenvyEditor.MarkerLocator.ERROR;
@ -45,6 +46,7 @@ import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
/** @author Aleksandr Shmaraev */
@Test(groups = UNDER_REPAIR)
public class ImportAndValidateEclipseCheProjectTest {
private static final Logger LOG =

View File

@ -169,7 +169,7 @@ public class JavaTestPluginTestNgTest {
}
@Test(priority = 2)
public void shouldExecuteAlltests() {
public void shouldExecuteAllTests() {
// given
projectExplorer.openItemByPath(PATH_TO_ANOTHER_TEST_CLASS);