[jbosstools-commits] JBoss Tools SVN: r43037 - trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed Aug 15 04:20:20 EDT 2012


Author: rhopp
Date: 2012-08-15 04:20:19 -0400 (Wed, 15 Aug 2012)
New Revision: 43037

Modified:
   trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTJBTExt.java
Log:
Jenkins debugging

Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTJBTExt.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTJBTExt.java	2012-08-15 03:23:47 UTC (rev 43036)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTJBTExt.java	2012-08-15 08:20:19 UTC (rev 43037)
@@ -29,6 +29,7 @@
 import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable;
 import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
 import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
+import org.eclipse.swtbot.swt.finder.widgets.TimeoutException;
 import org.jboss.tools.ui.bot.ext.gen.ActionItem;
 import org.jboss.tools.ui.bot.ext.helper.ContextMenuHelper;
 import org.jboss.tools.ui.bot.ext.types.IDELabel;
@@ -563,6 +564,9 @@
     } catch (WidgetNotFoundException e){
     	// ok, Welcome screen not present
     	log.info("Welcome window not present");
+    } catch (TimeoutException e){ //hack by rhopp to make tests work on windows
+    	//probably no perspective open. Try to open Java perspective anyway 
+    	SWTBotFactory.getOpen().perspective(ActionItem.Perspective.JAVA.LABEL);
     }
   }
 	/**



More information about the jbosstools-commits mailing list