[jbosstools-commits] JBoss Tools SVN: r44110 - 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
Thu Sep 27 23:01:00 EDT 2012


Author: ldimaggio
Date: 2012-09-27 23:01:00 -0400 (Thu, 27 Sep 2012)
New Revision: 44110

Modified:
   trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/ExampleTest.java
Log:
Updated ExampleTest.java to deal with JBQA-7081 - Need to add this to deal with the extra UI window (un-named) that is opened for the SOA/ESB tests during the startup of an SOA-P server in eclipse/JBDS.


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-28 00:42:04 UTC (rev 44109)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/ExampleTest.java	2012-09-28 03:01:00 UTC (rev 44110)
@@ -80,6 +80,21 @@
 	}
 	
 	private SWTBot existsExample() {
+
+		/* ldimaggi - Sept 27, 2012 - JBQA-7081 - Need to add this to deal with the
+		 * extra UI window (un-named) that is opened for the SOA/ESB tests during the
+		 * startup of an SOA-P server in eclipse/JBDS.
+		 */
+//		SWTBotShell [] theShells = bot.shells();
+//		for (SWTBotShell s : theShells) {
+//			System.out.println ("DEBUG! " + s.getText());
+//		}
+		if ((SWTJBTExt.isRunningOnMacOs()) && (!bot.shell("Java - Eclipse Platform").isActive() )){
+			bot.sleep(30000l);
+			bot.shell("Java - Eclipse Platform").activate();
+			bot.shell("Java - Eclipse Platform").setFocus();
+		}
+		
 		SWTBot wiz = open.newObject(JBossToolsProjectExamples.LABEL);
 		// wait for progress shell (downloading & parsing example xml)
 		bot.waitWhile(shellIsActive("Progress Information"), Timing.time100S());



More information about the jbosstools-commits mailing list