Make Test Cases Readonly in Azure DevOps Services.

This post has been republished via RSS; it originally appeared at: New blog articles in Microsoft Community Hub.

This blog content is compiled by @Ahetejaz from Azure DevOps CSS support team. Recently, he helped a customer in making a TestCase Readonly in Inherited Process.

 

Requirement: Azure DevOps Services (inherited Process Template): Test cases to be made read only. Other work item types should be editable.

Scenario: Generally, test cases move from "Design", "Ready" and "Closed" state. In Design state, tester will construct the test case and will move it to Ready state once the construction is completed. At this point, team may want to freeze the test case from further editing and admin would like to make it read only.

 

1. Make sure to have access to modify process template

  https://docs.microsoft.com/en-us/azure/devops/organizations/settings/work/manage-process?view=azure-devops#prerequisites

2. Navigate to the process template -> https://dev.azure.com/{YourOrgName}/_settings/process and select your customized Inherited process. Select work item type - Test Case.

 

image1.png

 

3. Navigate to the ‘Rules’ section and create below custom rules.

4. Create a rule 'when a work item state is Ready' and make the available fields read only in the Actions.

 

image2.png

 

At the time of writing the blog, we have specific limit on actions which could be included as part of one rule hence we will add other fields as part of another rule.

 

image3.png

5. Add new rule to restrict the transition from Ready to Design and Ready to Closed.

 

image4.png

 

In case if the rule is no longer needed then it could be disabled.

 

image5.png

Cheers!

Ahmad

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.