Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Problem with running JUnit plugin test under ant

Hello,

 I tried to execute JUnit plugin test under Ant but
org.eclipse.hyades.internal.execution.local.control.InactiveProcessException
 occured.
 The same test is executed without problems inside Eclipse workbench.
 I use KUbuntu 7.04, tptp.runtime.allInOne.linux.gtk.x86-TPTP-4.4.1,
wizard based rcp application from eclipse, ant 1.6.5. I can start
Agent controller without problems and test it. If you need traces from
servicelog file with "INFORMATION" trace level I can provide.

 I read a lot of topics in cdt-dev mail list about running tptp under
ant, tried to debug to find  out how test.xml should be written, but
at the end I can not resolve the problem with this exception.
Can somebody to help me?

 I receive following stack trace exception during running test case under ant:

 [tptp:test] Test started!
 [tptp:test] Test 'tp/tp_test.launch' executing
 [tptp:test] org.eclipse.hyades.internal.execution.local.control.InactiveProcessException
 [tptp:test]     at
 org.eclipse.hyades.execution.harness.TestExecutionHarnessExecutorStub.launch(TestExecutionHarnessExecutorStub.java:422)
 [tptp:test]     at
 org.eclipse.hyades.execution.harness.TestExecutionHarness.launchTestExecution(TestExecutionHarness.java:2098)
 [tptp:test]     at
 org.eclipse.hyades.execution.harness.TestExecutionHarness.access$2(TestExecutionHarness.java:1830)
 [tptp:test]     at
 org.eclipse.hyades.execution.harness.TestExecutionHarness$2.run(TestExecutionHarness.java:750)
 [tptp:test]     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
 [tptp:test] java.lang.RuntimeException:
 org.eclipse.hyades.internal.execution.local.control.InactiveProcessException
 [tptp:test]     at
 org.eclipse.hyades.execution.harness.TestExecutionHarnessExecutorStub.handleException(TestExecutionHarnessExecutorStub.java:347)
 [tptp:test]     at
 org.eclipse.hyades.execution.harness.TestExecutionHarnessExecutorStub.launch(TestExecutionHarnessExecutorStub.java:434)
 [tptp:test]     at
 org.eclipse.hyades.execution.harness.TestExecutionHarness.launchTestExecution(TestExecutionHarness.java:2098)
 [tptp:test]     at
 org.eclipse.hyades.execution.harness.TestExecutionHarness.access$2(TestExecutionHarness.java:1830)
 [tptp:test]     at
 org.eclipse.hyades.execution.harness.TestExecutionHarness$2.run(TestExecutionHarness.java:750)
 [tptp:test]     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
 [tptp:test] Caused by:
 org.eclipse.hyades.internal.execution.local.control.InactiveProcessException
 [tptp:test]     at
 org.eclipse.hyades.execution.harness.TestExecutionHarnessExecutorStub.launch(TestExecutionHarnessExecutorStub.java:422)
 [tptp:test]     ... 4 more
 [tptp:test] org.eclipse.core.runtime.CoreException: IWAT4039E The Test
 Execution Harness reported the following
 problems:org.eclipse.hyades.internal.execution.local.control.InactiveProcessException
 [tptp:test]     at
 org.eclipse.hyades.test.core.launch.delegates.AbstractLaunchConfigurationDelegate2.launch(AbstractLaunchConfigurationDelegate2.java:195)
 [tptp:test]     at
 org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:759)
 [tptp:test]     at
 org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:608)
 [tptp:test]     at
 org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:601)
 [tptp:test]     at
 org.eclipse.hyades.test.core.services.AbstractTestExecutionService.launch(AbstractTestExecutionService.java:795)
 [tptp:test]     at
 org.eclipse.hyades.test.core.services.AbstractTestExecutionService.execute(AbstractTestExecutionService.java:583)
 [tptp:test]     at
 org.eclipse.hyades.automation.server.AbstractService.execute(AbstractService.java:43)
 [tptp:test]     at
 org.eclipse.hyades.automation.server.ServiceProxy$1.run(ServiceProxy.java:141)
 [tptp:test]     at
 org.eclipse.hyades.automation.core.utils.ReusableThread.run(ReusableThread.java:131)
 [tptp:test]     at java.lang.Thread.run(Thread.java:595)

 test.xml is :

 <project name="TPTP Ant Tasks Test Script"
  default="test"
  xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant">

        <!--
        vmargs="-Xdebug -Xnoagent -Djava.compiler=NONE
 -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8008"
        <fileset dir="${project.dir}">
        <include name="**/*.testsuite"/>
        </fileset>
        -->

        <target name="test" description="Executes TPTP Test Suites
 using default TPTP Ant Tasks">

        <taskdef uri="antlib:org.eclipse.hyades.automation.client.adapters.ant"

 resource="org/eclipse/hyades/automation/client/adapters/ant/antlib.xml"
                    classpath="/home/knk/tmp/tp/tp/ant-tptp.jar"/>

        <property name="tptp.automation.eclipse"
 value="/home/knk/tmp/host_eclipse"/>
        <property name="tptp.test.workspace" value="/home/knk/tmp/tp"/>
        <property name="tptp.test.connection"
 value="tptp:rac://localhost:10002/default"/>
        <property name="tptp.test.configuration" value="tp/tp_test.launch"/>
        <property name="tptp.test.deployment" value="tp.deploy"/>
        <property name="project.dir" value="${tptp.test.workspace}/tp"/>

   <tptp:test
        synchronicity="synchronous">
   </tptp:test>

  </target>
 </project>

 Configuration file (launch) is:

 <?xml version="1.0" encoding="UTF-8"?>
 <launchConfiguration type="org.eclipse.hyades.test.ui.launch.basicTest">
 <stringAttribute
key="org.eclipse.hyades.test.ui.launch.deploymentURI"
value="platform:/resource/tp/tp.deploy"/>
 <stringAttribute
key="org.eclipse.hyades.test.ui.launch.deploymentURIFragment"
value="E81FB3BEAFD19966A713AEA0E46F11DC"/>
 <stringAttribute key="org.eclipse.hyades.test.ui.launch.testURI"
value="platform:/resource/tp/src/tp/tp.testsuite"/>
 <stringAttribute
key="org.eclipse.hyades.test.ui.launch.testURIFragment"
value="D24AE79BB247E110FBCF76F0E44B11DC"/>
 <booleanAttribute key="org.eclipse.hyades.test.ui.launch.useDefaults"
value="true"/>
 <stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER"
value="org.eclipse.hyades.test.core.testSourcePathProvider"/>
 </launchConfiguration>

 I attach the workspace with dummy rcp application.

 Regards
 Krasi

Attachment: tp_ws.tar.gz
Description: GNU Zip compressed data


Back to the top