Author: rhopp
Date: 2012-04-05 08:44:58 -0400 (Thu, 05 Apr 2012)
New Revision: 40071
Modified:
trunk/central/tests/org.jboss.tools.central.test.ui.bot/pom.xml
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
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithoutServerTest.java
Log:
https://issues.jboss.org/browse/JBQA-6176
Modified: trunk/central/tests/org.jboss.tools.central.test.ui.bot/pom.xml
===================================================================
--- trunk/central/tests/org.jboss.tools.central.test.ui.bot/pom.xml 2012-04-05 10:40:36
UTC (rev 40070)
+++ trunk/central/tests/org.jboss.tools.central.test.ui.bot/pom.xml 2012-04-05 12:44:58
UTC (rev 40071)
@@ -24,10 +24,6 @@
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<configuration>
- <!-- <systemPropertyVariables>
- <MOZILLA_FIVE_HOME>/home/rhopp/jbdevstudio/studio/plugins/org.mozilla.xulrunner.gtk.linux.x86_64_1.9.2.19pre/xulrunner</MOZILLA_FIVE_HOME>
- <LD_LIBRARY_PATH>${env.MOZILLA_FIVE_HOME}</LD_LIBRARY_PATH>
- </systemPropertyVariables> -->
<testSuite>org.jboss.tools.central.test.ui.bot</testSuite>
<testClass>org.jboss.tools.central.test.ui.bot.CentralAllBotTests</testClass>
<useUIThread>false</useUIThread>
@@ -60,7 +56,7 @@
</dependency>
<dependency>
<type>p2-installable-unit</type>
- <artifactId>org.jboss.tools.xulrunner.feature.feature.group</artifactId>
+ <artifactId>org.jboss.ide.eclipse.as.feature.feature.group</artifactId>
<version>0.0.0</version>
</dependency>
</dependencies>
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-04-05
10:40:36 UTC (rev 40070)
+++
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CentralAllBotTests.java 2012-04-05
12:44:58 UTC (rev 40071)
@@ -7,9 +7,9 @@
@RunWith(RequirementAwareSuite.class)
@SuiteClasses({
//BaseFunctionalityTest.class,
- CreateProjectsWithServerTest.class,
- CreateProjectsWithoutServerTest.class,
- DocumentationSectionTest.class
+ CreateProjectsWithServerTest.class
+// CreateProjectsWithoutServerTest.class
+// DocumentationSectionTest.class
//EmptyTestForHudson.class
})
public class CentralAllBotTests {
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-04-05
10:40:36 UTC (rev 40070)
+++
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithServerTest.java 2012-04-05
12:44:58 UTC (rev 40071)
@@ -1,10 +1,7 @@
package org.jboss.tools.central.test.ui.bot;
-import java.io.File;
-
import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
-import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
import org.jboss.tools.ui.bot.ext.SWTBotFactory;
import org.jboss.tools.ui.bot.ext.SWTFormsBotExt;
import org.jboss.tools.ui.bot.ext.SWTTestExt;
@@ -12,10 +9,8 @@
import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
import org.jboss.tools.ui.bot.ext.parts.SWTBotTwistie;
import org.jboss.tools.ui.bot.ext.types.IDELabel;
-import org.jboss.tools.ui.bot.ext.view.ProblemsView;
import org.jboss.tools.ui.bot.ext.wizards.SWTBotWizard;
import org.junit.After;
-import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
@@ -30,16 +25,16 @@
@After
public void teardown(){
- SWTBotTreeItem[] items = ProblemsView.getErrorsNode(bot).getItems();
+ /*SWTBotTreeItem[] items = ProblemsView.getErrorsNode(bot).getItems();
for (SWTBotTreeItem swtBotTreeItem : items) {
log.error(swtBotTreeItem.toString());
- }
+ }*/
}
@Test
public void createProjectsSectionTest(){
//waitForAWhile();
- SWTFormsBotExt formsBot = SWTBotFactory.getFormsBot();
+// SWTFormsBotExt formsBot = SWTBotFactory.getFormsBot();
//Dynamic web project
bot.hyperlink(IDELabel.JBossCentralEditor.DYNAMIC_WEB_PROJECT).click();
bot.waitForShell(IDELabel.JBossCentralEditor.NEW_DYNAMIC_WEB_PROJECT);
@@ -201,21 +196,21 @@
}
}
- private void checkCreateProject(String formText){
- //formsBot.formTextWithText(formText).click();
- bot.hyperlink(formText).click();
- bot.waitForShell(IDELabel.JBossCentralEditor.PROJECT_EXAMPLE);
- SWTBotWizard wizard = new
SWTBotWizard(bot.shell(IDELabel.JBossCentralEditor.PROJECT_EXAMPLE).widget);
- wizard.next();
- wizard.finishWithWait();
- bot.activeShell().close();
- if (bot.activeEditor().getTitle().equalsIgnoreCase("cheat sheets")){
- bot.activeEditor().close();
- }
-// assertTrue("Project Example window should have appeared",
bot.shell(IDELabel.JBossCentralEditor.PROJECT_EXAMPLE).isActive());
-// bot.button("Start").click();
-// bot.waitForShell(wizzardShellText);
-// assertTrue(wizzardShellText+" should have appeared",
bot.shell(wizzardShellText).isActive());
+// private void checkCreateProject(String formText){
+// //formsBot.formTextWithText(formText).click();
+// bot.hyperlink(formText).click();
+// bot.waitForShell(IDELabel.JBossCentralEditor.PROJECT_EXAMPLE);
+// SWTBotWizard wizard = new
SWTBotWizard(bot.shell(IDELabel.JBossCentralEditor.PROJECT_EXAMPLE).widget);
+// wizard.next();
+// wizard.finishWithWait();
// bot.activeShell().close();
- }
+// if (bot.activeEditor().getTitle().equalsIgnoreCase("cheat sheets")){
+// bot.activeEditor().close();
+// }
+//// assertTrue("Project Example window should have appeared",
bot.shell(IDELabel.JBossCentralEditor.PROJECT_EXAMPLE).isActive());
+//// bot.button("Start").click();
+//// bot.waitForShell(wizzardShellText);
+//// assertTrue(wizzardShellText+" should have appeared",
bot.shell(wizzardShellText).isActive());
+//// bot.activeShell().close();
+// }
}
Modified:
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithoutServerTest.java
===================================================================
---
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithoutServerTest.java 2012-04-05
10:40:36 UTC (rev 40070)
+++
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsWithoutServerTest.java 2012-04-05
12:44:58 UTC (rev 40071)
@@ -1,20 +1,12 @@
package org.jboss.tools.central.test.ui.bot;
import java.io.File;
-import java.io.IOException;
-import java.io.StringWriter;
-import java.io.Writer;
-import java.sql.Date;
-import java.util.Calendar;
import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
-import org.eclipse.ui.IMemento;
-import org.eclipse.ui.XMLMemento;
import org.jboss.tools.ui.bot.ext.SWTBotFactory;
import org.jboss.tools.ui.bot.ext.SWTFormsBotExt;
import org.jboss.tools.ui.bot.ext.SWTTestExt;
-import org.jboss.tools.ui.bot.ext.condition.NonSystemJobRunsCondition;
import org.jboss.tools.ui.bot.ext.condition.ShellIsActiveCondition;
import org.jboss.tools.ui.bot.ext.condition.TaskDuration;
import org.jboss.tools.ui.bot.ext.types.IDELabel;
@@ -41,7 +33,7 @@
@Test
public void createProjectsSectionTest(){
- SWTFormsBotExt formsBot = SWTBotFactory.getFormsBot();
+// SWTFormsBotExt formsBot = SWTBotFactory.getFormsBot();
//Dynamic web project
bot.hyperlink(IDELabel.JBossCentralEditor.DYNAMIC_WEB_PROJECT).click();
bot.waitForShell(IDELabel.JBossCentralEditor.NEW_DYNAMIC_WEB_PROJECT);