Author: jpeterka
Date: 2012-03-19 16:09:26 -0400 (Mon, 19 Mar 2012)
New Revision: 39638
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ImportHelper.java
Log:
Increased default timeout for import project
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ImportHelper.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ImportHelper.java 2012-03-19
20:08:11 UTC (rev 39637)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ImportHelper.java 2012-03-19
20:09:26 UTC (rev 39638)
@@ -1,6 +1,9 @@
package org.jboss.tools.ui.bot.ext.helper;
+import static org.eclipse.swtbot.swt.finder.waits.Conditions.shellCloses;
+
import org.eclipse.swtbot.swt.finder.SWTBot;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
import org.jboss.tools.ui.bot.ext.SWTBotExt;
import org.jboss.tools.ui.bot.ext.types.IDELabel;
@@ -13,6 +16,7 @@
* Import all projects from from given path to current workspace
*/
public static void importAllProjects(String path) {
+ int timeout = 100000; // 100s max timeout
SWTBotExt bot = new SWTBotExt();
bot.menu("File").menu("Import...").click();
@@ -25,6 +29,8 @@
dlgBot.radio(1).click();
dlgBot.radio(0).click();
dlgBot.button("Select All").click();
+ SWTBotShell s = dlgBot.activeShell();
dlgBot.button(IDELabel.Button.FINISH).click();
- }
+ bot.waitUntil(shellCloses(s),timeout);
+ }
}
Show replies by date