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

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Sep 28 23:04:25 EDT 2012


Author: ldimaggio
Date: 2012-09-28 23:04:25 -0400 (Fri, 28 Sep 2012)
New Revision: 44134

Modified:
   trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ConsoleView.java
Log:
Added more logging - seems to be a new flakey problem with console switching - added a new sleep too.



Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ConsoleView.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ConsoleView.java	2012-09-29 03:03:01 UTC (rev 44133)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ConsoleView.java	2012-09-29 03:04:25 UTC (rev 44134)
@@ -21,6 +21,7 @@
 import org.hamcrest.core.IsAnything;
 import org.jboss.tools.ui.bot.ext.SWTBotFactory;
 import org.jboss.tools.ui.bot.ext.SWTJBTExt;
+import org.jboss.tools.ui.bot.ext.Timing;
 import org.jboss.tools.ui.bot.ext.gen.ActionItem.View.GeneralConsole;
 import org.jboss.tools.ui.bot.ext.types.IDELabel;
 
@@ -88,6 +89,9 @@
 	 *            String contained in name of console to switch on
 	 */
 	public boolean switchConsole(String containedInonsoleName) {
+
+		log.info("Switching the console - switchConsole");
+		bot.sleep(Timing.time30S());
 		
 		/* 
 		 * ldimaggi - Aug 2012 - https://issues.jboss.org/browse/JBQA-6462
@@ -100,11 +104,13 @@
 
 				/* JBQA-7083 - needed to have console switch on Mac OS X */
 				if (SWTJBTExt.isRunningOnMacOs()) {
+					log.info("DEBUG - I am a MAC");
 					button.click();  // To switch the console
 				}
 				else {
+					log.info("DEBUG - I am not a MAC");
+					//button.click();  // To switch the console - is this no longer needed??
 					button.click();  // To switch the console
-					button.click();  // To switch the console
 				}
 				return true;
 			}



More information about the jbosstools-commits mailing list