Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 220391 - Connection property does not deploy all dependencies and execute JUnit Plug-in Tests correctly.
Summary: Connection property does not deploy all dependencies and execute JUnit Plug-i...
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 major (vote)
Target Milestone: ---   Edit
Assignee: Paul Slauenwhite CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 220390 (view as bug list)
Depends on:
Blocks: 211751
  Show dependency tree
 
Reported: 2008-02-26 11:33 EST by Joel Cayne CLA
Modified: 2016-05-05 10:49 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Cayne CLA 2008-02-26 11:33:15 EST
Using the connection property (<property name="tptp.test.connection" value="tptp:rac://${hostname}:10002/default" />), JUnit Plug-in Tests cannot be executed.
Comment 1 Paul Slauenwhite CLA 2008-02-27 08:19:21 EST
Exception when lauching a JUnit Plug-in test suite via ASF using the connection property:

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

BUILD FAILED
/home/build/BVT/scripts/build.xml:28: java.lang.NullPointerException

There are two issues:

1) The error returned does not accurately reflect what is failing.  See defect #220543.

2) The deployment created under the covers to execute the test suite should handle a user-defined Location/Workbench Location.  This would require a new property (including documentation http://help.eclipse.org/help33/topic/org.eclipse.hyades.test.doc.user/ref/rsupported-test-execution-service-properties.htm) for specificing a Location/Workbench Location file.

Although this is required for the TPTP BVT, the work-around is to use a deployment with a Workbench Location or a .launch file from an Eclipse launch configuration.
Comment 2 Paul Slauenwhite CLA 2008-05-21 14:20:20 EDT
Deferring to future as approved by the TPTP PMC (http://dev.eclipse.org/mhonarc/lists/tptp-pmc/msg04926.html).
Comment 3 Paul Slauenwhite CLA 2008-06-03 11:11:44 EDT
Increasing the severity since Bobby was able to run a TPTP JUnit Plug-in test suite using the TPTP 4.4.1 driver without specifying a deployment (and workbench location).  That is, the local deployment was used.

Bobby, can you confirm if there was a launch configuration created in the 4.4.1 Eclipse UI for the test suite(s) that were executed via ASF?
Comment 4 Bobby CLA 2008-06-04 04:51:00 EDT
Paul, in 441 the plugin junits executes fine from ant using the defaults, no extra configuration was done (no deployment, artifacts or location were created).
Comment 5 Paul Slauenwhite CLA 2008-06-04 06:41:45 EDT
(In reply to comment #4)
> Paul, in 441 the plugin junits executes fine from ant using the defaults, no
> extra configuration was done (no deployment, artifacts or location were
> created).
> 

Thanks Bobby.  Did you create a a launch configuration in the Eclipse UI for the test suite(s) (e.g. run the test suite from the Eclipse UI) before they were executed via ASF?
Comment 6 Bobby CLA 2008-06-05 10:26:34 EDT
Hi Paul,

No I didn't create anything extra, just checked out the test projects from cvs, unzipped tptp 441 and ran against it.
Comment 7 Paul Slauenwhite CLA 2008-08-11 15:09:53 EDT
This is required for the TPTP BVT since the artifact and workbench location need to be manually generated when testing a build with new plug-in versions.

In addition:

[220390]

Connection property does not deploy all dependencies

Using the connection property (<property name="tptp.test.connection"
value="tptp:rac://${hostname}:10002/default" />) does not deploy all
dependencies.

For example, when running the
/org.eclipse.hyades.test.ui.logViewer.tests/JUnit/Test.UI.FrameworkEditors_logViewer_UtilitiesTest.testsuite
JUnit, the depednanct org.eclipse.hyades.test.ui plug-in (and thus
org.eclipse.hyades.test.ui.forms.base.ExecutionEventDetailsPart.java class) is
not deployed. 

Although this is required for the TPTP BVT, the work-around is to use a
deployment/artifact/location containing the necessary dependencies.
Comment 8 Paul Slauenwhite CLA 2008-08-11 15:09:58 EDT
*** Bug 220390 has been marked as a duplicate of this bug. ***
Comment 9 Paul Slauenwhite CLA 2008-09-16 07:01:49 EDT
Required since blocking the TPTP test automation.
Comment 10 Paul Slauenwhite CLA 2009-01-27 13:25:14 EST
Deferring to TPTP 4.5.3 since TPTP 4.5.2 development is closed (http://www.eclipse.org/tptp/home/project_info/releaseinfo/4.5.2/schedule.html) and P2 defects are not considered candidates during release shut-down.
Comment 11 Paul Slauenwhite CLA 2009-06-29 15:09:29 EDT
Required for the TPTP BVTs.
Comment 12 Paul Slauenwhite CLA 2010-06-24 12:47:34 EDT
No longer required by a consuming product.
Comment 13 Joel Cayne CLA 2010-06-28 11:30:25 EDT
Closing.