TFS Test Plans Merge from different Projects

淺唱寂寞╮ 提交于 2019-12-11 18:06:59

问题


I would like to merge an existing MTP (Master Test Plan) defined as a Test Suite with subfolders and TestCases, into another MTP (same structured), but located in a different project in TFS2017. The idea is to have both project sharing the same MTP, so any change can be visible in both projects. By now, I've just seen the existing possibilities about cloning/copying test cases between different test suites, but all of them should be part of the same project. I guess there must be an easy way of doing that merge instead of manually, but I can't find the way to do it.


回答1:


We can use an Existing Test Case (by reference) cross projects, but cannot share the same Test Plan cross projects.

If you wish to have a discrete copy of a test case, test cases, or test suites across projects (to a test plan that resides in a different project), you can perform a “clone” across projects via the command line (tcm.exe).

You could do this in MTM, could also use Tcm.exe command to copy test suites.

Please reference below articles :

  • Copying and cloning test suites and test cases.
  • Microsoft Test Manager – Working Across Projects: Adding an Existing Test Case vs.Cloning/Copying

Actually, there has been a related uservoice for your requirement: Export test plan tree between projects and collections in MTM

We have enabled both Test Plan and Test Suite clone capabilities within the product. See https://msdn.microsoft.com/en-us/library/hh543843.aspx

This allows you to clone test plans/test suites across projects within a collection. For moving artifacts (including test artifacts) across collections, you can use the “TFS Integration Platform toolkit”.

Marking this item as “Completed”.


UPDATE:

To copy test cases, or test suites across projects, you can use “clone” via the command line (tcm.exe).

Below sample for your reference:

Run cmd
cd C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
tcm suites /clone /collection:http://server:8080/tfs/CollectionLC /teamproject:0418Scrum /suiteid:271 /destinationteamproject:TFVC-Scrum /destinationsuiteid:274 /overridefield:"System.IterationPath"="TFVC-Scrum\Sprint 2" /overridefield:"System.AreaPath"=TFVC-Scrum



来源:https://stackoverflow.com/questions/46153455/tfs-test-plans-merge-from-different-projects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!