Author: jpeterka
Date: 2011-05-31 06:08:02 -0400 (Tue, 31 May 2011)
New Revision: 31673
Modified:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/ConsoleTest.java
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testsuite/HibernateTest.java
Log:
[hb-bot-test] fixed hibernate console db expansion
Modified:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/ConsoleTest.java
===================================================================
---
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/ConsoleTest.java 2011-05-31
09:49:47 UTC (rev 31672)
+++
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/ConsoleTest.java 2011-05-31
10:08:02 UTC (rev 31673)
@@ -160,9 +160,13 @@
private void expandDatabaseInConsole() {
SWTBot viewBot =
open.viewOpen(ActionItem.View.HibernateHibernateConfigurations.LABEL).bot();
SWTBotTreeItem console = viewBot.tree().expandNode(Project.PROJECT_NAME);
- bot.sleep(TIME_500MS);
+ bot.sleep(TIME_1S);
+ // Workaround cause node can't be expanded
SWTBotTreeItem db = console.expandNode("Database").select();
- bot.sleep(TIME_500MS);
+ bot.sleep(TIME_1S);
+ db.contextMenu("Refresh").click();
+ bot.sleep(TIME_1S);
+ db.expand();
SWTBotTreeItem pub = null;
try {
pub = db.expandNode("public").select();
Modified:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testsuite/HibernateTest.java
===================================================================
---
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testsuite/HibernateTest.java 2011-05-31
09:49:47 UTC (rev 31672)
+++
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testsuite/HibernateTest.java 2011-05-31
10:08:02 UTC (rev 31673)
@@ -46,7 +46,6 @@
@BeforeClass
public static void prepare() {
log.info("Hibernate All Test Started");
- jbt.closeReportUsageWindowIfOpened(true);
util.waitForNonIgnoredJobs();
}
Show replies by date