Author: ldimaggio
Date: 2012-10-08 13:14:22 -0400 (Mon, 08 Oct 2012)
New Revision: 44361
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/ExampleTest.java
Log:
More debugging for failures on Mac/Jenkins
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/ExampleTest.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/ExampleTest.java 2012-10-08
15:12:45 UTC (rev 44360)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/ExampleTest.java 2012-10-08
17:14:22 UTC (rev 44361)
@@ -130,17 +130,19 @@
SWTBotShell shell = bot.shell("Downloading...");
shell.activate();
+ log.info("wait until shell closes");
bot.waitUntil(shellCloses(shell),Timing.time(projSize*20*1000));
+ log.info("wait for ignored jobs");
util.waitForNonIgnoredJobs(Timing.time20S());
/* ldimaggi - Oct 8, 2012 */
- if ( (SWTJBTExt.isRunningOnMacOs()) &&
(configuredState.getServer().type.equals("SOA")) ){
- log.info("Running on a MAC - need to set wait for New Project Example
shell");
- bot.sleep(30000l);
- }
-
+ try {
bot.waitForShell("New Project Example");
bot.shell("New Project
Example").bot().button(IDELabel.Button.FINISH).click();
+ }
+ catch (Exception E) {
+ log.error("Cannot find New Project Example dialog" + E.getMessage());
+ }
bot.sleep(Timing.time5S());
/* Temporary fix needed by -
https://issues.jboss.org/browse/JBIDE-11781