From 4143c143347dfef7cff0affb1403e3ef6944376a Mon Sep 17 00:00:00 2001 From: Scott Kurz Date: Wed, 13 Sep 2023 16:57:05 -0700 Subject: [PATCH] find global; delete crap Signed-off-by: Scott Kurz --- .../test/it/LibertyPluginSWTBotMavenTest.java | 18 ++ .../LibertyPluginSWTBotMultiModMavenTest.java | 277 ------------------ .../it/ZLibertyPluginSWTBotGradleTest.java | 48 +++ .../test/it/utils/SWTBotPluginOperations.java | 3 +- 4 files changed, 68 insertions(+), 278 deletions(-) delete mode 100644 tests/src/main/java/io/openliberty/tools/eclipse/test/it/LibertyPluginSWTBotMultiModMavenTest.java diff --git a/tests/src/main/java/io/openliberty/tools/eclipse/test/it/LibertyPluginSWTBotMavenTest.java b/tests/src/main/java/io/openliberty/tools/eclipse/test/it/LibertyPluginSWTBotMavenTest.java index c92e1c88..3036dd5a 100644 --- a/tests/src/main/java/io/openliberty/tools/eclipse/test/it/LibertyPluginSWTBotMavenTest.java +++ b/tests/src/main/java/io/openliberty/tools/eclipse/test/it/LibertyPluginSWTBotMavenTest.java @@ -285,6 +285,7 @@ public static final void validateBeforeTestRun() { * Tests the start with parameters menu action on a dashboard listed application. */ @Test + @Disabled public void testLibertyConfigurationTabsExist() { Shell configShell = launchRunConfigurationsDialogFromAppRunAs(MVN_APP_NAME); @@ -302,6 +303,7 @@ public void testLibertyConfigurationTabsExist() { @Test @DisabledOnMac + @Disabled public void testMavenCommandAssembly() throws IOException, InterruptedException, CommandNotFoundException { IProject iProject = LibertyPluginTestUtils.getProject(MVN_APP_NAME); @@ -315,6 +317,7 @@ public void testMavenCommandAssembly() throws IOException, InterruptedException, } @Test + @Disabled public void testMavenWrapperCommandAssembly() throws IOException, InterruptedException, CommandNotFoundException { IProject iProject = LibertyPluginTestUtils.getProject(MVN_WRAPPER_APP_NAME); String projPath = iProject.getLocation().toOSString(); @@ -328,6 +331,7 @@ public void testMavenWrapperCommandAssembly() throws IOException, InterruptedExc * Tests the start menu action on a dashboard listed application. */ @Test + @Disabled public void testDashboardStartActionWithWrapper() { // Start dev mode. @@ -353,6 +357,7 @@ public void testDashboardStartActionWithWrapper() { * Tests the start menu action on a dashboard listed application. */ @Test + @Disabled public void testDashboardStartAction() { // Start dev mode. launchDashboardAction(MVN_APP_NAME, DashboardView.APP_MENU_ACTION_START); @@ -379,6 +384,7 @@ public void testDashboardStartAction() { * @throws InterruptedException */ @Test + @Disabled public void testDashboardStopExternalServer() throws CommandNotFoundException, IOException, InterruptedException { Path projAbsolutePath = wrapperProjectPath.toAbsolutePath(); @@ -411,6 +417,7 @@ public void testDashboardStopExternalServer() throws CommandNotFoundException, I * Tests the start menu action on a dashboard listed application. */ @Test + @Disabled public void testDashboardDebugAction() { // Start dev mode. launchDashboardAction(MVN_APP_NAME, DashboardView.APP_MENU_ACTION_DEBUG); @@ -433,6 +440,7 @@ public void testDashboardDebugAction() { * Tests the start with parameters menu action on a dashboard listed application. */ @Test + @Disabled public void testDashboardStartWithCustomConfigAction() { // Delete any previously created configs. @@ -508,6 +516,7 @@ public void testDashboardDebugWithCustomConfigAction() { * Tests the start, run tests, view test report, and stop dashboard actions. */ @Test + @Disabled public void testDashboardActions() { // Delete the test report files before we start this test. @@ -557,6 +566,7 @@ public void testDashboardActions() { * Run. */ @Test + @Disabled public void testStartWithDefaultRunAsConfig() { deleteLibertyToolsRunConfigEntriesFromAppRunAs(MVN_APP_NAME); @@ -584,6 +594,7 @@ public void testStartWithDefaultRunAsConfig() { * -> Run. */ @Test + @Disabled public void testStartWithCustomRunAsConfig() { // Delete any previously created configs. deleteLibertyToolsRunConfigEntriesFromAppRunAs(MVN_APP_NAME); @@ -616,6 +627,7 @@ public void testStartWithCustomRunAsConfig() { * Tests the start, run tests, view IT report, view UT report, and stop run as shortcut actions. */ @Test + @Disabled public void testRunAsShortcutActions() { // Delete any previously created configs. @@ -668,6 +680,7 @@ public void testRunAsShortcutActions() { * (customized) -> Run. */ @Test + @Disabled public void testStartWithCustomDebugAsConfig() { deleteLibertyToolsRunConfigEntriesFromAppRunAs(MVN_APP_NAME); @@ -716,6 +729,7 @@ public void testStartWithCustomDebugAsConfig() { * Tests the start/stop debug as shortcut actions. */ @Test + @Disabled public void testStartWithDebugAsShortcut() { // Delete any previously created configs. @@ -768,6 +782,7 @@ public void testStartWithNoWrapperAndNoPreferencesSet() { @Test @DisabledOnMac + @Disabled public void testStartWithWrapperAndNoPreferencesSet() { unsetBuildCmdPathInPreferences(bot, "Maven"); @@ -804,6 +819,7 @@ public void testStartWithWrapperAndNoPreferencesSet() { @Test @DisabledOnMac + @Disabled public void testStartWithNoWrapperAndPreferencesSet() { // verify no wrapper present @@ -838,6 +854,7 @@ public void testStartWithNoWrapperAndPreferencesSet() { * configuration JRE tab. */ @Test + @Disabled public void testDefaultJRECompliance() { // Delete any previously created configs. deleteLibertyToolsRunConfigEntriesFromAppRunAs(MVN_APP_NAME); @@ -873,6 +890,7 @@ public void testDefaultJRECompliance() { * @throws Exception */ @Test + @Disabled public void testAddingProjectToDashboardManually() throws Exception { IProject iProject = LibertyPluginTestUtils.getProject(NON_DFLT_NAME); diff --git a/tests/src/main/java/io/openliberty/tools/eclipse/test/it/LibertyPluginSWTBotMultiModMavenTest.java b/tests/src/main/java/io/openliberty/tools/eclipse/test/it/LibertyPluginSWTBotMultiModMavenTest.java deleted file mode 100644 index be04e77f..00000000 --- a/tests/src/main/java/io/openliberty/tools/eclipse/test/it/LibertyPluginSWTBotMultiModMavenTest.java +++ /dev/null @@ -1,277 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2022, 2023 IBM Corporation and others. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - * - * Contributors: - * IBM Corporation - initial implementation - *******************************************************************************/ -package io.openliberty.tools.eclipse.test.it; - -import static io.openliberty.tools.eclipse.test.it.utils.MagicWidgetFinder.go; -import static io.openliberty.tools.eclipse.test.it.utils.SWTBotPluginOperations.deleteLibertyToolsRunConfigEntriesFromAppRunAs; -import static io.openliberty.tools.eclipse.test.it.utils.SWTBotPluginOperations.getDashboardContent; -import static io.openliberty.tools.eclipse.test.it.utils.SWTBotPluginOperations.getDashboardItemMenuActions; -import static io.openliberty.tools.eclipse.test.it.utils.SWTBotPluginOperations.getLibertyTreeItem; -import static io.openliberty.tools.eclipse.test.it.utils.SWTBotPluginOperations.launchDebugConfigurationsDialogFromAppRunAs; -import static io.openliberty.tools.eclipse.test.it.utils.SWTBotPluginOperations.launchRunConfigurationsDialogFromAppRunAs; -import static io.openliberty.tools.eclipse.test.it.utils.SWTBotPluginOperations.launchStartWithDefaultRunConfigFromAppRunAs; -import static io.openliberty.tools.eclipse.test.it.utils.SWTBotPluginOperations.launchStopWithRunAsShortcut; -import static io.openliberty.tools.eclipse.test.it.utils.SWTBotPluginOperations.pressWorkspaceErrorDialogProceedButton; -import static io.openliberty.tools.eclipse.test.it.utils.SWTBotPluginOperations.setBuildCmdPathInPreferences; -import static io.openliberty.tools.eclipse.test.it.utils.SWTBotPluginOperations.unsetBuildCmdPathInPreferences; - -import java.io.File; -import java.nio.file.Path; -import java.nio.file.Paths; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.swt.widgets.Shell; -import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView; -import org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu; -import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem; -import org.junit.jupiter.api.AfterAll; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.BeforeAll; -import org.junit.jupiter.api.MethodOrderer.MethodName; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.TestMethodOrder; - -import io.openliberty.tools.eclipse.test.it.utils.LibertyPluginTestUtils; -import io.openliberty.tools.eclipse.test.it.utils.SWTBotPluginOperations; -import io.openliberty.tools.eclipse.ui.dashboard.DashboardView; -import io.openliberty.tools.eclipse.ui.launch.LaunchConfigurationDelegateLauncher; - -/** - * Tests Open Liberty Eclipse plugin functions. - */ -@TestMethodOrder(MethodName.class) -public class LibertyPluginSWTBotMultiModMavenTest extends AbstractLibertyPluginSWTBotTest { - - /** - * Application name. - */ - static final String MVN_APP_NAME = "guide-maven-multimodules-pom"; - - /** - * Path to import from, in this case the multi-module root - */ - static final Path project1Path = Paths.get("resources", "applications", "maven", "maven-multi-module", "typeJ"); - static final Path serverModule1Path = project1Path.resolve("pom"); - - /** - * Expected menu items. - */ - static String[] mvnMenuItems = new String[] { DashboardView.APP_MENU_ACTION_START, DashboardView.APP_MENU_ACTION_START_CONFIG, - DashboardView.APP_MENU_ACTION_START_IN_CONTAINER, DashboardView.APP_MENU_ACTION_DEBUG, - DashboardView.APP_MENU_ACTION_DEBUG_CONFIG, DashboardView.APP_MENU_ACTION_DEBUG_IN_CONTAINER, - DashboardView.APP_MENU_ACTION_STOP, DashboardView.APP_MENU_ACTION_RUN_TESTS, DashboardView.APP_MENU_ACTION_VIEW_MVN_IT_REPORT, - DashboardView.APP_MENU_ACTION_VIEW_MVN_UT_REPORT }; - - /** - * Run As configuration menu items. - */ - static String[] runAsShortcuts = new String[] { LaunchConfigurationDelegateLauncher.LAUNCH_SHORTCUT_START, - LaunchConfigurationDelegateLauncher.LAUNCH_SHORTCUT_START_CONTAINER, LaunchConfigurationDelegateLauncher.LAUNCH_SHORTCUT_STOP, - LaunchConfigurationDelegateLauncher.LAUNCH_SHORTCUT_RUN_TESTS, - LaunchConfigurationDelegateLauncher.LAUNCH_SHORTCUT_MVN_VIEW_IT_REPORT, - LaunchConfigurationDelegateLauncher.LAUNCH_SHORTCUT_MVN_VIEW_UT_REPORT, }; - - static File workspaceRoot = ResourcesPlugin.getWorkspace().getRoot().getLocation().toFile(); - - static List projectPaths = new ArrayList(); - - /** - * Setup. - */ - @BeforeAll - public static void setup() { - - commonSetup(); - - projectPaths.add(project1Path.resolve("pom").toString()); - projectPaths.add(project1Path.resolve("jar").toString()); - projectPaths.add(project1Path.resolve("war1").toString()); - projectPaths.add(project1Path.resolve("war2").toString()); - - // Could be an interesting variation to stop with the above, which would cause the execution to run - // in a single module context, since the aggregator POM wouldn't be present. The rest of the test class - // isn't factored now to complete this idea, so leaving this as an idea if we want to expand in this direction later. - projectPaths.add(project1Path.toString()); - - // Maybe redundant but we really want to cleanup. We really want to - // avoid wasting time debugging tricky differences in behavior because of a dirty re-run - for (String p : projectPaths) { - cleanupProject(p); - } - importMavenProjects(workspaceRoot, projectPaths); - - // Check basic plugin artifacts are functioning before running tests. - validateBeforeTestRun(); - } - - @AfterAll - public static void cleanup() { - for (String p : projectPaths) { - cleanupProject(p); - } - } - - /** - * Makes sure that some basics actions can be performed before running the tests: - * - *
-     * 1. The dashboard can be opened and its content retrieved. 
-     * 2. The dashboard contains the expected applications. 
-     * 3. The dashboard menu associated with a selected application contains the required actions. 
-     * 4. The Run As menu for the respective application contains the required shortcut actions. 
-     * 5. The Run As configuration view contains the Liberty entry for creating a configuration.
-     * 6. The Debug As configuration view contains the Liberty entry for creating a configuration.
-     * 
- */ - public static final void validateBeforeTestRun() { - - // Give the app some time to be imported (especially on Windows GHA runs) - try { - Thread.sleep(Integer.parseInt(System.getProperty("io.liberty.tools.eclipse.tests.app.import.wait", "0"))); - } catch (InterruptedException e) { - e.printStackTrace(); - } - - // Check that the dashboard can be opened and its content retrieved. - List projectList = getDashboardContent(); - - // Check that dashboard contains the expected applications. - boolean foundApp = false; - for (String project : projectList) { - if (MVN_APP_NAME.equals(project)) { - foundApp = true; - break; - } - } - Assertions.assertTrue(foundApp, () -> "The dashboard does not contain expected application: " + MVN_APP_NAME); - - // Check that the menu that the application in the dashboard contains the required actions. - List menuItems = getDashboardItemMenuActions(MVN_APP_NAME); - Assertions.assertTrue(menuItems.size() == mvnMenuItems.length, - () -> "Maven application " + MVN_APP_NAME + " does not contain the expected number of menu items: " + mvnMenuItems.length); - Assertions.assertTrue(menuItems.containsAll(Arrays.asList(mvnMenuItems)), - () -> "Maven application " + MVN_APP_NAME + " does not contain the expected menu items: " + mvnMenuItems); - - // Check that the Run As menu contains the expected shortcut - SWTBotMenu runAsMenu = SWTBotPluginOperations.getAppRunAsMenu(bot, MVN_APP_NAME); - Assertions.assertTrue(runAsMenu != null, "The runAs menu associated with project: " + MVN_APP_NAME + " is null."); - List runAsMenuItems = runAsMenu.menuItems(); - Assertions.assertTrue(runAsMenuItems != null && !runAsMenuItems.isEmpty(), - "The runAs menu associated with project: " + MVN_APP_NAME + " is null or empty."); - int foundItems = 0; - - for (String expectedItem : runAsShortcuts) { - for (String item : runAsMenuItems) { - if (item.contains(expectedItem)) { - foundItems++; - break; - } - } - } - - Assertions.assertTrue(foundItems == runAsShortcuts.length, - "The runAs menu associated with project: " + MVN_APP_NAME - + " does not contain one or more expected entries. Expected number of entries: " + runAsShortcuts.length - + "Found entry count: " + foundItems + ". Found menu entries: " + runAsMenuItems); - - // Check that the Run As -> Run Configurations... contains the Liberty entry in the menu. - Shell configShell = launchRunConfigurationsDialogFromAppRunAs(MVN_APP_NAME); - SWTBotTreeItem runAslibertyToolsEntry = getLibertyTreeItem(configShell); - Assertions.assertTrue(runAslibertyToolsEntry != null, "Liberty entry in Run Configurations view was not found."); - go("Close", configShell); - - // Check that the Debug As -> Debug Configurations... contains the Liberty entry in the menu. - Shell debugShell = launchDebugConfigurationsDialogFromAppRunAs(MVN_APP_NAME); - SWTBotTreeItem debugAslibertyToolsEntry = getLibertyTreeItem(debugShell); - Assertions.assertTrue(debugAslibertyToolsEntry != null, "Liberty entry in Debug Configurations view was not found."); - go("Close", debugShell); - } - - /** - * Tests the start menu action on a dashboard listed application. - */ - @Test - public void testDashboardStartAction() { - - // set the preferences - SWTBotPluginOperations.setBuildCmdPathInPreferences(bot, "Maven"); - - // Start dev mode. - SWTBotPluginOperations.launchDashboardAction(MVN_APP_NAME, DashboardView.APP_MENU_ACTION_START); - SWTBotView terminal = bot.viewByTitle("Terminal"); - terminal.show(); - - LibertyPluginTestUtils.validateApplicationOutcomeCustom("http://localhost:9080/converter1/heights.jsp?heightCm=10", true, - "Height in feet and inches", serverModule1Path + "/target/liberty"); - LibertyPluginTestUtils.validateApplicationOutcomeCustom("http://localhost:9080/converter2/heights.jsp?heightCm=20", true, - "Height in feet and inches", serverModule1Path + "/target/liberty"); - - // If there are issues with the workspace, close the error dialog. - SWTBotPluginOperations.pressWorkspaceErrorDialogProceedButton(bot); - - // Stop dev mode. - SWTBotPluginOperations.launchDashboardAction(MVN_APP_NAME, DashboardView.APP_MENU_ACTION_STOP); - terminal.show(); - - // Validate application stopped. - LibertyPluginTestUtils.validateLibertyServerStopped(serverModule1Path + "/target/liberty"); - - // unset the preferences - SWTBotPluginOperations.unsetBuildCmdPathInPreferences(bot, "Maven"); - - // Close the terminal. - terminal.close(); - } - - /** - * Tests the start action initiated through: project -> Run As -> Run Configurations -> Liberty -> New configuration (default) -> - * Run. - */ - @Test - public void testStartWithDefaultRunAsConfig() { - - // set the preferences - setBuildCmdPathInPreferences(bot, "Maven"); - - // Delete any previously created configs. - deleteLibertyToolsRunConfigEntriesFromAppRunAs(MVN_APP_NAME); - - // Start dev mode. - launchStartWithDefaultRunConfigFromAppRunAs(MVN_APP_NAME); - SWTBotView terminal = bot.viewByTitle("Terminal"); - terminal.show(); - - // Validate application is up and running. - LibertyPluginTestUtils.validateApplicationOutcomeCustom("http://localhost:9080/converter1/heights.jsp?heightCm=30", true, - "Height in feet and inches", serverModule1Path + "/target/liberty"); - - // If there are issues with the workspace, close the error dialog. - pressWorkspaceErrorDialogProceedButton(bot); - - // Stop dev mode. - launchStopWithRunAsShortcut(MVN_APP_NAME); - terminal.show(); - - // Validate application stopped. - LibertyPluginTestUtils.validateLibertyServerStopped(serverModule1Path + "/target/liberty"); - - // unset the preferences - unsetBuildCmdPathInPreferences(bot, "Maven"); - - // Close the terminal. - terminal.close(); - } -} diff --git a/tests/src/main/java/io/openliberty/tools/eclipse/test/it/ZLibertyPluginSWTBotGradleTest.java b/tests/src/main/java/io/openliberty/tools/eclipse/test/it/ZLibertyPluginSWTBotGradleTest.java index 06a14cf4..b5e12482 100644 --- a/tests/src/main/java/io/openliberty/tools/eclipse/test/it/ZLibertyPluginSWTBotGradleTest.java +++ b/tests/src/main/java/io/openliberty/tools/eclipse/test/it/ZLibertyPluginSWTBotGradleTest.java @@ -287,6 +287,7 @@ public static final void validateBeforeTestRun() { * Tests the start menu action on a dashboard listed application. */ @Test + @Disabled public void testDashboardStartAction() { // Start dev mode. @@ -315,6 +316,7 @@ public void testDashboardStartAction() { * Tests the debug menu action on a dashboard listed application. */ @Test + @Disabled public void testDashboardDebugAction() { // Start dev mode. @@ -347,6 +349,7 @@ public void testDashboardDebugAction() { * @throws InterruptedException */ @Test + @Disabled public void testDashboardStopExternalServer() throws CommandNotFoundException, IOException, InterruptedException { Path wrapperProject = Paths.get("resources", "applications", "gradle", GRADLE_WRAPPER_APP_NAME).toAbsolutePath(); @@ -377,6 +380,7 @@ public void testDashboardStopExternalServer() throws CommandNotFoundException, I * Tests the start with parameters menu action on a dashboard listed application. */ @Test + @Disabled public void testDashboardStartWithCustomConfigAction() { // Delete any previously created configs. @@ -410,6 +414,43 @@ public void testDashboardStartWithCustomConfigAction() { } } + + @Test + public void testDashboardDebugWithCustomConfigAction2() { + + // Delete any previously created configs. + deleteLibertyToolsRunConfigEntriesFromAppRunAs(GRADLE_APP_NAME); + + // Delete the test report files before we start this test. + Path projectPath = Paths.get("resources", "applications", "gradle", "liberty-gradle-test-app"); + Path pathToTestReport = DevModeOperations.getGradleTestReportPath(projectPath.toString()); + boolean testReportDeleted = LibertyPluginTestUtils.deleteFile(pathToTestReport.toFile()); + Assertions.assertTrue(testReportDeleted, () -> "File: " + pathToTestReport + " was not deleted."); + + launchCustomDebugFromDashboard(GRADLE_APP_NAME, "--hotTests"); + + goGlobal("Terminal"); + + // Validate application is up and running. + LibertyPluginTestUtils.validateApplicationOutcome(GRADLE_APP_NAME, true, testAppPath + "/build"); + + // If there are issues with the workspace, close the error dialog. + pressWorkspaceErrorDialogProceedButton(bot); + + try { + // Validate that the test reports were generated. + LibertyPluginTestUtils.validateTestReportExists(pathToTestReport); + } finally { + // Stop dev mode. + launchDashboardAction(GRADLE_APP_NAME, DashboardView.APP_MENU_ACTION_STOP); + + // Validate application stopped. + LibertyPluginTestUtils.validateLibertyServerStopped(testAppPath + "/build"); + } + } + + + /** * Tests the debug with parameters menu action on a dashboard listed application. */ @@ -451,6 +492,7 @@ public void testDashboardDebugWithCustomConfigAction() { * Tests the start, run tests, view test report, and stopdashboard actions. */ @Test + @Disabled public void testDashboardActions() { // Delete the test report files before we start this test. @@ -583,6 +625,7 @@ public void testAddingProjectToDashboardManually() throws Exception { * Run. */ @Test + @Disabled public void testStartWithDefaultRunAsConfig() { // Delete any previously created configs. @@ -610,6 +653,7 @@ public void testStartWithDefaultRunAsConfig() { * -> Run. */ @Test + @Disabled public void testStartWithCustomRunAsConfig() { // Delete any previously created configs. @@ -647,6 +691,7 @@ public void testStartWithCustomRunAsConfig() { * Tests the start, run tests, view test report, and stop run as shortcut actions. */ @Test + @Disabled public void testRunAsShortcutActions() { // Delete any previously created configs. @@ -696,6 +741,7 @@ public void testRunAsShortcutActions() { * (customized) -> Run. */ @Test + @Disabled public void testStartWithCustomDebugAsConfig() { // Delete any previously created configs. deleteLibertyToolsRunConfigEntriesFromAppRunAs(GRADLE_APP_NAME); @@ -736,6 +782,7 @@ public void testStartWithCustomDebugAsConfig() { * Tests the start/stop debug as shortcut actions. */ @Test + @Disabled public void testStartWithDebugAsShortcut() { deleteLibertyToolsRunConfigEntriesFromAppRunAs(GRADLE_APP_NAME); @@ -765,6 +812,7 @@ public void testStartWithDebugAsShortcut() { * configuration JRE tab. */ @Test + @Disabled public void testDefaultJRECompliance() { // Delete any previously created configs. deleteLibertyToolsRunConfigEntriesFromAppRunAs(GRADLE_APP_NAME); diff --git a/tests/src/main/java/io/openliberty/tools/eclipse/test/it/utils/SWTBotPluginOperations.java b/tests/src/main/java/io/openliberty/tools/eclipse/test/it/utils/SWTBotPluginOperations.java index 5a765f68..97d4f56c 100644 --- a/tests/src/main/java/io/openliberty/tools/eclipse/test/it/utils/SWTBotPluginOperations.java +++ b/tests/src/main/java/io/openliberty/tools/eclipse/test/it/utils/SWTBotPluginOperations.java @@ -552,7 +552,8 @@ public void run() { // Object parmLabel = find("Start parameters:", parentTreeStatic, Option.factory().widgetClass(Label.class).setExtraLogging(true).build()); // Control parmText = ControlFinder.findControlInRange(parmLabel, Text.class, Direction.EAST); - Object parmText = find("Example: -DhotTests=true", parentTreeStatic, Option.factory().widgetClass(Text.class).setExtraLogging(true).setUnrestrictedSearch(true).build()); + //Object parmText = find("Example: -DhotTests=true", parentTreeStatic, Option.factory().widgetClass(Text.class).setExtraLogging(true).setUnrestrictedSearch(true).build()); + Object parmText = findGlobal("Example: -DhotTests=true", Option.factory().widgetClass(Text.class).setExtraLogging(true).setUnrestrictedSearch(true).build()); set(parmText, customParms); }