Author: jpeterka
Date: 2010-04-14 10:15:36 -0400 (Wed, 14 Apr 2010)
New Revision: 21470
Modified:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/ConsolePerspectiveTest.java
Log:
Initial OpenPerspectiveElement test added
Modified:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/ConsolePerspectiveTest.java
===================================================================
---
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/ConsolePerspectiveTest.java 2010-04-14
14:08:07 UTC (rev 21469)
+++
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/ConsolePerspectiveTest.java 2010-04-14
14:15:36 UTC (rev 21470)
@@ -12,6 +12,7 @@
import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
import org.jboss.tools.hibernate.ui.bot.testsuite.HibernateTest;
+import org.jboss.tools.ui.bot.ext.gen.ActionItem;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -19,11 +20,21 @@
public class ConsolePerspectiveTest extends HibernateTest {
/**
- * TC 17
+ * TC 17 - Check presence of basic hibernate views
*/
@Test
public void openPerspectiveElements() {
-
+ bot.viewByTitle("Welcome").close();
+
+ open.perspective(ActionItem.Perspective.HIBERNATE.LABEL);
+ bot.sleep(TIME_1S);
+
+ open.viewOpen(ActionItem.View.HibernateHibernateConfigurations.LABEL);
+ bot.sleep(TIME_1S);
+ open.viewOpen(ActionItem.View.HibernateHibernateDynamicSQLPreview.LABEL);
+ bot.sleep(TIME_1S);
+ open.viewOpen(ActionItem.View.HibernateHibernateQueryResult.LABEL);
+ bot.sleep(TIME_1S);
}
}