{"id":3601,"date":"2011-10-31T04:55:36","date_gmt":"2011-10-31T04:55:36","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/bharry\/2011\/10\/31\/lab-management-improvements-in-tfs-11\/"},"modified":"2024-05-22T13:28:28","modified_gmt":"2024-05-22T20:28:28","slug":"lab-management-improvements-in-tfs-11","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/bharry\/lab-management-improvements-in-tfs-11\/","title":{"rendered":"Lab Management improvements in TFS 11"},"content":{"rendered":"<p>The Team Foundation Server 11 Developer Preview introduces a number of simplifications and enhancements in Lab Management.\u00a0 The primary one you will notice in the developer preview is the introduction of &#8216;Standard environments&#8217;.\u00a0\u00a0\u00a0 Here is a brief summary of what Standard environments are and what you can do with them.<\/p>\n<p>Ever since we released Lab Management we\u2019ve gotten feedback from a segment of our customers that they love the Lab Management promise but aren\u2019t ready to bite off SCVMM &amp; Hyper-V.\u00a0 Some people use VMWare other just want to just automate the physical machines they use today.\u00a0 Standard environments now enable more flexibility, allowing you to use VMWare, physical machines, etc.<\/p>\n<p>Standard environments help you quickly get started with testing on multi-machine environments and to be able to run functional automated tests as part of continuous integration cycle.\u00a0 You can get started with creating standard environments the day you setup your TFS.\u00a0 You do not need to setup Hyper-V servers or configure System Center Virtual Machine Manager in TFS.\u00a0 With standard environments, the whole process of creating an environment is a matter of a few simple steps.<\/p>\n<p>1. Configure a test controller for your team project collection.\u00a0 All projects within the collection can share this controller.\u00a0 Or, you can scale up by adding more controllers.<\/p>\n<p>2. Let us say you want to setup a 2-machine environment for running post-build automated tests &#8211; a client running Windows 7, and a server running Windows Server 2008 R2 SP1 to act as the web server and database server.\u00a0 Have these machines provisioned from wherever is the norm in your enterprise &#8211; this could be your IT managed lab, VMWare VMs, physical machines, or anything.\u00a0 Install the pre-requisites needed for your application on these machines.<\/p>\n<p>3. From the Lab Center in Microsoft Test Manager, run the wizard to create a new Standard environment.\u00a0 As part of this wizard, specify the names of the machines from (2) above, and an administrator credential to connect to those machines.\u00a0 If you want to run Coded-UI tests as part of automation, then select that option in the &#8216;Advanced&#8217; tab of the wizard.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/bharry\/wp-content\/uploads\/sites\/8\/2011\/10\/6685.clip_image001_thumb_02F8C536.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-16136\" src=\"https:\/\/devblogs.microsoft.com\/bharry\/wp-content\/uploads\/sites\/8\/2011\/10\/6685.clip_image001_thumb_02F8C536.jpg\" alt=\"Image 6685 clip image001 thumb 02F8C536\" width=\"644\" height=\"467\" srcset=\"https:\/\/devblogs.microsoft.com\/bharry\/wp-content\/uploads\/sites\/8\/2011\/10\/6685.clip_image001_thumb_02F8C536.jpg 644w, https:\/\/devblogs.microsoft.com\/bharry\/wp-content\/uploads\/sites\/8\/2011\/10\/6685.clip_image001_thumb_02F8C536-300x218.jpg 300w\" sizes=\"(max-width: 644px) 100vw, 644px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/bharry\/wp-content\/uploads\/sites\/8\/2011\/10\/8814.clip_image002_thumb_17BA97E9.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-16137\" src=\"https:\/\/devblogs.microsoft.com\/bharry\/wp-content\/uploads\/sites\/8\/2011\/10\/8814.clip_image002_thumb_17BA97E9.jpg\" alt=\"Image 8814 clip image002 thumb 17BA97E9\" width=\"644\" height=\"466\" srcset=\"https:\/\/devblogs.microsoft.com\/bharry\/wp-content\/uploads\/sites\/8\/2011\/10\/8814.clip_image002_thumb_17BA97E9.jpg 644w, https:\/\/devblogs.microsoft.com\/bharry\/wp-content\/uploads\/sites\/8\/2011\/10\/8814.clip_image002_thumb_17BA97E9-300x217.jpg 300w\" sizes=\"(max-width: 644px) 100vw, 644px\" \/><\/a><\/p>\n<p>4. That\u2019s all you have to do in order to create an environment.\u00a0 You will notice that a test agent automatically gets downloaded and installed in all machines of the environment.\u00a0 This is the only agent that is needed in Version 11 of Lab Management in order to deploy builds or run tests.\u00a0 At the end of the creation process, your environment should be &#8220;Ready&#8221; for use.<\/p>\n<p>5. Ensure that you have a test plan with automated tests as well as a test settings to run those tests on the environment.<\/p>\n<p>6. Create a build definition using Visual Studio Ultimate 11 Developer Preview and choose <b>LabDefaultTemplate.11.xaml<\/b> as the template.\u00a0 This is the new build-deploy-test automation template that allows you to select a standard environment for running your automation.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/bharry\/wp-content\/uploads\/sites\/8\/2011\/10\/0081.clip_image003_thumb_45783AE1.jpg\"><img decoding=\"async\" class=\"alignnone size-full wp-image-16138\" src=\"https:\/\/devblogs.microsoft.com\/bharry\/wp-content\/uploads\/sites\/8\/2011\/10\/0081.clip_image003_thumb_45783AE1.jpg\" alt=\"Image 0081 clip image003 thumb 45783AE1\" width=\"578\" height=\"484\" srcset=\"https:\/\/devblogs.microsoft.com\/bharry\/wp-content\/uploads\/sites\/8\/2011\/10\/0081.clip_image003_thumb_45783AE1.jpg 578w, https:\/\/devblogs.microsoft.com\/bharry\/wp-content\/uploads\/sites\/8\/2011\/10\/0081.clip_image003_thumb_45783AE1-300x251.jpg 300w\" sizes=\"(max-width: 578px) 100vw, 578px\" \/><\/a><\/p>\n<p>7. Queue the new build, and see how the automation runs on the environment.<\/p>\n<p>To summarize, the whole process of installing agents and preparing an environment that is ready for build verification is done with a few clicks.\u00a0 You do not need to setup SCVMM environments in order to use build-deploy-test automation features.\u00a0 A &#8216;standard&#8217; environment will suffice.<\/p>\n<p>Of course, SCVMM environments are still supported, and have been enhanced as well to support auto-installation of agents.\u00a0 With SCVMM environments, you get the additional benefits of using snapshots as part of your testing scenarios.<\/p>\n<p>Here are a few common questions that you might be seeking answers to:<\/p>\n<p>1. The Developer preview of Lab Management does not yet support Windows 8 Servers, Windows 8 guests, or SCVMM 2012 Release Candidate.\u00a0 Support for these is in the works.<\/p>\n<p>2. The whole process of auto-installing the agent and configuring it is streamlined only for domain-joined machines (that have a trust relationship with Test Controller) in standard environments.\u00a0 If you are using workgroup machines in standard environments, you still have to setup shadow accounts.<\/p>\n<p>3. The only supported operating systems for machines to be used in standard environments are Windows 7, Windows Server 2008 SP2, Windows Server 2008 R2, and Windows Server 2008 R2 SP1.<\/p>\n<p>For more information, see: <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/dd997438(v=VS.110).aspx\">MSDN documentation<\/a>.<\/p>\n<p>Brian<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Team Foundation Server 11 Developer Preview introduces a number of simplifications and enhancements in Lab Management.\u00a0 The primary one you will notice in the developer preview is the introduction of &#8216;Standard environments&#8217;.\u00a0\u00a0\u00a0 Here is a brief summary of what Standard environments are and what you can do with them. Ever since we released Lab [&hellip;]<\/p>\n","protected":false},"author":244,"featured_media":14617,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[5,4],"class_list":["post-3601","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-tfs","tag-visual-studio"],"acf":[],"blog_post_summary":"<p>The Team Foundation Server 11 Developer Preview introduces a number of simplifications and enhancements in Lab Management.\u00a0 The primary one you will notice in the developer preview is the introduction of &#8216;Standard environments&#8217;.\u00a0\u00a0\u00a0 Here is a brief summary of what Standard environments are and what you can do with them. Ever since we released Lab [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/posts\/3601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/users\/244"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/comments?post=3601"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/posts\/3601\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/media\/14617"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/media?parent=3601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/categories?post=3601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/bharry\/wp-json\/wp\/v2\/tags?post=3601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}