TFS Test Plans Merge from different Projects

1k views Asked by At

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

There are 1 answers

7
Andy Li-MSFT On BEST ANSWER

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 :

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

enter image description here