Author: psuchy
Date: 2012-10-10 04:08:50 -0400 (Wed, 10 Oct 2012)
New Revision: 44398
Modified:
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/RuntimeDetectionPreferencesDialog.java
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/SeamPreferencesDialog.java
Log:
Test debugging on jenkins (MacOS)
Modified:
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/RuntimeDetectionPreferencesDialog.java
===================================================================
---
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/RuntimeDetectionPreferencesDialog.java 2012-10-10
07:26:58 UTC (rev 44397)
+++
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/RuntimeDetectionPreferencesDialog.java 2012-10-10
08:08:50 UTC (rev 44398)
@@ -31,6 +31,7 @@
RuntimeUIActivator.getDefault().getModel().addRuntimePath(new RuntimePath(path));
cancel();
+ new WaitWhile(new JobIsRunning());
open();
return new SearchingForRuntimesDialog();
}
Modified:
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/SeamPreferencesDialog.java
===================================================================
---
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/SeamPreferencesDialog.java 2012-10-10
07:26:58 UTC (rev 44397)
+++
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/SeamPreferencesDialog.java 2012-10-10
08:08:50 UTC (rev 44398)
@@ -56,11 +56,14 @@
try {
Robot robot = new Robot();
robot.setAutoWaitForIdle(true);
+
+ //↓ Windows loses focus on native dialog - using mouse click
Toolkit tools = Toolkit.getDefaultToolkit();
Dimension dim = tools.getScreenSize();
robot.mouseMove(((int)dim.getWidth())/2,((int)dim.getHeight()/2 - 60));
robot.mousePress(MouseEvent.BUTTON1_MASK);
robot.mouseRelease(MouseEvent.BUTTON1_MASK);
+
robot.keyPress(KeyEvent.VK_ENTER);
robot.keyRelease(KeyEvent.VK_ENTER);
} catch (AWTException e) {
Show replies by date