将TFS 2012升级到TFS 2015 2.1后,我在尝试连接到TFS项目时收到 Microsoft测试管理器中的错误:
After upgrading TFS 2012 to TFS 2015 2.1, I am receiving error in Microsoft Test Manager when trying to connect toTFS project:
VS402325:工作项类型类别Microsoft.TestPlanCategory在项目中不存在"MyTFSProjectName"
VS402325: Work item type category Microsoft.TestPlanCategory does not exist in project "MyTFSProjectName"
推荐答案
嗨Belcavitch,
Hi Belcavitch,
感谢您在此处发帖。
根据错误消息,类别中没有Microsoft.TestPlanCategory 。我建议你可以尝试通过以下步骤手动添加类别:
According to the error message, there is no Microsoft.TestPlanCategory in the Categories. I suggest that you could try to add the category manually by the following steps:
1. 在团队资源管理器中下载最新版本的流程模板 。
2.通过以下命令将测试计划工作项类型从流程模板导入团队项目:
2.Import the Test Plan work item types from the process template to the team project by the following command:
witadmin importwitd / collection:CollectionURL / p:" ProjectName" /f:"DirectoryPath\WITDefinitionFile.xml"
witadmin importwitd /collection:CollectionURL /p:"ProjectName" /f:"DirectoryPath\WITDefinitionFile.xml"
3.通过以下命令导出类别:
3.Export the Categories by the following command:
witadmin exportcategories / collection:CollectionURL / p:ProjectName / f:" DirectoryPath \Categories
witadminexportcategories /collection:CollectionURL /p:ProjectName /f:"DirectoryPath\Categories
4.将测试计划添加到类别:
4.Add the test plan to Categories:
<CATEGORY name="Test Plan Category" refname="Microsoft.TestPlanCategory"> <DEFAULTWORKITEMTYPE name="Test Plan" /> </CATEGORY>5.将类别导入团队项目。
5.Import the Categories back to the team project.
witadmin importcategories / collection:CollectionURL / p:ProjectName / f:" DirectoryPath \Categories
witadmin importcategories /collection:CollectionURL /p:ProjectName /f:"DirectoryPath\Categories
有关详细信息,请参阅以下内容链接:
For more information, you could refer to the following link:
msdn.microsoft/en-us/library/dn789837.aspx
您需要执行 配置功能向导
And you need to do the Configure Features Wizard after the upgrade.
最好的问候
Limitxiao Gao
Limitxiao Gao
更多推荐
项目中不存在Microsoft.TestPlanCategory
发布评论