Is there a way to password protect a folder in Test plan.?
I have a scenario where in a manager has a folder which contains test plans which he wants to preserve and lock it so that no one can change the test plans. but at the same time have an other folder where in he and his testers use the same test Plans but, open for editing while using it for execution. after a peropd of time the manager would like to consoldate and authenticat the test plans form both the folders and Then preserve the authenticated folder and lock it from further changes being made.
Not in the manner you want to - those folders are driven at a high level, so the group that can make a change to one folder can make it to all.
I implemented a work-flow solution on the back-end at a previous company where if the status field was set to a specific state, it would lock all the editable fields unless you were in a specific access group. This was put in place to allow the reviewing of test cases, and when it was determined to be complete, it would be locked so no one could go back in and edit it.
You might have to follow that same path where you identify everything that needs to be locked, and then set up the code to look at the group access, and the value of a field, then set the state of the fields you don't want changed to locked=TRUE
sorry - I no longer work there and don't have access to the specific code.
What I can give you is the concept.
If you look at the Event triggers of TestPlan_EnterModule and TestPlan_MoveTo, you can then evaluate the group permissions of the current user. If they aren't in the group specified to make changes, then you will have to identify all the objects on the screen (the fields are easy enough, but the actions are a little tricky) and then either set them to Enabled = FALSE (I was incorrect in my locked property in my previous post).
You can find all the actions to disable by adding the line <font class="small">Code:</font><hr /><pre>msgbox ActionName</pre><hr /> in the TestPlan_ActionCanExecute module, then for each action button, right click, etc you will need to click and then note the action name shown in the message box.
For each of those actions you will need to disable it.
Also remember that you need to set it up in a way that you toggle it all back to enabled if the person does have permissions.