Author: ldimaggio
Date: 2012-10-09 11:33:34 -0400 (Tue, 09 Oct 2012)
New Revision: 44382
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/ExampleTest.java
Log:
The downloading shell is not detected when running on Mac/Jekins - trapping the exception
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-09
15:12:20 UTC (rev 44381)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/ExampleTest.java 2012-10-09
15:33:34 UTC (rev 44382)
@@ -127,7 +127,7 @@
//assertTrue(String.format("Example project name changed, have '%s',
expected
'%s'",hasProjName,getProjectNames()[0]),hasProjName.equals(getProjectNames()[0]));
int projSize =
getProjectSize(wiz.textWithLabel(JBossToolsProjectExamples.TEXT_PROJECT_SIZE).getText());
wiz.button(IDELabel.Button.FINISH).click();
-
+
/* ldimaggi - debugging failures of SOA examples on Jenkins/Mac */
SWTBotShell shell = null;
log.info("Downloading the example");
@@ -135,22 +135,30 @@
shell = bot.shell("Downloading...");
}
catch (Exception E) {
- log.error("Could not find the Downloading... shell: " + E.getMessage());
+ log.error("Could not find the Downloading... shell: " + shell.getText() +
E.getMessage());
E.printStackTrace();
}
- log.info("Activate the downloading shell");
/* ldimaggi - debugging failures of SOA examples on Jenkins/Mac */
+ log.info("Activate the downloading shell");
try {
shell.activate();
}
catch (Exception E) {
- log.error("Could not activate shell: " + E.getMessage());
+ log.error("Could not activate shell: " + shell.getText() + E.getMessage());
E.printStackTrace();
}
+ /* ldimaggi - debugging failures of SOA examples on Jenkins/Mac */
log.info("wait until shell closes");
- bot.waitUntil(shellCloses(shell),Timing.time(projSize*20*1000));
+ try {
+ bot.waitUntil(shellCloses(shell),Timing.time(projSize*20*1000));;
+ }
+ catch (Exception E) {
+ log.error("Could not wait for shell to close: " + shell.getText() +
E.getMessage());
+ E.printStackTrace();
+ }
+
log.info("wait for ignored jobs");
util.waitForNonIgnoredJobs(Timing.time20S());
Show replies by date