Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » launching JUnit plugin-test from command Prompt
launching JUnit plugin-test from command Prompt [message #528823] Wed, 21 April 2010 22:15 Go to next message
Ram  is currently offline Ram Friend
Messages: 3
Registered: April 2010
Junior Member

I have created a plugin and have a JUnit pluin-test code that will launch this plugin. This plugin, basically opens the eclipse, perform some tasks, collect data and close the eclipse instance. Couldn't find much help with the internet. Any help on this is appreciated.

I m using Eclipse 3.3.2.

I tried the equinox launcher to launch the application. The eclipse opens up, but then, it closes throwing an exception

Could not connect to: : 1564 Connection refused: connect
at va:214)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.conne ct(
at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunne r.main(
at org.eclipse.pde.internal.junit.runtime.UITestApplication$1.r un(
at 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3659)
at org.eclipse.swt.widgets.Display.readAndDispatch( :3296)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(
at org.eclipse.ui.internal.Workbench.access$4( 19)
at org.eclipse.ui.internal.Workbench$
at org.eclipse.core.databinding.observable.Realm.runWithDefault (
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (
at org.eclipse.pde.internal.junit.runtime.UITestApplication.sta rt(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
at java.lang.reflect.Method.invoke(
at org.eclipse.equinox.launcher.Main.invokeFramework( 508)
at org.eclipse.equinox.launcher.Main.basicRun(
at org.eclipse.equinox.launcher.Main.main(
58777 [main] DEBUG AdoptionTrackingActivator - adoption tracking plugin stops

Should I set the port anywhere in the code or should I write a listener that will listen to this port? I need to get this resolved as soon as possible. Any help on this is appreciated.


Re: launching JUnit plugin-test from command Prompt [message #528980 is a reply to message #528823] Thu, 22 April 2010 14:29 Go to previous message
Curtis Windatt is currently offline Curtis WindattFriend
Messages: 166
Registered: July 2009
Senior Member
A very quick search found others experiencing the same problem, but no solutions. Most people appeared to have this problem using Eclipse 3.3, but not using later versions of Eclipse. t-tests-in-eclipse .html
Previous Topic:copy file by programming
Next Topic:launching JUnit plugin-test from command Prompt
Goto Forum:

Current Time: Sun Oct 04 07:52:06 GMT 2015

Powered by FUDForum. Page generated in 0.01755 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software