{"id":3053,"date":"2013-05-03T04:39:00","date_gmt":"2013-05-03T04:39:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2013\/05\/03\/cloning-test-plans-using-microsoft-test-manager\/"},"modified":"2022-07-19T07:14:55","modified_gmt":"2022-07-19T15:14:55","slug":"cloning-test-plans-using-microsoft-test-manager","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/cloning-test-plans-using-microsoft-test-manager\/","title":{"rendered":"Cloning test plans using Microsoft Test Manager"},"content":{"rendered":"<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  <span style=\"font-family: 'Calibri','sans-serif';font-size: 11pt\">In <a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkId=273878\">Visual Studio Update 2<\/a>, we introduced the capability to clone test plans in Microsoft Test Manager. This feature lets you clone test plan artifacts within a given team project, by creating copies of all the test cases, shared steps and requirements, recreating the same suite structure and applying the same test settings, environments, builds, configurations and other plan properties(test results and bugs are not cloned). Read through this post to know more about this functionality.<\/span>\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  <span style=\"font-family: 'Calibri','sans-serif';font-size: 11pt\">\u00a0<\/span>\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  <span style=\"font-family: 'Calibri','sans-serif';font-size: 11pt\">We have often heard requests from our customers about being able to clone test plans while working across sprints or releases. While we already had the functionality to clone test suites through the tcm.exe command line, in\u00a0Visual Studio\u00a02012 and had enhanced it further in VS Update 1, we have added the capability to clone test plans and suites from the MTM user interface, in VS update 2.<\/span>\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  \u00a0\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  <span style=\"line-height: 115%;font-family: 'Calibri','sans-serif';font-size: 11pt\">To access this feature,\u00a0I can go to the test plan properties page(Testing Center-> Plan -> Properties) and click on the &#8216;Clone&#8217; option.<\/span>\u00a0\n<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/1185.1.png\" alt=\"\" border=\"0\" \/><\/p>\n<p><span style=\"line-height: 115%;font-family: 'Calibri','sans-serif';font-size: 11pt\">Let&#8217;s say that I want to clone the current sprint&#8217;s (sprint 1) test plan, to use it for the next sprint (sprint 2). I click on the &#8216;Clone&#8217; option which shows the following dialog:<\/span><\/p>\n<p><span style=\"line-height: 115%;font-family: 'Calibri','sans-serif';font-size: 11pt\"><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/4530.2.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/4530.2.png\" alt=\"\" border=\"0\" \/><\/a><\/span><\/p>\n<p><span style=\"line-height: 115%;font-family: 'Calibri','sans-serif';font-size: 11pt\">I can specify the suites that I want to clone by specifying the suites in the &#8216;Clone from&#8217; area.\u00a0 If I don\u2019t select any suite, a blank test plan will get created with the source test plan&#8217;s properties applied to the new test plan.<\/span><\/p>\n<p><span style=\"line-height: 115%;font-family: 'Calibri','sans-serif';font-size: 11pt\"><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/1016.3.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/1016.3.png\" alt=\"\" border=\"0\" \/><\/a><\/span><\/p>\n<p><span style=\"line-height: 115%;font-family: 'Calibri','sans-serif';font-size: 11pt\"><span style=\"line-height: 115%;font-family: 'Calibri','sans-serif';font-size: 11pt\">Selecting a node will select all its children recursively and vice-versa. I have selected all suites except the &#8216;Regression tests&#8217; suite since I do not want to clone that.<\/span><\/span><\/p>\n<p><span style=\"line-height: 115%;font-family: 'Calibri','sans-serif';font-size: 11pt\"><span style=\"line-height: 115%;font-family: 'Calibri','sans-serif';font-size: 11pt\"><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/7776.4.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/7776.4.png\" alt=\"\" border=\"0\" \/><\/a><\/span><\/span><\/p>\n<p><span style=\"font-family: 'Calibri','sans-serif';font-size: 11pt\">After the suite selection, I also have an option to specify whether I want to clone the requirement work items (associated to the requirement based suites in my selection) as part of this operation. If I don\u2019t check this option, static suites will be created corresponding to the requirement based suites selected by me, and the relevant test cases will be cloned and put inside the static suites.<\/span><\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  <span style=\"font-family: 'Calibri','sans-serif';font-size: 11pt\"><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/2664.5.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/2664.5.png\" alt=\"\" border=\"0\" \/><\/a><\/span>\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  \u00a0\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  <span style=\"font-family: 'Calibri','sans-serif';font-size: 11pt\">For the destination test plan, I need to specify its name, area path and iteration path in the &#8216;Clone to&#8217; area. All the test cases that get cloned as part of this operation will also use the same area and iteration paths.<\/span>\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  <span style=\"font-family: 'Calibri','sans-serif';font-size: 11pt\"><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/3660.6.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/3660.6.png\" alt=\"\" border=\"0\" \/><\/a><\/span>\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  \u00a0\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  <span style=\"font-family: 'Calibri','sans-serif';font-size: 11pt\">Once done with specifying the fields, I can click on the &#8216;Clone&#8217; button. This will initiate the test plan clone operation and show me a progress view of the same.<\/span>\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  <span style=\"font-family: 'Calibri','sans-serif';font-size: 11pt\"><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/1307.7.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/1307.7.png\" alt=\"\" border=\"0\" \/><\/a><\/span>\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  \u00a0\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  <span style=\"font-family: 'Calibri','sans-serif';font-size: 11pt\"><span style=\"line-height: 115%;font-family: 'Calibri','sans-serif';font-size: 11pt\">Once completed, the status will change to &#8216;Succeeded&#8217; and the details like duration, date started, date completed, total number of test cases, shared steps and requirements cloned, etc. will get updated.<\/span><\/span>\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  <span style=\"font-family: 'Calibri','sans-serif';font-size: 11pt\"><span style=\"line-height: 115%;font-family: 'Calibri','sans-serif';font-size: 11pt\"><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/2072.8.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/2072.8.png\" alt=\"\" border=\"0\" \/><\/a><\/span><\/span>\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  \u00a0\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  <span style=\"line-height: 115%;font-family: 'Calibri','sans-serif';font-size: 11pt\">If I want to view the new test plan I can select it from the test plan selector dialog and connect to it. All the properties, test suites, test cases, requirements of the sprint\u00a01 test plan have been added as desired.<\/span>\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  <span style=\"line-height: 115%;font-family: 'Calibri','sans-serif';font-size: 11pt\"><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/4682.9.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/4682.9.png\" alt=\"\" border=\"0\" \/><\/a><\/span>\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  \u00a0\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  \u00a0\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  <span style=\"font-family: 'Calibri','sans-serif';font-size: 11pt\">For all the work items that got cloned as part of this process, a comment mentioning the clone operation ID and the source work item ID, is added to work item&#8217;s history for tracking and auditing purposes. <\/span>\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  <span style=\"font-family: 'Calibri','sans-serif';font-size: 11pt\"><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/5710.12.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/5710.12.png\" alt=\"\" border=\"0\" \/><\/a><\/span>\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  \u00a0\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  \u00a0\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  <span style=\"font-family: 'Calibri','sans-serif';font-size: 11pt\">This feature can also be accessed by using the &#8216;Clone&#8217; option in Test Plan Manager (Testing Center-> Organize-> Test Plan Manager) or right clicking on the root node (in Testing Center-> Plan -> Contents) and selecting the &#8216;Clone plan&#8217; option.<\/span>\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  <span style=\"font-family: 'Calibri','sans-serif';font-size: 11pt\"><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/2158.11.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/2158.11.png\" alt=\"\" border=\"0\" \/><\/a><\/span>\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  <span style=\"font-family: 'Calibri','sans-serif';font-size: 11pt\"><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/0676.10.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2013\/05\/0676.10.png\" alt=\"\" border=\"0\" \/><\/a><\/span>\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  \u00a0\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  \u00a0\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  <span style=\"font-family: 'Calibri','sans-serif';font-size: 11pt\">Hope you find this functionality useful for your test case management needs. You can also read through the <a href=\"http:\/\/msdn.microsoft.com\/en-US\/library\/vstudio\/hh543843.aspx\">MSDN guidance page<\/a> or the <a href=\"http:\/\/vsartestreleaseguide.codeplex.com\/\">Test Release Management Guidance<\/a> for more information.<\/span>\n<\/p>\n<p style=\"margin: 0in 0in 0pt;text-align: justify\">\n  \u00a0\n<\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Visual Studio Update 2, we introduced the capability to clone test plans in Microsoft Test Manager. This feature lets you clone test plan artifacts within a given team project, by creating copies of all the test cases, shared steps and requirements, recreating the same suite structure and applying the same test settings, environments, builds, [&hellip;]<\/p>\n","protected":false},"author":87,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3053","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops"],"acf":[],"blog_post_summary":"<p>In Visual Studio Update 2, we introduced the capability to clone test plans in Microsoft Test Manager. This feature lets you clone test plan artifacts within a given team project, by creating copies of all the test cases, shared steps and requirements, recreating the same suite structure and applying the same test settings, environments, builds, [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/3053","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/87"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=3053"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/3053\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=3053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=3053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=3053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}