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)

What I forgot to do for this?


--
Caio Bulgarelli
R&D - CM - MOTODEV
+55 . 19 - 3847-6938 - desk
+55 . 19 - 9135-0809 - mobile


_______________________________________________
swtbot-dev mailing list
swtbot-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/swtbot-dev

_______________________________________________
swtbot-dev mailing list
swtbot-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/swtbot-dev

Reply via email to