Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

[Releng]Problem to do Eclipse JUnit Plugin Test

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!

0 votes


Be the first one to answer this question!

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Apr 09 '09, 9:42 a.m.

Question was seen: 7,165 times

Last updated: Apr 09 '09, 9:42 a.m.

Confirmation Cancel Confirm