Author: psuchy
Date: 2012-10-08 05:40:38 -0400 (Mon, 08 Oct 2012)
New Revision: 44355
Modified:
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/detector/server/epp5/DetectEPP5.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
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/template/OperateServerTemplate.java
Log:
Test debugging on jenkins (windows)
Modified:
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/detector/server/epp5/DetectEPP5.java
===================================================================
---
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/detector/server/epp5/DetectEPP5.java 2012-10-06
20:03:34 UTC (rev 44354)
+++
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/detector/server/epp5/DetectEPP5.java 2012-10-08
09:40:38 UTC (rev 44355)
@@ -27,7 +27,7 @@
Runtime seam = new Runtime();
seam.setName("seam");
seam.setType("SEAM");
- seam.setVersion("2.2.4.EAP5");
+ seam.setVersion("2.2.5.EAP5");
seam.setLocation(RuntimeProperties.getInstance().getRuntimePath(getPathID()) +
"/seam");
return Arrays.asList(server, seam);
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-06
20:03:34 UTC (rev 44354)
+++
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-08
09:40:38 UTC (rev 44355)
@@ -1,17 +1,23 @@
package org.jboss.tools.runtime.as.ui.bot.test.dialog.preferences;
import java.awt.AWTException;
+import java.awt.Dimension;
+import java.awt.MouseInfo;
import java.awt.Robot;
+import java.awt.Toolkit;
+import java.awt.Window;
import java.awt.event.KeyEvent;
+import java.awt.event.MouseEvent;
import java.util.ArrayList;
import java.util.List;
-
import org.jboss.reddeer.eclipse.jface.preference.PreferencePage;
import org.jboss.reddeer.swt.api.Table;
import org.jboss.reddeer.swt.impl.button.PushButton;
import org.jboss.reddeer.swt.impl.table.DefaultTable;
import org.jboss.tools.runtime.as.ui.bot.test.entity.Runtime;
+import sun.awt.X11.Screen;
+
public class SeamPreferencesDialog extends PreferencePage {
public SeamPreferencesDialog(){
@@ -44,6 +50,11 @@
try {
Robot robot = new Robot();
robot.setAutoWaitForIdle(true);
+ 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) {
Modified:
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/template/OperateServerTemplate.java
===================================================================
---
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/template/OperateServerTemplate.java 2012-10-06
20:03:34 UTC (rev 44354)
+++
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/template/OperateServerTemplate.java 2012-10-08
09:40:38 UTC (rev 44355)
@@ -58,7 +58,7 @@
protected void assertNoException(String message) {
ConsoleView console = new ConsoleView();
- assertThat(message, console.getConsoleText(),
not(containsString("Exception")));
+ assertThat(message, console.getConsoleText(), not(containsString("Exception in
thread")));
}
protected void assertServerState(String message, String state) {
Show replies by date