Community
Participate
Working Groups
Build ID: tptp45 if6 Steps To Reproduce: 1. Created a junit test project and a encrypted datapool 2. Reference this encrypted datapool into junit test . 3. Prompt user to input password when running this junit test. 4. decrypted all encrypted data in datapool and saved changes to make sure there are no encrypted data in datapool now. 5. Still prompt user to input password (should no dialog poped -up to prompt user input passwords )when running junit test . More information: About this problem , I have checked the workbench side's code , In order to get encrypted datapool list which used in current test , I have done the below steps : 1) added a extension point of launchconfigDatapoolHandler in the plugin org.eclipse.hyades.test.core and implemented this extension point as org.eclipse.hyades.test.core.internal.launch.datapool.extensions.JUnitLaunchconfigDatapoolHandler class , in this class I will get encrypted datapool name list from TPFDeployment & TPFTest 2) Invoke this Junit extension in the class of org.eclipse.hyades.test.core.launch.delegates.AbstractLaunchConfigurationDelegate2 : maybe lines : 197 - 213 I guess this problem only probably caused in above 2 places : TPFDeployment & TPFTest which used in the JUnitLaunchconfigDatapoolHandler are not updated after decrypted datapool ; or code of #2 wroted in wrong place due to JUnitLaunchconfigDatapoolHandler are not updated in workbench side at that time
Hi Paul : Could you pls help forward below problem to right TPTP developer ,such as owner for test.core component ? thanks very much !
Downgrading the severity since this is an usability issue. Xin, I will implement the fix for this defect.
Hours worked on debugging and creating/testing the patch. The problem is that the challenge is removed by setting it to null when there are no remaining encrypted variables but the org.eclipse.hyades.test.ui.datapool.internal.control.DatapoolTable.changeKey(String, IDatapool) method does not handle the case when the key is null.
(In reply to comment #3) > Hours worked on debugging and creating/testing the patch. > > The problem is that the challenge is removed by setting it to null when there > are no remaining encrypted variables but the > org.eclipse.hyades.test.ui.datapool.internal.control.DatapoolTable.changeKey(String, > IDatapool) method does not handle the case when the key is null. > Also, the password needs to be removed from memory, forcing the same behavior as closing/opening the datapool editor.
Created attachment 97294 [details] Patch.
Duwayne, please review this morning so we can request PMC approval to integrate in I8.
Patch checked into CVS (HEAD).
Verfied and it's ok to close now .