Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 216078 - Junit plug-in test type does not support encrypted datapools.
Summary: Junit plug-in test type does not support encrypted datapools.
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Paul Slauenwhite CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 202695
Blocks:
  Show dependency tree
 
Reported: 2008-01-22 01:40 EST by Xin Ying Huang CLA
Modified: 2016-05-05 10:29 EDT (History)
5 users (show)

See Also:
dmorris: review+


Attachments
Patch. (1.30 KB, patch)
2008-05-08 14:29 EDT, Paul Slauenwhite CLA
no flags Details | Diff
workspace I used to verify this defect (487.93 KB, application/x-zip-compressed)
2008-05-15 03:25 EDT, Xin Ying Huang CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xin Ying Huang CLA 2008-01-22 01:40:29 EST
In tptp45 ,it's proposed to support encrypted datapool variable functions in order to protect confidential informations when running test suites/cases which use datapool variables.

  To support this function in Junit plug-in test suites/cases , developer should implement extension point of launchconfigDatapoolHandler in plugin org.eclipse.hyades.test.core .

  Detail information about steps how to implement this point ,pls refer documenatation in schema of this extension point .  there are already has a extension implementation named JUnitLaunchconfigDatapoolHandler in plugin org.eclipse.hyades.test.core .

  This defect is depends on defect 202695 :
https://bugs.eclipse.org/bugs/show_bug.cgi?id=202695
Comment 1 Paul Slauenwhite CLA 2008-04-22 08:30:24 EDT
Requires a test case added to /org.eclipse.hyades.test.ui.datapool.tests/manual/datapool/Test.UI.EncryptedDatapool_editing.testsuite for the JUnit Plug-in test type.
Comment 2 Paul Slauenwhite CLA 2008-04-22 12:14:37 EDT
(In reply to comment #1)
> Requires a test case added to
> /org.eclipse.hyades.test.ui.datapool.tests/manual/datapool/Test.UI.EncryptedDatapool_editing.testsuite
> for the JUnit Plug-in test type.
> 

These manual tests have been automated.  See:

/org.eclipse.hyades.test.ui.datapool.tests/junit/datapool/Test.UI.DatapoolEditor_running.testsuite
/org.eclipse.hyades.test.ui.datapool.tests/junit/datapool/Test.UI.EncryptedDatapoolEditor_running.testsuite
Comment 3 Paul Slauenwhite CLA 2008-05-06 16:07:25 EDT
Implementations of the org.eclipse.hyades.test.core.launchDatapoolCheckPass and org.eclipse.hyades.test.core.launchconfigDatapoolHandler extension points for the JUnit Plug-in test type (org.eclipse.hyades.test.plugin.junit.testSuite) must be added to the org.eclipse.tptp.test.tools.junit.plugin plug-in.
Comment 4 Paul Slauenwhite CLA 2008-05-08 14:28:50 EDT
Hours worked to create/test patch.  

Also, new test suites were added to test JUnit Plug-in Tests using both encrypted and plain datapools:

/org.eclipse.hyades.test.ui.datapool.tests/junit_plugin/datapool/Test.UI.Datapool_Running.testsuite
/org.eclipse.hyades.test.ui.datapool.tests/junit_plugin/datapool/Test.UI.EncryptedDatapool_Running.testsuite
Comment 5 Paul Slauenwhite CLA 2008-05-08 14:29:17 EDT
Created attachment 99347 [details]
Patch.
Comment 6 Paul Slauenwhite CLA 2008-05-09 06:00:04 EDT
Duwayne, please review this morning so we can request PMC approval to integrate in I8.
Comment 7 Paul Slauenwhite CLA 2008-05-09 14:07:52 EDT
Patch checked into CVS (HEAD).
Comment 8 Xin Ying Huang CLA 2008-05-15 03:25:04 EDT
Created attachment 100371 [details]
workspace I used to verify this defect

I have tried both projects of datapoolPlugin and org.eclipse.hyades.test.ui.datapool.tests\junit_plugin\AllTests.testsuite ,but both are met errors :

  java.lang.RuntimeException: org.eclipse.hyades.internal.execution.local.control.InactiveProcessException
	at org.eclipse.hyades.execution.harness.TestExecutionHarnessExecutorStub.handleException(TestExecutionHarnessExecutorStub.java:346)
	at org.eclipse.hyades.execution.harness.TestExecutionHarnessExecutorStub.launch(TestExecutionHarnessExecutorStub.java:433)
	at org.eclipse.hyades.execution.harness.TestExecutionHarness.launchTestExecution(TestExecutionHarness.java:2076)
	at org.eclipse.hyades.execution.harness.TestExecutionHarness.access$1(TestExecutionHarness.java:1808)
	at org.eclipse.hyades.execution.harness.TestExecutionHarness$2.run(TestExecutionHarness.java:728)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.hyades.internal.execution.local.control.InactiveProcessException
	at org.eclipse.hyades.execution.harness.TestExecutionHarnessExecutorStub.launch(TestExecutionHarnessExecutorStub.java:421)
	... 4 more



 For more error info ,pls refer .log file of this workspace and try to run Junit Plugin testsuites under my workspace again
Comment 9 Paul Slauenwhite CLA 2008-05-16 07:15:54 EDT
(In reply to comment #8)
> Created an attachment (id=100371) [details]
> workspace I used to verify this defect
> 
> I have tried both projects of datapoolPlugin and
> org.eclipse.hyades.test.ui.datapool.tests\junit_plugin\AllTests.testsuite ,but
> both are met errors :
> 
>   java.lang.RuntimeException:
> org.eclipse.hyades.internal.execution.local.control.InactiveProcessException
>         at
> org.eclipse.hyades.execution.harness.TestExecutionHarnessExecutorStub.handleException(TestExecutionHarnessExecutorStub.java:346)
>         at
> org.eclipse.hyades.execution.harness.TestExecutionHarnessExecutorStub.launch(TestExecutionHarnessExecutorStub.java:433)
>         at
> org.eclipse.hyades.execution.harness.TestExecutionHarness.launchTestExecution(TestExecutionHarness.java:2076)
>         at
> org.eclipse.hyades.execution.harness.TestExecutionHarness.access$1(TestExecutionHarness.java:1808)
>         at
> org.eclipse.hyades.execution.harness.TestExecutionHarness$2.run(TestExecutionHarness.java:728)
>         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Caused by:
> org.eclipse.hyades.internal.execution.local.control.InactiveProcessException
>         at
> org.eclipse.hyades.execution.harness.TestExecutionHarnessExecutorStub.launch(TestExecutionHarnessExecutorStub.java:421)
>         ... 4 more
> 
> 
> 
>  For more error info ,pls refer .log file of this workspace and try to run
> Junit Plugin testsuites under my workspace again

Using the TPTP-4.5.0-200805150100 build, this is working as designed.  Please try running /org.eclipse.hyades.test.ui.datapool.tests/junit_plugin/datapool/Test.UI.EncryptedDatapool_Running.testsuite and note the instrucitons in the description of the test suite.
Comment 10 Xin Ying Huang CLA 2008-05-19 03:19:28 EDT
Closed