Do you want to delete a Test Plan from MTM? Fair enough.
Unfortunately the documentation is a bit outdated here – a quick Google to find this, and it is about Visual Studio 2010. It would work – but only if you are connected to a Team Foundation Server without Update 3.
If instead you are running 2013.3+, you would be greeted with a message saying … “Deleting a test plan is not supported for current version of Team Foundation Server. Use witadmin tool 'destroywi' command to destroy test plan work item.”
It is not a bug, but it is by design instead - it is the only downside of the conversion to Work Item Types of the Test Suites and Test Plans.
Basically prior to Team Foundation Server 2013.3 they were ‘special artifacts’, meaning you wouldn’t be able to treat them like Work Items – including advanced querying, charting, etc.
The Update 3 converted the whole thing to plain Work Item Types, but this means you no longer get the special feature of deleting it via MTM, instead you should run witadmin destroywi from the Developer Command Line – which is the only way of doing so. That is because deleting a Work Item is not really something that happens every day, and if done in the wrong way (for example, truncating relationships in linked Work Items) it could lead to issues with the Work Item Store.
Hello Matt,
ReplyDeleteI'd like to remove Test Plans from the Testing Center list in MTM, but I don't want to remove the references to the actual artifacts for the Test Plans to keep an audit of successfully passed test plans.
Thoughts?
I would like to do the same. After deleting using witadmin the test plan still shows in the list
ReplyDeleteWith 21015, even if you 'inactivate' a test plan, it still shows up on the Test Managers HOME screen where you select a test plan to open.... this list is going to get very big very soon.
ReplyDelete2015 update 2 added a filter next to the Test Plan Drop Down in the web browser, you can use this to filter out the closed test plans.
ReplyDeleteThis is one of many reasons TFS is garb. Jira/Jenkins is much much better.
ReplyDelete