Author: jpeterka
Date: 2010-10-21 12:09:32 -0400 (Thu, 21 Oct 2010)
New Revision: 25978
Added:
trunk/jbpm/tests/.classpath
trunk/jbpm/tests/.project
trunk/jbpm/tests/.settings/
trunk/jbpm/tests/.settings/org.eclipse.jdt.core.prefs
trunk/jbpm/tests/META-INF/
trunk/jbpm/tests/META-INF/MANIFEST.MF
trunk/jbpm/tests/build.properties
trunk/jbpm/tests/conf/
trunk/jbpm/tests/launcher/
trunk/jbpm/tests/launcher/JBPMAllTest.launch
trunk/jbpm/tests/screenshots/
trunk/jbpm/tests/screenshots/SOA -
createProject(org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest).jpeg
trunk/jbpm/tests/screenshots/SOA -
deploy(org.jboss.tools.jbpm.ui.bot.test.JBPMDeployTest).jpeg
trunk/jbpm/tests/screenshots/SOA -
deploy(org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest).jpeg
trunk/jbpm/tests/screenshots/org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest.jpeg
trunk/jbpm/tests/src/
trunk/jbpm/tests/src/org/
trunk/jbpm/tests/src/org/jboss/
trunk/jbpm/tests/src/org/jboss/tools/
trunk/jbpm/tests/src/org/jboss/tools/jbpm/
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/Activator.java
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMDeployTest.java
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMProjectTest.java
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMAllTest.java
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMTest.java
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/Project.java
Log:
Initial commit of SWTBot tests for jBPM part of JBoss Tools
Added: trunk/jbpm/tests/.classpath
===================================================================
--- trunk/jbpm/tests/.classpath (rev 0)
+++ trunk/jbpm/tests/.classpath 2010-10-21 16:09:32 UTC (rev 25978)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: trunk/jbpm/tests/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/.project
===================================================================
--- trunk/jbpm/tests/.project (rev 0)
+++ trunk/jbpm/tests/.project 2010-10-21 16:09:32 UTC (rev 25978)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.jbpm.ui.bot.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/jbpm/tests/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/jbpm/tests/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/jbpm/tests/.settings/org.eclipse.jdt.core.prefs 2010-10-21 16:09:32 UTC (rev
25978)
@@ -0,0 +1,8 @@
+#Tue Oct 19 14:08:38 CEST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
Property changes on: trunk/jbpm/tests/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/META-INF/MANIFEST.MF
===================================================================
--- trunk/jbpm/tests/META-INF/MANIFEST.MF (rev 0)
+++ trunk/jbpm/tests/META-INF/MANIFEST.MF 2010-10-21 16:09:32 UTC (rev 25978)
@@ -0,0 +1,24 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: jBPM Tools SWTBot Tests
+Bundle-SymbolicName: org.jboss.tools.jbpm.ui.bot.test
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.jboss.tools.jbpm.ui.bot.test.Activator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.swtbot.eclipse.core;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.finder;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.gef.finder;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.junit3.headless;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.junit4.headless;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.spy;bundle-version="2.0.0",
+ org.eclipse.swtbot.eclipse.ui;bundle-version="2.0.0",
+ org.eclipse.swtbot.go;bundle-version="2.0.0",
+ org.eclipse.swtbot.junit4_x;bundle-version="2.0.0",
+ org.eclipse.swtbot.swt.finder;bundle-version="2.0.0",
+ org.apache.log4j;bundle-version="1.2.15",
+ org.jboss.tools.ui.bot.ext;bundle-version="3.2.0",
+ org.junit4;bundle-version="4.8.1",
+ org.eclipse.gef;bundle-version="3.6.1"
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Property changes on: trunk/jbpm/tests/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/build.properties
===================================================================
--- trunk/jbpm/tests/build.properties (rev 0)
+++ trunk/jbpm/tests/build.properties 2010-10-21 16:09:32 UTC (rev 25978)
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Property changes on: trunk/jbpm/tests/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/launcher/JBPMAllTest.launch
===================================================================
--- trunk/jbpm/tests/launcher/JBPMAllTest.launch (rev 0)
+++ trunk/jbpm/tests/launcher/JBPMAllTest.launch 2010-10-21 16:09:32 UTC (rev 25978)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"
standalone="no"?>
+<launchConfiguration
type="org.eclipse.swtbot.eclipse.ui.launcher.JunitLaunchConfig">
+<booleanAttribute key="append.args" value="true"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="true"/>
+<booleanAttribute key="clearws" value="true"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<stringAttribute key="configLocation"
value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
+<booleanAttribute key="default" value="true"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location"
value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry
value="/org.jboss.tools.jbpm.ui.bot.test/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMAllTest.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<mapAttribute key="org.eclipse.debug.core.environmentVariables">
+<mapEntry key="DISPLAY" value=":1"/>
+<mapEntry key="swtbot.test.properties.file"
value="jbpm-bot.properties"/>
+</mapAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER"
value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR"
value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME"
value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND"
value="org.eclipse.jdt.junit.loader.junit4"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"
value="org.jboss.tools.jbpm.ui.bot.test.suite.JBPMAllTest"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}
-consoleLog"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR"
value="org.jboss.tools.jbpm.ui.bot.test"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER"
value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS"
value="-Dswtbot.test.properties.file=/home/jpeterka/etc/jbpm-bot.properties
-Dswtbot.test.properties.multi.file=/home/jpeterka/etc/jbpm-multi.properties -Xmx1024M
-XX:PermSize=128M -XX:MaxPermSize=256M
-Dosgi.bundles=reference:file:org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503.jar@1:start,org.eclipse.equinox.transforms.xslt@1:start,org.jboss.tools.equinox.transforms.xslt@1:start"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product"
value="com.jboss.jbds.product.product"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<stringAttribute key="templateConfig"
value="${target_home}/configuration/config.ini"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useCustomFeatures" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="true"/>
+</launchConfiguration>
Property changes on: trunk/jbpm/tests/launcher/JBPMAllTest.launch
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/screenshots/SOA -
createProject(org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest).jpeg
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/tests/screenshots/SOA -
createProject(org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest).jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/tests/screenshots/SOA -
deploy(org.jboss.tools.jbpm.ui.bot.test.JBPMDeployTest).jpeg
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/tests/screenshots/SOA -
deploy(org.jboss.tools.jbpm.ui.bot.test.JBPMDeployTest).jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/tests/screenshots/SOA -
deploy(org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest).jpeg
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/tests/screenshots/SOA -
deploy(org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest).jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/tests/screenshots/org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest.jpeg
===================================================================
(Binary files differ)
Property changes on:
trunk/jbpm/tests/screenshots/org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/Activator.java
===================================================================
--- trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/Activator.java
(rev 0)
+++ trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/Activator.java 2010-10-21
16:09:32 UTC (rev 25978)
@@ -0,0 +1,50 @@
+package org.jboss.tools.jbpm.ui.bot.test;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.jbpm.ui.bot.test";
//$NON-NLS-1$
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+}
Property changes on: trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/Activator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMDeployTest.java
===================================================================
--- trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMDeployTest.java
(rev 0)
+++ trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMDeployTest.java 2010-10-21
16:09:32 UTC (rev 25978)
@@ -0,0 +1,53 @@
+package org.jboss.tools.jbpm.ui.bot.test;
+
+import org.eclipse.swtbot.eclipse.gef.finder.SWTGefBot;
+import org.eclipse.swtbot.eclipse.gef.finder.widgets.SWTBotGefEditor;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotText;
+import org.jboss.tools.jbpm.ui.bot.test.suite.JBPMTest;
+import org.jboss.tools.jbpm.ui.bot.test.suite.Project;
+import org.jboss.tools.ui.bot.ext.config.Annotations.JBPM;
+import org.jboss.tools.ui.bot.ext.config.Annotations.SWTBotTestRequires;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+import org.jboss.tools.ui.bot.ext.config.TestConfigurator;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
+import org.jboss.tools.ui.bot.ext.view.PackageExplorer;
+import org.jboss.tools.ui.bot.ext.widgets.SWTBotMultiPageEditor;
+import org.junit.Test;
+
+@SWTBotTestRequires( clearProjects=false, jbpm=@JBPM(),
server=(a)Server(type=ServerType.SOA,state=ServerState.Present))
+public class JBPMDeployTest extends JBPMTest {
+
+ @Test
+ public void deploy() {
+ PackageExplorer pe = new PackageExplorer();
+ pe.openFile(Project.PROJECT_NAME,
"src/main/jpdl","simple.jpdl.xml");
+ util.waitForNonIgnoredJobs();
+
+ SWTGefBot gefBot = new SWTGefBot();
+ SWTBotGefEditor editor = gefBot.gefEditor("simple");
+ editor.setFocus();
+ SWTBotMultiPageEditor multi = new SWTBotMultiPageEditor(editor.getReference(),
gefBot);
+ multi.activatePage("Deployment");
+
+ gefBot.textWithLabel("Server Name:").setText("127.0.0.1");
+ SWTBotText item = gefBot.textWithLabel("Server
Deployer:").setText("gpd-deployer");
+ editor.save();
+
+ String serverName =
TestConfigurator.currentConfig.getServer().type+"-"+TestConfigurator.currentConfig.getServer().version;
+ servers.startServer(serverName);
+
+ item.setFocus();
+ bot.menu("jBPM").menu("Ping Server").click();
+
+ bot.sleep(TIME_1S);
+ bot.text(0).setText("admin");
+ bot.text(1).setText("admin");
+ bot.clickButton(IDELabel.Button.OK);
+ bot.sleep(TIME_1S);
+ bot.clickButton(IDELabel.Button.OK);
+
+ bot.sleep(TIME_10S);
+ }
+}
Property changes on:
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMDeployTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMProjectTest.java
===================================================================
--- trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMProjectTest.java
(rev 0)
+++ trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMProjectTest.java 2010-10-21
16:09:32 UTC (rev 25978)
@@ -0,0 +1,56 @@
+package org.jboss.tools.jbpm.ui.bot.test;
+
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
+import org.jboss.tools.jbpm.ui.bot.test.suite.JBPMTest;
+import org.jboss.tools.jbpm.ui.bot.test.suite.Project;
+import org.jboss.tools.ui.bot.ext.config.Annotations.JBPM;
+import org.jboss.tools.ui.bot.ext.config.Annotations.SWTBotTestRequires;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+import org.jboss.tools.ui.bot.ext.config.TestConfigurator;
+import org.jboss.tools.ui.bot.ext.types.EntityType;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
+import org.junit.Test;
+
+@SWTBotTestRequires( jbpm=@JBPM(),
server=(a)Server(type=ServerType.SOA,state=ServerState.Present), perspective="jBPM jPDL
3")
+public class JBPMProjectTest extends JBPMTest {
+
+ @Test
+ public void createProject() {
+
+ // Create project
+ eclipse.createNew(EntityType.JBPM3_PROJECT);
+ bot.textWithLabel("Project name:").setText(Project.PROJECT_NAME);
+ bot.clickButton(IDELabel.Button.NEXT);
+
+ String rtName = "JBPM-"+TestConfigurator.currentConfig.getJBPM().version;
+
+ // There is some bug related to undefined runtime even it's defined
+ /*
+ bot.textWithLabel("Name :").setText(rtName);
+ String rtHome = TestConfigurator.currentConfig.getJBPM().jbpmHome;
+ bot.sleep(TIME_5S);
+
+ bot.textWithLabel("Location :").setText(rtHome);
+
+ String msg3 = "Press next to continue the project creation";
+
+ try {
+ bot.text(msg3);
+ } catch(WidgetNotFoundException e) {
+ fail("Missing confirmation during jbpm runtime definition text");
+ }
+
+ bot.clickButton(IDELabel.Button.NEXT);
+ */
+
+ bot.comboBox().setSelection(rtName);
+
+
+ SWTBotShell wizard = bot.activeShell();
+ bot.clickButton(IDELabel.Button.FINISH);
+ eclipse.waitForClosedShell(wizard);
+ util.waitForNonIgnoredJobs();
+ }
+}
Property changes on:
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/JBPMProjectTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMAllTest.java
===================================================================
--- trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMAllTest.java
(rev 0)
+++
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMAllTest.java 2010-10-21
16:09:32 UTC (rev 25978)
@@ -0,0 +1,26 @@
+package org.jboss.tools.jbpm.ui.bot.test.suite;
+
+import junit.framework.TestSuite;
+
+import org.jboss.tools.jbpm.ui.bot.test.JBPMDeployTest;
+import org.jboss.tools.jbpm.ui.bot.test.JBPMProjectTest;
+import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite.SuiteClasses;
+
+@SuiteClasses({ JBPMProjectTest.class, JBPMDeployTest.class, })
+(a)RunWith(RequirementAwareSuite.class)
+public class JBPMAllTest extends TestSuite {
+
+ @BeforeClass
+ public static void setUpSuite() {
+ JBPMTest.prepare();
+ }
+
+ @AfterClass
+ public static void tearDownSuite() {
+ JBPMTest.clean();
+ }
+}
Property changes on:
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMAllTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMTest.java
===================================================================
--- trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMTest.java
(rev 0)
+++ trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMTest.java 2010-10-21
16:09:32 UTC (rev 25978)
@@ -0,0 +1,22 @@
+package org.jboss.tools.jbpm.ui.bot.test.suite;
+
+import org.jboss.tools.ui.bot.ext.SWTTestExt;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
+
+public class JBPMTest extends SWTTestExt {
+
+ public static void prepare() {
+ log.info("jBPM All Test started...");
+
+ jbt.closeReportUsageWindowIfOpened(true);
+ eclipse.maximizeActiveShell();
+ eclipse.closeView(IDELabel.View.WELCOME);
+ bot.closeAllEditors();
+ }
+
+ public static void clean() {
+ util.waitForNonIgnoredJobs();
+ bot.sleep(TIME_5S, "jBPM All Tests Finished!");
+ }
+
+}
Property changes on:
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/JBPMTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/Project.java
===================================================================
--- trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/Project.java
(rev 0)
+++ trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/Project.java 2010-10-21
16:09:32 UTC (rev 25978)
@@ -0,0 +1,5 @@
+package org.jboss.tools.jbpm.ui.bot.test.suite;
+
+public class Project {
+ public static String PROJECT_NAME="jbpmtest1";
+}
Property changes on:
trunk/jbpm/tests/src/org/jboss/tools/jbpm/ui/bot/test/suite/Project.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain