[jbosstools-commits] JBoss Tools SVN: r41668 - 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
Mon Jun 4 05:43:31 EDT 2012
Author: ljelinko
Date: 2012-06-04 05:43:31 -0400 (Mon, 04 Jun 2012)
New Revision: 41668
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTJBTExt.java
Log:
Close the welcome screen on test startup (due to Juno)
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-06-04 04:13:59 UTC (rev 41667)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTJBTExt.java 2012-06-04 09:43:31 UTC (rev 41668)
@@ -31,9 +31,10 @@
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
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.logging.WidgetsLogger;
import org.jboss.tools.ui.bot.ext.types.IDELabel;
+import org.jboss.tools.ui.bot.ext.types.IDELabel.PreferencesDialog;
import org.jboss.tools.ui.bot.ext.types.ViewType;
-import org.jboss.tools.ui.bot.ext.types.IDELabel.PreferencesDialog;
import org.osgi.framework.Version;
/**
* Provides JBoss Tools common operations based on SWTBot element operations
@@ -557,6 +558,12 @@
} catch (WidgetNotFoundException wnfe){
// do nothing there is no Atlassian Connector installed
}
+
+ try {
+ bot.cTabItem("Welcome").close();
+ } catch (WidgetNotFoundException e){
+ // ok, Welcome screen not present
+ }
}
/**
* Closes JBoss Tools / JBoss Developer Studio Report Usage Window
More information about the jbosstools-commits
mailing list