How can I configure MTLM to use my custom bug / test case type?
I got this Q on my previous blog and thought of posting a separate post on it as it's a bit tricky to do it and hence other folks may need this info.
In Microsoft Test and Lab Manager (MTLM), we don’t provide any UI way to set a particular work item type as default work item type for a category. Basically, if I’ve added a new bug type say “CustomBug” to TFS and want MTLM to refer to that type always while opening a new bug etc then there is no UI way to achieve it.
But yes, you can do it through witadmin using importcategories / exportcategories command.
First you need to exports the XML definition of categories defined on the Team Foundation Server by using exportcategories command e.g.
The following command exports the work item type categories defined for the AdventureWorks project to the Categories XML file:
C:\Program Files\Microsoft Visual Studio 10.0\VC>witadmin exportcategories /collection:"http://AdventureWorksServer:8080/AWTeam/Collection1”
C:\Program Files\Microsoft Visual Studio 10.0\VC>witadmin importcategories /collection:"http://AdventureWorksServer:8080/AWTeam/Collection1”