I thought about that too. But I got an error when running it as SWTBot Test. So 
I thought that might not be the right way to start them, and then I started it 
as a simple JUnit test, which failed.

Now here is the error which I get, when starting org.rcpmail.test (compiles and 
org.rcpmail can be started separetely with success):

java.lang.RuntimeException: Application 
"net.sf.swtbot.eclipse.ui.swtbottestapplication" could not be found in the 
registry. The applications available are: 
net.sf.swtbot.eclipse.headless.coretestapplication, 
net.sf.swtbot.eclipse.headless.swtbottestapplication, 
org.eclipse.ant.core.antRunner, org.eclipse.equinox.app.error, 
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.ui.ide.workbench, org.eclipse.update.core.standaloneUpdate, 
org.eclipse.update.core.siteOptimizer, org.rcpmail.application.
at 
org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
at 
org.eclipse.equinox.internal.app.EclipseAppContainer.start(EclipseAppContainer.java:98)
at org.eclipse.equinox.internal.app.Activator.addingService(Activator.java:112)
at 
org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1064)
at 
org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices(ServiceTracker.java:926)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:330)
at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:274)
at org.eclipse.equinox.internal.app.Activator.start(Activator.java:54)
at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
at 
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at 
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
at 
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
at 
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:417)
at 
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:189)
at 
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:340)
at 
org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackage.java:37)
at 
org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:405)
at 
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
at 
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
at 
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at 
org.eclipse.core.internal.runtime.PlatformActivator.startAppContainer(PlatformActivator.java:47)
at 
org.eclipse.core.internal.runtime.PlatformActivator.start(PlatformActivator.java:32)
at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)
at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974)
at 
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at 
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:350)
at 
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1118)
at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:634)
at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:282)
at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:468)
at 
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:195)
at 
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:297)

eclipse.buildId=M20080221-1800
java.version=1.6.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments:  -version 3 -port 3300 -testLoaderClass 
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader -loaderpluginname 
org.eclipse.jdt.junit.runtime -testNameFile 
C:\DOKUME~1\markovze\LOKALE~1\Temp\testNames64035.txt -application 
net.sf.swtbot.eclipse.ui.swtbottestapplication -product org.eclipse.sdk.ide 
-pdelaunch -testpluginname org.rcpmail.test
Command-line arguments:  -os win32 -ws win32 -arch x86 -version 3 -port 3300 
-testLoaderClass org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader 
-loaderpluginname org.eclipse.jdt.junit.runtime -testNameFile 
C:\DOKUME~1\markovze\LOKALE~1\Temp\testNames64035.txt -application 
net.sf.swtbot.eclipse.ui.swtbottestapplication -product org.eclipse.sdk.ide 
-data C:\eclipse\workspace/../junit-workspace -dev 
file:C:/eclipse/workspace/.metadata/.plugins/org.eclipse.pde.core/pde-junit/dev.properties
 -pdelaunch -os win32 -ws win32 -arch x86 -testpluginname org.rcpmail.test



Ketan Padegaonkar <[EMAIL PROTECTED]> wrote: 
On 13-Jun-08, at 11:17 AM, Hans Schwaebli wrote:

>     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)


You seem to be running this as a JUnit test instead of an SWTBot test.  
There's a right click option to run as SWTBot test.

-- Ketan


-------------------------------------------------------------------------
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



       
-------------------------------------------------------------------------
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