[jbosstools-commits] JBoss Tools SVN: r41352 - trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu May 24 09:11:27 EDT 2012


Author: rhopp
Date: 2012-05-24 09:11:26 -0400 (Thu, 24 May 2012)
New Revision: 41352

Modified:
   trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CentralAllBotTests.java
   trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java
Log:
Cleanup and Turning of test of deploying examples

Modified: trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CentralAllBotTests.java
===================================================================
--- trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CentralAllBotTests.java	2012-05-24 11:59:16 UTC (rev 41351)
+++ trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CentralAllBotTests.java	2012-05-24 13:11:26 UTC (rev 41352)
@@ -7,7 +7,7 @@
 @RunWith(RequirementAwareSuite.class)
 @SuiteClasses({
 	BaseFunctionalityTest.class,
-	CreateProjectsWithServerTest.class,
+//	CreateProjectsWithServerTest.class,
 //	CreateProjectsWithoutServerTest.class
 	DocumentationSectionTest.class
 	//EmptyTestForHudson.class

Modified: trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java
===================================================================
--- trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java	2012-05-24 11:59:16 UTC (rev 41351)
+++ trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java	2012-05-24 13:11:26 UTC (rev 41352)
@@ -109,8 +109,6 @@
 	
 	@Test
 	public void createProjectsSectionTest(){
-		//waitForAWhile();
-//		SWTFormsBotExt formsBot = SWTBotFactory.getFormsBot();
 		//Dynamic web project
 		bot.hyperlink(IDELabel.JBossCentralEditor.DYNAMIC_WEB_PROJECT).click();
 		bot.waitForShell(IDELabel.JBossCentralEditor.NEW_DYNAMIC_WEB_PROJECT);
@@ -120,51 +118,13 @@
 		log.info(bot.activeShell().getText());
 		
 		//TODO will put back when IDELabel.JBossCentralEditor.OPENSHIFT_APP_WIZARD will be correct
-		/*bot.hyperlink(IDELabel.JBossCentralEditor.OPENSHIFT_APP).click();
+		bot.hyperlink(IDELabel.JBossCentralEditor.OPENSHIFT_APP).click();
 		bot.waitForShell(IDELabel.JBossCentralEditor.OPENSHIFT_APP_WIZARD);
 		bot.waitWhile(new NonSystemJobRunsCondition());
 		assertTrue("New OpenShift Express Application window should have appeared", bot.activeShell().getText().equals(IDELabel.JBossCentralEditor.OPENSHIFT_APP_WIZARD));
 		//assertTrue("New OpenShift Express Application window should have appeared", bot.shell(IDELabel.JBossCentralEditor.OPENSHIFT_APP_WIZARD).isActive());
-		bot.activeShell().close();*/
+		bot.activeShell().close();
 		
-		
-		//check Project example and detection of server
-//		formsBot.formTextWithText(IDELabel.JBossCentralEditor.JAVA_EE_WEB_PROJECT).click();
-//		//bot.hyperlink(IDELabel.JBossCentralEditor.JAVA_EE_WEB_PROJECT).click();
-//		SWTBotShell projectExampleShell = bot.waitForShell(IDELabel.JBossCentralEditor.PROJECT_EXAMPLE);
-//		assertTrue("Project Example window should have appeared", bot.shell(IDELabel.JBossCentralEditor.PROJECT_EXAMPLE).isActive());
-//		try{
-//			bot.clickButton("Install");
-//			SWTBotShell shell = bot.waitForShell(IDELabel.Menu.PREFERENCES);
-//			if (shell == null){
-//				fail("Preferences shell should have appeared");
-//			}
-//			bot.activeShell().close();
-//		}catch(WidgetNotFoundException wnfex){
-//			fail("Missing Install button");
-//		}
-//		try{
-//			projectExampleShell.activate();
-//			bot.clickButton("Download and Install...");
-//		}catch(WidgetNotFoundException wnfex){
-//			fail("Missing \"Download and Install\" button");
-//		}
-//		
-//		//create direcotry where will be JBossAS downloaded
-//		if(!createDirectory(JBOSS_INSTALL_PATH)){
-//			fail("Unable to create direcory for JBoss - \""+JBOSS_INSTALL_PATH+"\"");
-//		}
-//		
-//		bot.textWithLabel("Install folder:").setText(JBOSS_INSTALL_PATH);
-//		bot.textWithLabel("Download folder:").setText("/tmp");
-//		bot.clickButton("OK");
-//		bot.waitForShell("Progress Information");
-//		util.waitForNonIgnoredJobs(Long.MAX_VALUE);
-//		//bot.waitUntil(Conditions.shellCloses(bot.activeShell()), Long.MAX_VALUE, TIME_5S);
-//		projectExampleShell.close();j
-		
-		//server should be added.. check again
-		//formsBot.formTextWithText(IDELabel.JBossCentralEditor.JAVA_EE_WEB_PROJECT).click();
 		bot.hyperlink(IDELabel.JBossCentralEditor.JAVA_EE_WEB_PROJECT).click();
 		SWTBotShell projectExampleShell = bot.waitForShell(IDELabel.JBossCentralEditor.PROJECT_EXAMPLE);
 		assertTrue("Project Example window should have appeared", bot.shell(IDELabel.JBossCentralEditor.PROJECT_EXAMPLE).isActive());
@@ -176,8 +136,6 @@
 		}
 		projectExampleShell.activate();
 		assertFalse("Button \"Download and Install...\" should not be enabled, because all requirements should have been met, condition", bot.button("Download and Install...").isEnabled());
-//		bot.clickButton("Download and Install...");
-//		fail("Button \"Download and Install...\" should not be enabled, because all requirements should have been met");
 		projectExampleShell.close();
 		
 		//check the rest of project examples
@@ -187,11 +145,6 @@
 		checkExample(null, IDELabel.JBossCentralEditor.RICHFACES_PROJECT, true);
 		checkExample(null, IDELabel.JBossCentralEditor.SPRING_MVC_PROJECT, false);
 		
-		/*checkCreateProject(IDELabel.JBossCentralEditor.JAVA_EE_WEB_PROJECT);
-		checkCreateProject(IDELabel.JBossCentralEditor.JAVA_EE_PROJECT);
-		checkCreateProject(IDELabel.JBossCentralEditor.HTML5_PROJECT);
-		checkCreateProject(IDELabel.JBossCentralEditor.SPRING_MVC_PROJECT);
-		checkCreateProject(IDELabel.JBossCentralEditor.RICHFACES_PROJECT);*/
 		bot.toolbarDropDownButtonWithTooltip("New").click();
 		bot.waitForShell("New");
 		assertTrue("Shell \"New\" should have appeared", bot.shell("New").isActive());



More information about the jbosstools-commits mailing list