Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 220543 - Error reporting does not provide the cause for a failed test execution.
Summary: Error reporting does not provide the cause for a failed test execution.
Status: CLOSED DUPLICATE of bug 178595
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:
: 211091 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-27 08:12 EST by Paul Slauenwhite CLA
Modified: 2016-05-05 10:33 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Slauenwhite CLA 2008-02-27 08:12:28 EST
Error reporting does not provide the cause for a failed test execution.

For example, when launching a JUnit Plug-in test suite (via ASF) without a valid Workbench Location, a InactiveProcessException exception is thrown:

[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

The test runner should do a better job at capturing the root cause of the failed test execution and reporting it back to the test harness.
Comment 1 Paul Slauenwhite CLA 2008-02-27 08:14:03 EST
In addition, when test runners launch Eclipse applications, the fatal errors recorded in the .log file should be captured and returned to the user. 
Comment 2 Paul Slauenwhite CLA 2008-05-05 08:43:57 EDT
*** Bug 211091 has been marked as a duplicate of this bug. ***
Comment 3 Paul Slauenwhite CLA 2008-05-21 14:18:04 EDT
Deferring to future as approved by the TPTP PMC (http://dev.eclipse.org/mhonarc/lists/tptp-pmc/msg04926.html).
Comment 4 Paul Slauenwhite CLA 2008-05-27 09:44:17 EDT

*** This bug has been marked as a duplicate of bug 178595 ***
Comment 5 Paul Slauenwhite CLA 2008-05-27 14:42:13 EDT
Closing.