[jbosstools-commits] JBoss Tools SVN: r44155 - trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Sat Sep 29 16:52:11 EDT 2012


Author: ldimaggio
Date: 2012-09-29 16:52:10 -0400 (Sat, 29 Sep 2012)
New Revision: 44155

Modified:
   trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/ExampleTest.java
Log:
Added try/catch block for finding Downloading dialog - this is failing on Mac/Jenkins slaves */



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-09-29 08:53:56 UTC (rev 44154)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/ExampleTest.java	2012-09-29 20:52:10 UTC (rev 44155)
@@ -93,9 +93,11 @@
 			bot.sleep(30000l);
 			bot.shell("Java - Eclipse Platform").activate();
 			bot.shell("Java - Eclipse Platform").setFocus();
+			log.info("Running on a MAC");
 		}
 		
 		SWTBot wiz = open.newObject(JBossToolsProjectExamples.LABEL);
+		log.info("new object opened");
 		// wait for progress shell (downloading & parsing example xml)
 		bot.waitWhile(shellIsActive("Progress Information"), Timing.time100S());
 		try {
@@ -116,7 +118,14 @@
 		//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();
-		SWTBotShell shell = bot.shell("Downloading...");
+		/* ldimaggi - added try/catch block as this is failing on Mac/Jenkins */
+		SWTBotShell shell = null;
+		try {
+			shell = bot.shell("Downloading...");
+		}
+		catch (Exception E) {
+			log.error("Could not find the Downloading... shell " + E.getMessage());
+		}
 		shell.activate();
 		bot.waitUntil(shellCloses(shell),Timing.time(projSize*20*1000));
 		util.waitForNonIgnoredJobs(Timing.time20S());



More information about the jbosstools-commits mailing list