{"id":3993,"date":"2012-11-07T11:36:36","date_gmt":"2012-11-07T11:36:36","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2012\/11\/07\/edit-test-case-properties-directly-from-the-test-runner-of-microsoft-test-manager\/"},"modified":"2022-07-21T06:55:25","modified_gmt":"2022-07-21T14:55:25","slug":"edit-test-case-properties-directly-from-the-test-runner-of-microsoft-test-manager","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/edit-test-case-properties-directly-from-the-test-runner-of-microsoft-test-manager\/","title":{"rendered":"Edit Test Case properties directly from the test runner of Microsoft Test Manager"},"content":{"rendered":"<p>As the lead to the ALM MVPs I am continually surprised by the breadth of skills my MVPs have.\u00a0 For instance this post was created by <a href=\"http:\/\/geekswithblogs.net\/terje\/Default.aspx\">Terje Sandstrom<\/a>.\u00a0 In our ranks we tend to think of Terje as an architect and of the worlds foremost expert on our UML designers and Architect Explorer.\u00a0 So this morning it was with a bit of surprise when i see not only does he have a series on <a href=\"http:\/\/geekswithblogs.net\/terje\/archive\/2012\/08\/19\/issues-with-mixed-c-and-c-projects-in-visual-studio.aspx\">Code Analysis with C++ and C# projects<\/a> i see in my inbox a post on a new feature in Visual Studio Update 1 \u2013the ability Edit Test Case properties directly from the test runner of Microsoft Test Manager. (Make sure and also check out Anna Russo\u2019s post: <a href=\"http:\/\/blogs.msdn.com\/b\/visualstudioalm\/archive\/2012\/10\/18\/pausing-and-resuming-test-execution-from-the-test-runner-in-microsoft-test-manager.aspx\">Pausing and resuming test execution from the test runner in Microsoft Test Manager<\/a><\/p>\n<p>Thanks for the blog post Terje!<\/p>\n<p>\u00a0<\/p>\n<p>&#42;**************************<\/p>\n<p><strong>Edit Test Cases during Test running in Visual Studio 2012 Update 1 by Terje Sandstrom<\/strong><\/p>\n<p>Visual Studio 2012 Update 1 adds the ability to edit a test case while you\u2019re using the Test Runner. This has been a request from many, and have got quite a number of votes on the <a href=\"http:\/\/visualstudio.uservoice.com\/forums\/121579-visual-studio\/suggestions\/2038977-allow-testers-to-edit-test-cases-inside-manual-tes\" target=\"_blank\" rel=\"noopener\"><u>User Voice site<\/u><\/a>.<\/p>\n<p>This comes in very handy when you\u2019re developing the test cases.\u00a0 You often start out with a rough test case, where the details are not fixed.\u00a0 Then you run the Test Runner to see how everything works out, and when going through the steps you can change the test case there and then.<\/p>\n<p>In the screenshot below we have started up a rough test case in the Test Runner:<\/p>\n<p><img decoding=\"async\" title=\"SNAGHTML197538a2\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"SNAGHTML197538a2\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/11\/8713.SNAGHTML197538a2_thumb_1AC029CF.png\" width=\"321\" height=\"287\" \/><\/p>\n<p>The first two steps have been passed, and are ok, but the 3rd step needs to be corrected and expanded.\u00a0<\/p>\n<p>Notice the new Edit button (red arrow).\u00a0 Press that and the test run is paused,\u00a0<\/p>\n<p><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;margin: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/11\/6253.image_thumb_1A53F6DA.png\" width=\"197\" height=\"244\" \/><\/p>\n<p>and the Test Case Editor is opened.<\/p>\n<p>\u00a0<\/p>\n<table cellspacing=\"0\" cellpadding=\"2\" width=\"400\" border=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"200\">\n        <a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/11\/6253.image_thumb_27BA09E0.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;margin: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/11\/6253.image_thumb_27BA09E0.png\" width=\"686\" height=\"371\" \/><\/a>\n      <\/td>\n<td valign=\"top\" width=\"200\">\n        <a href=\"https:\/\/devblogs.microsoft.com\/00\/00\/00\/45\/92\/metablogapi\/4174.image_4DAFBA36.png\"><\/a>\n      <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/11\/6746.image_thumb_6D5E93FE.png\" width=\"513\" height=\"373\" \/><\/p>\n<p>You can change any aspect of the test case.\u00a0 We have changed the text for the 3rd step, and added a 4th step, changed the Iteration, changed the State of the test case, and on another Tab, the Summary tab, we have added some text there, and also a comment in the history field, showing that anything can be changed.\u00a0<\/p>\n<p>The editing of the test case is not bound to the Test Runner, it has just been opened by the Test Runner.\u00a0 This means you can change anything, you can add and delete, and save the changes.\u00a0 Subsequent edits will continue where you left off.<\/p>\n<p>After you have saved and closed the Test Case editor, the test runner will automatically go back to a running state, and you can continue testing.\u00a0<\/p>\n<p>The saved changes will not have any effect on the currently running test.\u00a0 This is important to note.\u00a0 You must terminate the current run, and start a new test run for the changes to have effect.\u00a0 There are some good reasons for this behavior \u2013 an important one is that since you can add results to a running test, an edit could have changed steps you already had attached bugs or results to, and the test runner would then have been in an indeterminate state.\u00a0<\/p>\n<p>The ability to edit test cases while running means it will be more easy to maintain the test cases directly during testing, and thus continuously improving the quality of the test cases.<\/p>\n<p>\u00a0<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2012\/11\/terjes_1336086861_84.png\" width=\"131\" height=\"120\" \/><\/p>\n<p>By<\/p>\n<h3><a href=\"http:\/\/geekswithblogs.net\/terje\/Default.aspx\">Terje Sandstrom<\/a><\/h3>\n<p>&#8212;&#8212; Chief Software Geek at Inmeta Consulting in Scandinavia &#8212;&#8211; and a Visual Studio ALM MVP<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As the lead to the ALM MVPs I am continually surprised by the breadth of skills my MVPs have.\u00a0 For instance this post was created by Terje Sandstrom.\u00a0 In our ranks we tend to think of Terje as an architect and of the worlds foremost expert on our UML designers and Architect Explorer.\u00a0 So this [&hellip;]<\/p>\n","protected":false},"author":81,"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-3993","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops"],"acf":[],"blog_post_summary":"<p>As the lead to the ALM MVPs I am continually surprised by the breadth of skills my MVPs have.\u00a0 For instance this post was created by Terje Sandstrom.\u00a0 In our ranks we tend to think of Terje as an architect and of the worlds foremost expert on our UML designers and Architect Explorer.\u00a0 So this [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/3993","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\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=3993"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/3993\/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=3993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=3993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=3993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}