It's all about the answers!

Ask a question

How to use the Jazz JUnit test cases?


Ya Bin Dang (33151) | asked Apr 01 '08, 9:29 a.m.
JAZZ DEVELOPER
I have set up a Jazz component development environment. When I try to launch a Jazz JUnit Plug-in Test, e.g. com.ibm.team.process.internal.ide.ui.tests.ProcessIdeEditorTests, I get an exception "TeamServiceException: return code 503 from HTTP request: Service 'com.ibm.team.repository.common.tests.IScheduledTaskControllerService' is not accessible remotely". I just use the default Jazz server configuration in local. What should I do for solving this problem? The detailed exception trace is atached as below. Thanks in advance!


com.ibm.team.repository.common.transport.TeamServiceException: return code 503 from HTTP request: Service 'com.ibm.team.repository.common.tests.IScheduledTaskControllerService' is not accessible remotely.
at com.ibm.team.repository.transport.client.RemoteTeamService.executeHttpMethod(RemoteTeamService.java:612)
at com.ibm.team.repository.transport.client.RemoteTeamService.executeCancelableHttpMethod(RemoteTeamService.java:462)
at com.ibm.team.repository.transport.client.RemoteTeamService.invokePost(RemoteTeamService.java:452)
at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(RemoteTeamService.java:402)
at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(RemoteTeamService.java:196)
at com.ibm.team.repository.transport.client.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:43)
at $Proxy10.unschedule(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invokeServiceCall(ServiceInterfaceProxy.java:145)
at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(ServiceInterfaceProxy.java:80)
at $Proxy10.unschedule(Unknown Source)
at com.ibm.team.repository.client.tests.login.TestClientLibrary.unscheduleTask(TestClientLibrary.java:57)
at com.ibm.team.process.internal.client.tests.AbstractTeamProcessTest.turnOffScheduledTasks(AbstractTeamProcessTest.java:178)
at com.ibm.team.process.internal.client.tests.AbstractTeamProcessTest.turnOffScheduledTasks(AbstractTeamProcessTest.java:172)
at com.ibm.team.process.internal.client.tests.AbstractTeamProcessTest.doSetup(AbstractTeamProcessTest.java:131)
at com.ibm.team.process.internal.ide.ui.AbstractProcessUITest.doSetup(AbstractProcessUITest.java:172)
at com.ibm.team.process.internal.client.tests.AbstractTeamProcessTest.setUp(AbstractTeamProcessTest.java:101)
at junit.framework.TestCase.runBare(TestCase.java:128)
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 org.eclipse.pde.internal.junit.runtime.UITestApplication$1.run(UITestApplication.java:122)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.pde.internal.junit.runtime.UITestApplication.start(UITestApplication.java:52)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)

2 answers



permanent link
Jared Burns (4.5k29) | answered Apr 01 '08, 10:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Looks like you don't have the test plugins installed in the server. This
is required for most (all?) tests to run.

--
Jared Burns
Jazz Process Team

dangyb wrote:
I have set up a Jazz component development environment. When I try to
launch a Jazz JUnit Plug-in Test, e.g.
com.ibm.team.process.internal.ide.ui.tests.ProcessIdeEditorTests, I
get an exception "TeamServiceException: return code 503 from
HTTP request: Service
'com.ibm.team.repository.common.tests.IScheduledTaskControllerService'
is not accessible remotely". I just use the default Jazz server
configuration in local. What should I do for solving this problem?
The detailed exception trace is atached as below. Thanks in advance!


com.ibm.team.repository.common.transport.TeamServiceException: return
code 503 from HTTP request: Service
'com.ibm.team.repository.common.tests.IScheduledTaskControllerService'
is not accessible remotely.

permanent link
Ya Bin Dang (33151) | answered Apr 01 '08, 11:07 a.m.
JAZZ DEVELOPER
Hi Jared,

Thank you so much for reminding me that! Could you tell me more about how to install the tests plugins on the server? Thanks in advance!

Yabin

Your answer


Register or 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.