[jbosstools-commits] JBoss Tools SVN: r43287 - in trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test: tutorial and 1 other directory.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed Aug 29 05:41:16 EDT 2012


Author: jjankovi
Date: 2012-08-29 05:41:16 -0400 (Wed, 29 Aug 2012)
New Revision: 43287

Modified:
   trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/smoke/RunStrutsProjectOnServer.java
   trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/tutorial/TutorialTest.java
Log:
added known issue messages

Modified: trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/smoke/RunStrutsProjectOnServer.java
===================================================================
--- trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/smoke/RunStrutsProjectOnServer.java	2012-08-29 09:01:54 UTC (rev 43286)
+++ trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/smoke/RunStrutsProjectOnServer.java	2012-08-29 09:41:16 UTC (rev 43287)
@@ -48,7 +48,8 @@
 		swtJbtExt.stopApplicationServer(0);
 		swtJbtExt.removeProjectFromServers(StrutsAllBotTests.STRUTS_PROJECT_NAME);
 		SWTJBTExt.deleteApplicationServer(bot, 0);
-		assertTrue("Displayed HTML page has wrong content",
+		assertTrue("Displayed HTML page has wrong content. Application was not" +
+				" deployed by struts tools - known issue JBIDE-11306",
 				(browserText != null)
 					&& (browserText.indexOf("<TITLE>KickStart: Input name</TITLE>") > -1));
 	}

Modified: trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/tutorial/TutorialTest.java
===================================================================
--- trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/tutorial/TutorialTest.java	2012-08-29 09:01:54 UTC (rev 43286)
+++ trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/tutorial/TutorialTest.java	2012-08-29 09:41:16 UTC (rev 43287)
@@ -31,6 +31,7 @@
 import org.eclipse.swtbot.eclipse.gef.finder.widgets.SWTBotGefContextMenu;
 import org.eclipse.swtbot.eclipse.gef.finder.widgets.SWTBotGefEditPart;
 import org.eclipse.swtbot.swt.finder.SWTBot;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
 import org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable;
 import org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher;
 import org.eclipse.swtbot.swt.finder.matchers.WidgetOfType;
@@ -332,12 +333,16 @@
         gui.save();
         util.waitForNonIgnoredJobs();
         new SWTBotGefContextMenu(gui.getControl(), "Run on Server").click();
-        SWTBotBrowserExt browser = new SWTBotExt().browserExt();
-        bot.sleep(7500);
-        browser.refresh();
-        bot.sleep(5000);
-        L.info(browser.getText());
-        Assert.assertTrue(browser.getText().contains("Input name:"));
+        try {
+        	SWTBotBrowserExt browser = new SWTBotExt().browserExt();
+        	 bot.sleep(7500);
+             browser.refresh();
+             bot.sleep(5000);
+             L.info(browser.getText());
+             Assert.assertTrue(browser.getText().contains("Input name:"));
+        } catch (WidgetNotFoundException wnfe) {
+        	fail("Warning dialog shows when deploying app - known issue JBIDE-11306");
+        }
     }
 
     private void validators() {



More information about the jbosstools-commits mailing list