Author: dgolovin
Date: 2010-01-12 19:54:52 -0500 (Tue, 12 Jan 2010)
New Revision: 19721
Modified:
trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/StrutsAllBotTests.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5604 Add Struts SWTBot tests to be run during JBT
Build Process
Check if "Welcome" view is opened before a try to close it. Build starts tests
without "Welcome" screen.
Modified:
trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/StrutsAllBotTests.java
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/StrutsAllBotTests.java 2010-01-13
00:45:25 UTC (rev 19720)
+++
trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/StrutsAllBotTests.java 2010-01-13
00:54:52 UTC (rev 19721)
@@ -35,7 +35,9 @@
@BeforeClass
public static void setUp() {
properties = util.loadProperties(Activator.PLUGIN_ID);
- eclipse.closeView(IDELabel.View.WELCOME);
+ if(eclipse.getBot().viewByTitle(IDELabel.View.WELCOME)!=null) {
+ eclipse.closeView(IDELabel.View.WELCOME);
+ }
}
@AfterClass