It's all about the answers!

Ask a question

[Releng]Problem to do Eclipse JUnit Plugin Test


Thomas Yu (45183) | asked Apr 09 '09, 9:42 a.m.
Hi,

When I use eclipsePluginTest ant macro(defined in projectTest.xml)to do a test(junit test the login to a started server),when the java task run org.eclipse.core.launcher.Main class (defined in eclipsePluginTestExecute target of projectTestImport.xml)to start the eclipse/RTC environment and run the junit,the following exceptions are thrown:

(1)java.lang.RuntimeException: Application "org.eclipse.test.coretestapplication" could not be found in the registry
(2)java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
(3)java.lang.NoClassDefFoundError: org/eclipse/ui/plugin/AbstractUIPlugin
(4) org.osgi.framework.BundleException: The activator org.eclipse.ui.internal.WorkbenchPlugin for bundle org.eclipse.ui.workbench is invalid
.....more....

the Java execution dir is already set to eclipse.test/eclipse(unzip from testInstall.zip)

So,what maybe the reason?Is there any advice?Thanks!

Be the first one to answer this question!


Register or to post your answer.