Can you try this, and see what happens ?

1. Download and install eclipse-SDK-3.3, this is also known as the  
classic version
2. Download and install swtbot from the update site 
http://swtbot.sourceforge.net/artifacts/1.1.0/update-site/
3. Download the rcp examples from 
http://swtbot.svn.sourceforge.net/svnroot/swtbot/trunk/examples/rcp
4. Open the class org.rcpmail.AllTests
5. Right click on AllTests, click "Run As>Open Run Dialog"
6. Create a new under "SWTBot Tests"
7. Set the test runner to JUnit3
8. Switch to the Main tab
9. Select "Run As Product" "org.rcpmail.product"
10. Click run

I've typed these steps in the same order that I performed them, and  
should work for you.

-- Ketan

On 18-Jun-08, at 3:37 PM, paulo carreira wrote:

> Hi.
>
>     I checked out both org.rcpmail and org.rcpmail.example had them
> both compiling.
>
>     When I launch org.rcpmail.MyFirstTest, I always get a
> java.lang.NoClassDefFoundError:
> org/apache/commons/collections/map/MultiValueMap.
>
>     I'm using commons-collections-3.2.1.jar and
> commons-logging-1.1.1.jar. And I have tried to add them to classpath
> in every way I could think of. Any hints? the trace follows below:
>
> junit.framework.AssertionFailedError: Exception in constructor:
> testThisPasses (java.lang.NoClassDefFoundError:
> org/apache/commons/collections/map/MultiValueMap
>       at net.sf.swtbot.resolvers.Resolver.<init>(Resolver.java:36)
>       at net.sf.swtbot.resolvers.Resolvable.<init>(Resolvable.java:35)
>       at  
> net 
> .sf 
> .swtbot 
> .resolvers 
> .DefaultChildrenResolver.<init>(DefaultChildrenResolver.java:28)
>       at net.sf.swtbot.finder.ControlFinder.<init>(ControlFinder.java:75)
>       at net.sf.swtbot.SWTBot.<init>(SWTBot.java:86)
>       at net.sf.swtbot.SWTBotTestCase.<init>(SWTBotTestCase.java:37)
>       at  
> net 
> .sf.swtbot.eclipse.finder.SWTBotTestCase.<init>(SWTBotTestCase.java: 
> 23)
>       at org.rcpmail.MyFirstTest.<init>(MyFirstTest.java:7)
>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native  
> Method)
>       at  
> sun 
> .reflect 
> .NativeConstructorAccessorImpl 
> .newInstance(NativeConstructorAccessorImpl.java:39)
>       at  
> sun 
> .reflect 
> .DelegatingConstructorAccessorImpl 
> .newInstance(DelegatingConstructorAccessorImpl.java:27)
>       at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>       at junit.framework.TestSuite.createTest(TestSuite.java:54)
>       at junit.framework.TestSuite.addTestMethod(TestSuite.java:280)
>       at junit.framework.TestSuite.<init>(TestSuite.java:140)
>       at  
> org 
> .eclipse 
> .jdt 
> .internal 
> .junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java: 
> 102)
>       at  
> org 
> .eclipse 
> .jdt 
> .internal 
> .junit 
> .runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59)
>       at  
> org 
> .eclipse 
> .jdt 
> .internal 
> .junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
>       at  
> org 
> .eclipse 
> .jdt 
> .internal 
> .junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
>       at  
> org 
> .eclipse 
> .jdt 
> .internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>       at  
> org 
> .eclipse 
> .pde 
> .internal 
> .junit 
> .runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:58)
>       at  
> net 
> .sf.swtbot.eclipse.ui.TestApplication.runTests(TestApplication.java: 
> 112)
>       at org.eclipse.ui.internal.testing.WorkbenchTestable 
> $1.run(WorkbenchTestable.java:68)
>       at java.lang.Thread.run(Thread.java:619)
> )
>       at junit.framework.Assert.fail(Assert.java:47)
>       at junit.framework.TestSuite$1.runTest(TestSuite.java:90)
>       at junit.framework.TestCase.runBare(TestCase.java:130)
>       at junit.framework.TestResult$1.protect(TestResult.java:106)
>       at junit.framework.TestResult.runProtected(TestResult.java:124)
>       at junit.framework.TestResult.run(TestResult.java:109)
>       at junit.framework.TestCase.run(TestCase.java:120)
>       at junit.framework.TestSuite.runTest(TestSuite.java:230)
>       at junit.framework.TestSuite.run(TestSuite.java:225)
>       at  
> org 
> .eclipse 
> .jdt 
> .internal 
> .junit 
> .runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
>       at  
> org 
> .eclipse 
> .jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>       at  
> org 
> .eclipse 
> .jdt 
> .internal 
> .junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
>       at  
> org 
> .eclipse 
> .jdt 
> .internal 
> .junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
>       at  
> org 
> .eclipse 
> .jdt 
> .internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>       at  
> org 
> .eclipse 
> .pde 
> .internal 
> .junit 
> .runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:58)
>       at  
> net 
> .sf.swtbot.eclipse.ui.TestApplication.runTests(TestApplication.java: 
> 112)
>       at org.eclipse.ui.internal.testing.WorkbenchTestable 
> $1.run(WorkbenchTestable.java:68)
>       at java.lang.Thread.run(Thread.java:619)
> -- 
> paulo.
>
> Paulo Carreira
> http://carreira.planetaclix.pt
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> SWTBot-users mailing list
> SWTBot-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/swtbot-users
> http://swtbot.org/ - a functional testing tool for SWT/Eclipse
>

Cheers,
Ketan Padegaonkar,
I blog... therefore I am... http://ketan.padegaonkar.name
http://swtbot.org/ - a functional testing tool for SWT/Eclipse


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
SWTBot-users mailing list
SWTBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse

Reply via email to