If you could provide the output of the java-test target we could help.
I'm suspecting that it doesn't find your plugin in its classpath or
something similar. You'll often find that ant output Build Successful
but you have errors in SWTBot.
An example of what I mean:
[java] java-test:
[java] [echo] ======================================
[java] [echo] Running swtbot junit tests in [snip]
[java] [echo] Command line args are [snip]
[java] [echo] JVM args are [snip]
[java] [echo] JUnit Result File: result.xml.
[java] [echo] Console output File: result.txt.
[java] [echo] ======================================
[java] [java] java.lang.Exception: Could not find plugin "MyPlugin"
[java] [java] at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner.loadSuiteClass(EclipseTestRunner.java:303)
[java] [java] at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner.getTest(EclipseTestRunner.java:239)
[java] [java] at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner.<init>(EclipseTestRunner.java:222)
[java] [java] at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner.run(EclipseTestRunner.java:206)
[java] [java] at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication.runTests(UITestApplication.java:115)
[java] [java] at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(WorkbenchTestable.java:71)
[java] [java] at java.lang.Thread.run(Thread.java:619)
[java] [echo] ======================================
[java] [echo] If you see errors above please see the file result.txt for more information.
[java] [echo] Errors are generally caused by missing or incorrect dependencies.
[java] [echo] ======================================
On 10-09-02 11:22 AM, Caio Bulgarelli wrote:
Hey Marriot! THANK YOU!!!
It was the SAME problem!
I "fixed" the library.xml in lines 167 and 161 and it worked!
=)
run:
BUILD SUCCESSFUL
Total time: 3 seconds
But, I could not see the Eclipse open and see the "macro" interact with
it.
It was very fast! (3 second) I would like to see the TestCase on
running.
(Like on the tutorial Video)
Install location:
file:/c:/eclipse/
Configuration file:
file:/c:/eclipse/configuration/config.ini loaded
Configuration location:
file:/c:/eclipse/configuration/
Framework located:
file:/c:/eclipse/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar
Loading extension: reference:file:javax.transaction_1.1.1.v201002111330.jar
eclipse.properties not found
Loading extension: reference:file:org.eclipse.persistence.jpa.equinox.weaving_1.1.3.v20091002-r5404.jar
eclipse.properties not found
Framework classpath:
file:/c:/eclipse/plugins/org.eclipse.osgi_3.5.2.R35x_v20100126.jar
file:/c:/eclipse/plugins/
file:/c:/eclipse/plugins/javax.transaction_1.1.1.v201002111330.jar
file:/c:/eclipse/plugins/org.eclipse.persistence.jpa.equinox.weaving_1.1.3.v20091002-r5404.jar
Debug options:
file:/C:/eclipse/.options not found
Time to load bundles: 16
Starting application: 968
!SESSION 2010-09-02 17:11:14.455 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=workspace, NL=en_US
Framework arguments: -application org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplication formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,C:/eclipse/MyFirstTestCase.xml formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter -testPluginName com.eclipse.swtbot.setup -className MyFirstTestCase
Command-line arguments: -application org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplication -data workspace formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,C:/eclipse/MyFirstTestCase.xml formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter -testPluginName com.eclipse.swtbot.setup -className MyFirstTestCase -os win32 -ws workspace -arch x86 -consoleLog -debug
!ENTRY org.eclipse.osgi 4 0 2010-09-02 17:11:15.517
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplication" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.ant.ui.antRunner, org.eclipse.datatools.connectivity.console.profile.StorageFileEditor, org.eclipse.emf.codegen.CodeGen, org.eclipse.emf.codegen.JMerger, org.eclipse.emf.codegen.ecore.Generator, org.eclipse.emf.importer.ecore.Ecore2GenModel, org.eclipse.emf.importer.java.Java2GenModel, org.eclipse.emf.importer.rose.Rose2GenModel, org.eclipse.equinox.app.error, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.director.app.application, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.metadata.generator.EclipseGenerator, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.jdt.apt.core.aptBuild, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.pde.build.Build, org.eclipse.pde.junit.runtime.uitestapplication, org.eclipse.pde.junit.runtime.legacytestapplication, org.eclipse.pde.junit.runtime.coretestapplication, org.eclipse.pde.junit.runtime.coretestapplicationnonmain, org.eclipse.pde.junit.runtime.nonuithreadtestapplication, org.eclipse.swtbot.eclipse.core.swtbottestapplication, org.eclipse.ui.ide.workbench, org.eclipse.update.core.standaloneUpdate, org.eclipse.update.core.siteOptimizer, org.eclipse.wst.jsdt.core.JavaCodeFormatter, org.eclipse.wst.server.preview.preview.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
at org.eclipse.core.launcher.Main.main(Main.java:34)
!ENTRY org.eclipse.osgi 2 0 2010-09-02 17:11:15.939
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-02 17:11:15.939
!MESSAGE Bundle org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519 [260] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-02 17:11:15.939
!MESSAGE Bundle org.eclipse.swt.win32.win32.x86_3.5.2.v3557f [536] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-02 17:11:15.954
!MESSAGE Bundle org.eclipse.ui.win32_3.2.100.v20090429-1800 [575] was not resolved.