<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Visual Studio Lab Management team blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/lab_management/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/lab_management/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:23:25 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Migrating to the Visual Studio ALM blog: https://blogs.msdn.com/b/visualstudioalm/</title>
      <link>https://docs.microsoft.com/archive/blogs/lab_management/migrating-to-the-visual-studio-alm-blog-httpblogs-msdn-combvisualstudioalm</link>
      <pubDate>Mon, 09 Apr 2012 21:23:09 GMT</pubDate>
      <dc:creator><![CDATA[Charles Sterling]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/lab_management/2012/04/09/migrating-to-the-visual-studio-alm-blog-httpblogs-msdn-combvisualstudioalm/</guid>
      <description><![CDATA[&nbsp;
In an effort to reduce the number of places you need to search for ALM Content including...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;</p>
<p>In an effort to reduce the number of places you need to search for ALM Content including Diagnostics, Testing and Lab Management we are combining these blogs to one location:</p>
<p><a href="https://blogs.msdn.com/b/visualstudioalm/">https://blogs.msdn.com/b/visualstudioalm/</a></p>
<p>Come on over tell us what you think!</p>
<p>Chuck</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Lab Management walkthrough using Visual Studio 11 Developer Preview Virtual Machine</title>
      <link>https://docs.microsoft.com/archive/blogs/lab_management/lab-management-walkthrough-using-visual-studio-11-developer-preview-virtual-machine</link>
      <pubDate>Fri, 11 Nov 2011 22:39:00 GMT</pubDate>
      <dc:creator><![CDATA[Vijay M [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/lab_management/2011/11/11/lab-management-walkthrough-using-visual-studio-11-developer-preview-virtual-machine/</guid>
      <description><![CDATA[Brian Keller has published a Virtual Machine with Visual Studio 11 Developer Preview bits and...]]></description>
      <content:encoded><![CDATA[<p>Brian Keller has published a <a href="https://blogs.msdn.com/b/briankel/archive/2011/09/16/visual-studio-11-application-lifecycle-management-virtual-machine-and-hands-on-labs-demo-scripts.aspx"><span style="color: #0000ff;" color="#0000ff">Virtual Machine with Visual Studio 11 Developer Preview bits</span></a> and described 6 hands-on-labs that can be tried in that virtual machine. In this blog post, I will show how you can use the same virtual machine in order to try out an additional walkthrough for Lab Management.</p>
<p>&nbsp;In this walkthrough, we will:</p>
<ul>
<li>Install additional software necessary for our scenario. In particular, we will install a Test Controller in the virtual machine, and then configure the Build Controller and Build Agent.</li>
<li>Create a <a href="https://blogs.msdn.com/b/lab_management/archive/2011/11/09/lab-management-in-visual-studio-11-developer-preview.aspx">Standard Environment</a> from Microsoft Test Manager. We will use the same virtual machine as the test machine for the standard environment.</li>
<li>Create a Build-Deploy-Test definition in Visual Studio, and run it on top of the environment.</li>
</ul>
<p>&nbsp;Before going through this walkthrough, ensure that you have:</p>
<ul>
<li>Downloaded and setup the virtual machine as per the instructions in Brian Keller's blog post on a Hyper-V host with an internal network. We will refer to this VM as VSALM machine in the following description.</li>
<li>Login to the VSALM machine as Administrator to perform the following steps.</li>
</ul>
<p><b>&nbsp;</b></p>
<p><b>Install additional software and create additional assets</b></p>
<ol>
<li>Install and Configure the Test Controller.</li>
<ol>
<li>Download the <a href="https://www.microsoft.com/download/en/details.aspx?id=27535"><span style="color: #0000ff;" color="#0000ff">Visual Studio Agents 11 Developer Preview ISO</span></a> to the host machine.</li>
<li>Mount the ISO into the VSALM machine using Hyper-V console.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/5635.mount-iso.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/5635.mount_2D00_iso.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/5635.mount-iso.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/5635.mount_2D00_iso.png" /></a></li>
<li><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/5635.mount-iso.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/5635.mount_2D00_iso.png"></a>From the VSALM machine, browse the DVD, and launch TestController\vstf_testcontroller.exe. Reboot if you are prompted to do so.</li>
<li>After the installation, launch Visual Studio Test Controller Developer Preview Configuration Tool. Configure using default settings and select the DefaultCollection from TFS. Wait for all the configuration steps to finish<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/1488.configure-tc.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/1488.configure_2D00_tc.png"></a></li>
</ol>
<li>Create a test case in TFS using one of the MSTest unit tests.</li>
<ol>
<li>Open Visual Studio. open the solution for FabrikamFiber.CallCenter. Compile the solution. Open Unit test explorer, and run the unit test 'CreateInsertsCustomerAndSaves'. Using unit test explorer is covered in one of Brian's hands-on-labs.</li>
<li>In Visual Studio, open Team Explorer, and create a new Test Case work item. In the associated automation tab, select the FabrikamFiber.Web.Tests.CustomersControllerTest.CreateInsertsCustomerAndSaves test.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/0676.create-testcase.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/0676.create_2D00_testcase.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/0676.create-testcase.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/0676.create_2D00_testcase.png" /></a></li>
<li>Save the test case.</li>
</ol>
<li>Configure the Build Controller and Build Agent in the virtual machine.</li>
<ol>
<li>Open Team Foundation Server Administration Console, and select Configure Team Foundation Build Service.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/2671.p9.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/2671.p9.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/2671.p9.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/2671.p9.png" /></a></li>
<li>Go through the wizard. For the account to run the build service, choose <strong>.\Administrator</strong>. This is required for the build agent to be able to access the drop location.</li>
<li>At the end of this configuration, you should have one controller and one agent configured for builds.</li>
<li>Click on 'Properties' of the VSALM - Controller, and change the number of workflows that the controller can execute in parallel to "2". This required so that you can run the Build-Deploy-Test automation workflow, which in turn spawns the build workflow.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/4118.bc-config.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/4118.bc_2D00_config.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/4118.bc-config.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/4118.bc_2D00_config.png" /></a></li>
</ol>
<li>Create a Build definition in TFS to compile the FabrikamFiber solution.</li>
<ol>
<li>From Visual Studio, select Team Explorer, and then Builds.</li>
<li>Create a new build definition. On the "General" tab, type in a name for the build definition - say, Fabrikam Build. On the "Build Defaults" tab, select a share where the builds should be generated. For instance, type <a href="file://\\vsalm\c$\drops">\\vsalm\c$\drops</a>. Ensure that you have created a folder called C:\drops, and have given "Everyone" (or atleast .\Administrator) read-write permissions to this folder. In the "Process" tab, select the Default Template. Save the build definition.</li>
<li>To verify that the build definition is correctly setup, queue a build, and verify that the solution compiles, and that the build output is generated in C:\drops folder. If you get a permission error, ensure that the build service hold is running under .\Administration account, and that you have given the permission to this account to access the build share.</li>
</ol>
<li>Create an automated test plan in Microsoft Test Manager.</li>
<ol>
<li>Open Microsoft Test Manager with elevated permissions (Shift-right-click Microsoft Test Manager in Start Menu and select Run as Administrator).</li>
<li>Create a new test plan called Automated Test Plan.</li>
<li>Add the test case created in the step above to the test plan.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/1401.p7.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/1401.p7.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/1401.p7.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/1401.p7.png" /></a></li>
</ol></ol>
<p><b>Create a standard environment</b></p>
<ol>
<li>Open Microsof Test Manager <strong>with elevated permissions</strong> (Shift-right-click Microsoft Test Manager in Start Menu and select Run as Administrator). Go to Lab Center.</li>
<li>Select "New" under Environments.</li>
<li>On the "Type and Name" tab, type in a name for the environment - say, Fabrikam BDT.</li>
<li>On the "Machines" tab, add a machine and type "vsalm" for the name of the machine. Select "Web Server" as the role of the machine.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/3660.p18.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/3660.p18.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/3660.p18.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/3660.p18.png" /></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/8422.p18.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/8422.p18.png"></a></li>
<li>Select "Verify". If the verification fails, ensure that you have launched MTM with elevated privileges.</li>
<li>Once the verifications pass, select "Finish".</li>
<li>The creation of standard environment takes&nbsp;a few minutes. During this time, the agent is automatically downloaded and installed on the machines of the environment (in this case, the vsalm machine itself). At the end of the process, you should see that the environment goes into "Ready" state.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/8484.p3.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/8484.p3.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/8484.p3.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/8484.p3.png" /></a></li>
</ol>
<p><b>Create and run a Build-Deploy-Test definition</b></p>
<ol>
<li>Create a Test settings.</li>
<ol>
<li>From Microsoft Test Manager, go to Lab Center, and to Test Settings.</li>
<li>Create a new automated test settings. On the "General" tab, type in the name of the test settings - for e.g., Fabrikam BDT Test Settings. Select "Automated". On the rest of the tabs, choose the defaults, and save the test settings.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/2313.p5.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/2313.p5.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/2313.p5.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/2313.p5.png" /></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/8623.p16.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/8623.p16.png"></a></li>
</ol>
<li>Create a Build-Deploy-Test definition.</li>
<ol>
<li>In&nbsp;Visual Studio, go to Team Explorer, and open Builds. Select "New Build Definition".</li>
<li>On the "General" tab, type in a name for the definition - say, BDT.</li>
<li>On the "Build Defaults" tab, uncheck "This build copies output files to a drop folder".</li>
<li>On the "Process" tab, select LabDefaultTemplate.11.xaml as the build process template. <br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/5618.p14.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/5618.p14.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/5618.p14.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/5618.p14.png" /></a></li>
<li>Click "..." next to the Lab Process Settings, and enter the following settings:</li>
<ol>
<li>Environment: "Fabrikam BDT" or the name that you gave to your environment</li>
<li>Build: Set the build definition to "Fabrikam Build" or the name you gave to the compilation build</li>
<li>Deploy: Check the option to Deploy, and Add a row in the grid. For the Machine role, select "Web Server". For the Deployment script, type "cmd /c dir". We are not really doing a deployment in this walkthrough since the application is already deployed in the virtual machine.</li>
<li>Test: Select the automated test plan and the test settings that you created.</li>
</ol>
<li>Save the build-deploy-test definition,</li>
</ol>
<li>Queue an instance of the Build-Deploy-Test definition.</li>
<ol>
<li>Select the build definition that you just saved, and queue it. This should trigger a compilation, followed by deployment, and then the exeuction of the test cases.</li>
</ol></ol>
<p><b>What next?</b></p>
<p>In this walkthrough, you have seen how easy it was to create a standard environment. The process of installing agents onto the machines of the standard environment is automated. You also saw how you can run a build-deploy-test workflow using a standard environment. These are some of the enhancements in Visual Studio 11.</p>
<p>In the walkthrough, you have used the same machine for creating the standard environment. In a more realistic scenario, you would typically have test machines that you would compose into an environment. Accomplishing that using the VSALM machine can be done as follows:</p>
<ul>
<li>
<div style="padding-left: 30px;">Create another virtual machine with Windows 2008 R2 operating system, joined to workgroup, and present on the same Internal Network on the same Hyper-V host. We will call this virtual machine as "Test Machine" in the following description.</div>
</li>
<li>
<div style="padding-left: 30px;"><strong>When you setup this machine, ensure that the Administrator's password is the same P2ssw0rd</strong>.</div>
</li>
<li>
<div style="padding-left: 30px;">On the Test Machine, edit the C:\windows\system32\drivers\etc\hosts file. <strong>Add an entry &lt;IP address of VSALM Machine&gt; <a href="https://www.fabrikam.com/">www.fabrikam.com</a> to the hosts file</strong>. This is required for the test machine to be able to find <a href="https://www.fabrikam.com/">www.fabrikam.com</a>.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/7674.p17.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/7674.p17.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/7674.p17.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/7674.p17.png" /></a></div>
</li>
<li>
<div style="padding-left: 30px;"><br />Ensure that the<strong> Network and File Sharing exception</strong> is enabled in the Firewall settings for the Test Machine.</div>
</li>
<li>
<div style="padding-left: 30px;">The project that comes with the VM is an MVC project. In order to run MVC tests on the Test Machine, you need to install additional software on it. (E.g., Visual Studio with MVC3. Or, if you are like me, and are ok with the test run failing, then skip this step :). You can always do it later.).</div>
</li>
<li>
<div style="padding-left: 30px;">From Microsoft Test Manager, create a new Standard environment. This time, provide the computer name of the Test Machine. In the wizard, select the 'Advanced' tab, then <strong>select the option to run Coded UI Tests</strong>. This will cause the test agent to be run using the provided account and authenticate succesfully with the test controller.<br /><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/2133.p19.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/2133.p19.png"><img border="0" alt="" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/2133.p19.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/2133.p19.png" /></a></div>
</li>
<li>
<div style="padding-left: 30px;">Once the environment becomes Ready, queue the same Build-Deploy-Test definition on this environment.</div>
</li>
</ul>
<p style="padding-left: 30px;">&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Lab Management in Visual Studio 11 Developer Preview</title>
      <link>https://docs.microsoft.com/archive/blogs/lab_management/lab-management-in-visual-studio-11-developer-preview</link>
      <pubDate>Tue, 08 Nov 2011 21:24:11 GMT</pubDate>
      <dc:creator><![CDATA[Vijay M [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/lab_management/2011/11/08/lab-management-in-visual-studio-11-developer-preview/</guid>
      <description><![CDATA[The Developer Preview that was released in Sep 2011 has a set of new features for Lab Management....]]></description>
      <content:encoded><![CDATA[<p>The Developer Preview that was released in Sep 2011 has a set of new features for Lab Management. Brian Harry has <a href="https://blogs.msdn.com/b/bharry/archive/2011/10/31/lab-management-improvements-in-tfs-11.aspx">recently blogged</a> about those features. The new addition in the Developer Preview is that of "Standard Environments".&nbsp;&nbsp;You can now quickly&nbsp;create an environment out of existing machines and use it for Build-Deploy-Test automation. You do not have to worry about manually installing agents as that is completely automated. There&nbsp;is one&nbsp;limitation with the use of Standard Environments in the Developer Preview version. The test machines that you use for creating the Standard environment must be domain-joined machines, and they must be trusted by the Test Controller machine.</p>
<p>Give the standard environments a try, and let us know how they work for you. Brian Harry's post on how to use standard environments for Build-Deploy-Test automation can be found <a href="https://blogs.msdn.com/b/bharry/archive/2011/10/31/lab-management-improvements-in-tfs-11.aspx">here</a>.</p>]]></content:encoded>
    </item>
    <item>
      <title>How to run the same test in different Lab Environments?</title>
      <link>https://docs.microsoft.com/archive/blogs/lab_management/how-to-run-the-same-test-in-different-lab-environments</link>
      <pubDate>Mon, 26 Sep 2011 04:20:00 GMT</pubDate>
      <dc:creator><![CDATA[Ankit Saraf [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/lab_management/2011/09/26/how-to-run-the-same-test-in-different-lab-environments/</guid>
      <description><![CDATA[I will try to address today a common query by lot of users of Visual Studio Lab Management on how to...]]></description>
      <content:encoded><![CDATA[<p>I will try to address today a common query by lot of users of Visual Studio Lab Management on how to correctly run tests in different Lab Environments.</p>
<p>This requirement can be achieved by making the test code read the Server names/other configuration through environment variables:</p>
<ol>
<li>The following post by Gautam explains&nbsp;the changes that will be required in the test code: <a title="https://blogs.msdn.com/b/gautamg/archive/2010/02/23/how-to-get-same-test-running-under-different-environments.aspx" href="https://blogs.msdn.com/b/gautamg/archive/2010/02/23/how-to-get-same-test-running-under-different-environments.aspx">https://blogs.msdn.com/b/gautamg/archive/2010/02/23/how-to-get-same-test-running-under-different-environments.aspx</a></li>
<li>Extra requirement from VS Lab Management is that, the environment variable binding should be done using the following code:<br /> <br /> <span style="color: #2b91af;">Environment</span>.GetEnvironmentVariable(<span style="color: #a31515;">"TestServer"</span>, EnvironmentVariableTarget.Machine);</li>
</ol>
<p>&nbsp;</p>
<p>Now, we need to configure our test machines to have the correct values of the environment variables, for achieving this we can do:</p>
<ol>
<li>Set this environment variables on the test execution machine before we trigger a test run manually. This approach can be used in cases where the values will not change frequently or from environment to environment.</li>
</ol>
<p>or</p>
<ol>
<li>The values to the environment variables can be set as part of Deploy of Lab E2E Workflow. For doing this we add a deployment script to run the following command on test execution machine: <br /><br />cmd /c setx /M TestServer $(InternalComputerName_testServerName)</li>
</ol>
<p>Please refer <a title="https://msdn.microsoft.com/en-us/library/ee471614.aspx" href="https://msdn.microsoft.com/en-us/library/ee471614.aspx">https://msdn.microsoft.com/en-us/library/ee471614.aspx</a>&nbsp;for information about Deploy and macros of Lab E2E workflow.</p>
<p>&nbsp;</p>
<p>Note: The capability to run Lab E2E Workflow is only available for virtual environments in VS 2010. It is available for both Standard (Physical) and SCVMM environments in VS vNext.</p>]]></content:encoded>
    </item>
    <item>
      <title>Enter/Vote for your favorite feature suggestions - UserVoice site is here!</title>
      <link>https://docs.microsoft.com/archive/blogs/lab_management/entervote-for-your-favorite-feature-suggestions-uservoice-site-is-here</link>
      <pubDate>Thu, 14 Jul 2011 00:03:00 GMT</pubDate>
      <dc:creator><![CDATA[Darshan Desai [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/lab_management/2011/07/14/entervote-for-your-favorite-feature-suggestions-uservoice-site-is-here/</guid>
      <description><![CDATA[Have an idea for the product&nbsp;and wondering what is the best way to report it? Think something...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: helvetica; font-size: small;">Have an idea for the product&nbsp;and wondering what is the best way to report it? Think something is missing&nbsp;and you believe it absolutely&nbsp;has to be there?</span></p>
<p><span style="font-family: helvetica; font-size: small;">Well, we now&nbsp;have an avenue for you to add and vote for your favorite suggestions. The UserVoice site for Visual Studio is here:&nbsp;<a href="https://visualstudio.uservoice.com/">https://visualstudio.uservoice.com/</a><span style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;">&nbsp;</span><span style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;">It is simple&nbsp;to enter&nbsp;your idea, and if a lot of people agree with you, chances are high you'll see your idea incorporated in&nbsp;the product.</span></span></p>
<p><span style="font-family: helvetica; font-size: small;"><span style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"></span><span style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;">Note that User Voice is really not the best avenue for reporting bugs in the current version of the products.&nbsp;<a href="https://connect.microsoft.com/visualstudio">https://connect.microsoft.com/visualstudio</a> is really the best avenue for that.&nbsp;It&rsquo;s got a direct connection to our internal bug database and increases the possibility that it will get fixed. UserVoice is really better for larger feature suggestions.</span></span></p>
<p><span style="font-family: helvetica; font-size: small; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;">So, get started, vote for your favorite ideas, and help us make the product better!!</span><span style="font-family: helvetica; font-size: small; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"></span></p>
<p></p>]]></content:encoded>
    </item>
    <item>
      <title>ALM Rangers have published Visual Studio Lab Management guidance</title>
      <link>https://docs.microsoft.com/archive/blogs/lab_management/alm-rangers-have-published-visual-studio-lab-management-guidance</link>
      <pubDate>Fri, 24 Jun 2011 01:36:00 GMT</pubDate>
      <dc:creator><![CDATA[Vijay M [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/lab_management/2011/06/24/alm-rangers-have-published-visual-studio-lab-management-guidance/</guid>
      <description><![CDATA[The ALM Rangers team has produced a comprehensive guidance for Visual Studio Lab Management.This...]]></description>
      <content:encoded><![CDATA[<p>The <a href="https://msdn.microsoft.com/en-us/vstudio/ee358786">ALM Rangers </a>team has produced a comprehensive <a href="https://ralabman.codeplex.com/">guidance for Visual Studio Lab Management</a>.This guidance has dedicated chapters for topics such as setting up and planning a lab, creating environments, and maintaining environments.&nbsp;If you have questions on&nbsp;how to setup a small or large lab, how to plan your server and storage infrastructure, or how to patch templates regularly,&nbsp;this guidance has the answers.</p>
<p>In addition, this guidance also describes a way of creating lab-ready golden templates using <a href="https://rangersvsvmfactory.codeplex.com/">VM Factory</a>. This is an alernative to using <a href="https://archive.msdn.microsoft.com/vslabmgmt/Release/ProjectReleases.aspx?ReleaseId=4898">VM prep tool</a>, if you are familiar with the VM Factory.</p>
<p>Bookmark the <a href="https://blogs.msdn.com/b/willy-peter_schaub/archive/2011/06/17/toc-lab-management-guide-blog-posts-and-reference-sites.aspx" target="_blank" s_oidt="0" s_oid="https://blogs.msdn.com/b/willy-peter_schaub/archive/2011/06/17/toc-lab-management-guide-blog-posts-an">Visual Studio Lab Management Guidance</a> TOC blog and monitor the Visual Studio ALM Rangers <a href="https://blogs.msdn.com/b/willy-peter_schaub/">blog</a>, using tag <a href="https://blogs.msdn.com/b/willy-peter_schaub/archive/tags/tfslm/">tfslm</a>, for the latest information on this project.&nbsp;Give this a try when you are planning for or using Lab Management. Give feedback on additional topics that you would like to see included in the guidance either here or at the <a href="https://ralabman.codeplex.com/">Rangers Lab Management site</a>.</p>]]></content:encoded>
    </item>
    <item>
      <title>New QFE for Visual Studio 2010 testing tools</title>
      <link>https://docs.microsoft.com/archive/blogs/lab_management/new-qfe-for-visual-studio-2010-testing-tools</link>
      <pubDate>Thu, 23 Jun 2011 10:40:00 GMT</pubDate>
      <dc:creator><![CDATA[Darshan Desai [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/lab_management/2011/06/23/new-qfe-for-visual-studio-2010-testing-tools/</guid>
      <description><![CDATA[A QFE for Visual Studio 2010 testing tools, which fixes some important issues faced by customers, is...]]></description>
      <content:encoded><![CDATA[<p>A QFE for Visual Studio 2010 testing tools, which fixes some important issues faced by customers, is now available.The full list of issues&nbsp;fixed by this QFE&nbsp;can be found <a href="https://support.microsoft.com/kb/2544407" target="_blank">here</a>&nbsp;and you can download this patch <a href="https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=36847" target="_blank">here</a>. Note that Service Pack 1 (Visual Studio 2010 SP1 or Team Foundation Server 2010 SP1) is a pre-requisite for installing this patch.</p>
<p>&nbsp;</p>
<p>Here is a summary of the list of issues fixed by the QFE, to help you decide whether you should apply the QFE:</p>
<p><strong>Issue 1</strong>: When you run tests on the test agent that is installed on a computer that has Visual Studio 2010 SP1 installed, the tests may not run, and the following error message is logged:</p>
<p>"Attempted to access an unloaded AppDomain. (Exception from HRESULT: 0x80131014)"</p>
<p>&nbsp;</p>
<p><strong>Issue 2</strong>: When you run a playback of a Coded UI Test on certain Windows Presentation Foundation (WPF) controls, a Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException exception occurs, and then you receive the following error message:</p>
<p>"Search may have failed at '&lt;name&gt;' &lt;control type&gt; as it may have virtualized children. If the control being searched is descendant of '&lt;name&gt;' &lt;control type&gt; then including it as the parent container may solve the problem."</p>
<p>&nbsp;</p>
<p><strong>Issue 3</strong>: When you try to create a work item from the Test Results pane in Visual Studio 2010 after you connect to a Team Foundation Server (TFS) server, a System.OutOfMemory exception occurs, and the creation operation fails. This issue usually occurs if the TFS server has many builds.</p>
<p>&nbsp;</p>
<p><strong>Issue 4</strong>: When some tests run in a build operation, some builds that are queued in a TFS server stop responding. Additionally, the following error message is logged in the build log:</p>
<p><em>Waiting to publish...</em><br /><em>Publishing results of test run &lt;build name&gt; to <a href="https://<TFS">https://&lt;TFS</a> server address&gt;:8080/tfs/DefaultCollection...</em><br /><em>The process cannot access the file '&lt;directory&gt;\data.coverage' because it is being used by another process.</em><br /><em>Publish failed or canceled.</em></p>]]></content:encoded>
    </item>
    <item>
      <title>Configuration matrix testing using Visual Studio Lab Management</title>
      <link>https://docs.microsoft.com/archive/blogs/lab_management/configuration-matrix-testing-using-visual-studio-lab-management</link>
      <pubDate>Thu, 26 May 2011 03:58:00 GMT</pubDate>
      <dc:creator><![CDATA[Ankit Saraf [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/lab_management/2011/05/26/configuration-matrix-testing-using-visual-studio-lab-management/</guid>
      <description><![CDATA[One of the common issues regularly faced by our users is how to test their application in both IE...]]></description>
      <content:encoded><![CDATA[<p>One of the common issues regularly faced by our users is how to test their application in both IE and Firefox. Visual Studio Lab Management can help in solving this issue for automated Coded UI test as part of Lab E2E Workflow flow.</p>
<p>To accomplish this with Lab Management, we will need</p>
<ol>
<li>Visual Studio 2010 Feature Pack 2 (To be installed on developer box, build box, test controller and test agents)</li>
<li>Customized build template derived from LabDefaultTemplate. (Attached to this post)</li>
</ol>
<p>Lab Management uses Test Settings to define the Role of the environment to use for running test and also for data collection. If there are more than one machines of the Execution role in the environment, then the tests are distributed among them. For configuration matrix testing between IE and Firefox we want to be sure that all our tests run both on IE and Firefox.</p>
<p>So to accomplish our goal we will be using multiple test settings and multiple automated test runs within our environment.</p>
<p>Let us setup the environment now, to do that we do the following:</p>
<ol>
<li>Create a Lab Environment for our application with the additional requirement that we add one more Web Client machine and name the roles for the two machines WebClientIE and WebClientFF.</li>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/8203.1.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/8203.1.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/8203.1.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/8203.1.png" border="0" /></a></p>
<li>Create two test settings by going to the test settings page in Lab Management for this environment; name them TestSettingIE and TestSettingFF. In TestSettingIE, we set WebClientIE as the execution role and enable the data collectors on other roles as required (you should disable data collectors on WebClientFF role as this machine will not participate in the test run for this test setting). In TestSettingFF, we set WebClientFF as the execution role and enable data collectors on the other roles. </li>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/8081.4.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/8081.4.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/8081.4.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/8081.4.png" border="0" /></a></p>
<li>Login into the WebClientFF role machine and we need to set the environment variable CodedUITestCurrentBrowser to specify to the Test Agent to run the Coded UI tests in Firefox. Restart the Test Agent process.</li>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/0458.5.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/0458.5.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/0458.5.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/379x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/0458.5.png" border="0" /></a></p>
<li>Make sure all other pre-requisites for deploying the application are also done and we can then take a checkpoint for our daily Lab E2E workflow build.</li>
</ol>
<p>&nbsp;With these steps our environment is ready. Now we will do the setup of the test cases.</p>
<ol>
<li>After installation of Feature Pack 2, we open our test project from source control and record a new Coded UI test. This will add the required references for running our Coded UI test against Firefox. After this we check-in our test project back to source control. (A good idea at this point will be to make sure that all tests which we plan to run on both IE and FF are run on your development box with Firefox as the execution browser to avoid any test issues later.)</li>
</ol>
<p>Now we need to setup the build:</p>
<ol>
<li>Please download the attached LabDefaultTemplate_ConfigTest.xaml; We need to check it in the source control in the BuildProcessTemplates directory. This template is the default Lab build template with the changes to execute two test runs. You can open the file in Visual Studio to understand the changes.</li>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/3364.6.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/3364.6.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/3364.6.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/3364.6.png" border="0" /></a><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/0245.2.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/0245.2.png"></a></p>
<p>&nbsp;</p>
<li>Now we define a new build and select our LabDefaultTemplate_ConfigTest as the build template (to do so you will need to select the add existing xaml option).</li>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/0245.2.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/0245.2.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/0245.2.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/0245.2.png" border="0" /></a></p>
<p>&nbsp;</p>
<li>We enter all the parameters for the environment created earlier in this build as we normally do for Lab E2E workflow builds, the test setting selected on the Test page of the workflow parameters wizard will be&nbsp;ignored&nbsp; by our build.</li>
<li>We need to enter the test settings on the Process page of build under the values TestSettingRun1 and TestSettingRun2, we need to enter the values as ID of the test settings which we can get from the Test Settings page of Lab Management. We enter the ID for our TestSettingIE and TestSettingFF in the two fields.</li>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/3716.3.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/3716.3.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/3716.3.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/3716.3.png" border="0" /></a></p>
</ol>
<p>Now we can run this build and it will go through the build, deploy &amp; test phases. It will create and execute two test runs by the name BuildNumber &amp; BuilNumber_2, we can check them under Test &gt; Analyze Test Runs page of Microsoft Test Manager. </p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/7183.7.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/7183.7.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/7183.7.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/400x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/7183.7.png" border="0" /></a></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/8228.8.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/8228.8.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/15/18/8228.8.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-18/8228.8.png" border="0" /></a></p>
<p>With this we have accomplished our goal of executing same set of tests on both IE and Firefox using Lab E2E workflow.</p>
<p>For running the test in Firefox, we used a feature introduced in Feature Pack 2 (<a href="https://msdn.microsoft.com/en-us/library/gg413375.aspx">more info</a>) to capture Coded UI test in IE and run them in Firefox. If you want to run the configuration matrix across various versions of IE, we do not need to install Feature Pack 2, we just need to have the different versions of IE installed on the two WebClient machines we have in our environment.</p>
<p>You can also extend this testing to beyond two runs by modifying the build template to include more test runs and creating the additional web client machines and test settings in the environment.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/10/16/86/06/LabDefaultTemplate_ConfigTest.xaml" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-16-86-06/LabDefaultTemplate_5F00_ConfigTest.xaml">LabDefaultTemplate_ConfigTest.xaml</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Support for Windows Server 2008 R2 SP1 hosts and SCVMM 2008 R2 SP1</title>
      <link>https://docs.microsoft.com/archive/blogs/lab_management/support-for-windows-server-2008-r2-sp1-hosts-and-scvmm-2008-r2-sp1</link>
      <pubDate>Sun, 27 Mar 2011 21:50:30 GMT</pubDate>
      <dc:creator><![CDATA[Vijay M [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/lab_management/2011/03/27/support-for-windows-server-2008-r2-sp1-hosts-and-scvmm-2008-r2-sp1/</guid>
      <description><![CDATA[Both Visual Studio Lab Management 2010 and Visual Studio Lab Management 2010 SP1 work with the...]]></description>
      <content:encoded><![CDATA[<p>Both Visual Studio Lab Management 2010 and Visual Studio Lab Management 2010 SP1 work with the Windows Server 2008 R2 SP1 hosts. Windows Server 2008 R2 SP1 includes new features such as dynamic memory, which are great for test labs. Dynamic memory increases the VM density and allows you to run more VMs on the same hardware. </p>
<p>In order to use the new Windows 2008 R2 SP1 hosts and features such as dynamic memory, here is what you need to do:</p>
<p>(a) Upgrade your SCVMM server from 2008 R2 to 2008 R2 SP1.</p>
<p>(b) Upgrade the SCVMM admin console on TFS Application Tier machines to SCVMM Administration Console 2008 R2 SP1.</p>
<p>(c) Ensure that every host group in SCVMM has hosts of only one type - Do not mix Windows 2008 R2 hosts and Windows 2008 R2 SP1 hosts in the same host group.</p>
<p>(d) You have to set the dynamic memory value on the template in SCVMM library before importing the template into Lab management. If you already have imported templates, use MTM to delete them from all team projects, set the dynamic memory value on the templates using SCVMM admin console, and then re-import them into MTM.</p>
<p>(e) Now, when you create fresh environments using these templates on 2008 R2 SP1 host groups, dynamic memory value will be honored. You will not be able to see the dynamic memory values from MTM. MTM would only show the startup memory. However, you can use SCVMM admininstration console to see the memory usage of VMs.&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Running Build-Deploy-Test workflow on physical environments</title>
      <link>https://docs.microsoft.com/archive/blogs/lab_management/running-build-deploy-test-workflow-on-physical-environments</link>
      <pubDate>Tue, 15 Feb 2011 03:46:00 GMT</pubDate>
      <dc:creator><![CDATA[Darshan Desai [MSFT]]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/lab_management/2011/02/15/running-build-deploy-test-workflow-on-physical-environments/</guid>
      <description><![CDATA[UPDATE: In Visual Studio 11, we have introduced&nbsp;rich support for creating&nbsp;physical...]]></description>
      <content:encoded><![CDATA[<p><b>UPDATE: </b>In Visual Studio 11, we have introduced&nbsp;rich support for creating&nbsp;physical environments (called as Standard Environments)&nbsp;and running build-deploy-test workflows on them. Check this blog post for details and to get started: <a href="https://blogs.msdn.com/b/lab_management/archive/2011/11/12/lab-management-walkthrough-using-visual-studio-11-developer-preview-virtual-machine.aspx">https://blogs.msdn.com/b/lab_management/archive/2011/11/12/lab-management-walkthrough-using-visual-studio-11-developer-preview-virtual-machine.aspx</a>&nbsp;The below article still holds good for Visual Studio/Team Foundation Server 2010.</p>
<p><b>DISCLAIMER</b>: The information in this post is provided &ldquo;as-is&rdquo;, we make no guarantees that the steps will work reliably, and we will not provide any support or upgrade for the definitions you create using the steps described here.</p>
<p>Lab Management feature in Visual Studio 2010 enables <a href="https://msdn.microsoft.com/en-us/library/ee518917.aspx">automation</a> of the build-deploy-test cycle. This scenario is supported only on virtual environments managed by Lab Management in the current release. This post talks about how this capability can be extended to run workflow on physical machines, with some limitations.</p>
<h4>Pre-requisites</h4>
<p>1. <a href="https://msdn.microsoft.com/en-us/library/ee390842.aspx">Create a physical environment</a> comprising of the machines on which you want to run the build-deploy-test workflow.</p>
<p><strong>Note</strong>: In Microsoft Test Manager, you&rsquo;ll see the Workflow capability status as &lsquo;Not Configured&rsquo; for all physical environments. This is OK and your workflow can still run if you follow the steps in this post.</p>
<p>2. <a href="https://msdn.microsoft.com/en-us/library/bb399135.aspx#agent_create">Install the build service and configure a build agent</a> on each of the machines in this physical environment. Configure all the build agents with one build controller.</p>
<p><strong>Note</strong>: Do not install lab agent on these physical machines.</p>
<p>3. Add a tag to the build agents you configured in step #2. You can do this either from the Team Foundation Administration Console on the build agent machine, or from &lsquo;Builds -&gt; Manage Build Controllers&rsquo; in Visual Studio. If you do not do this, the build definitions authored using the &lsquo;Default Template&rsquo; (to build your code) may pick this agent to run your builds (the default matching criteria is agent with no tags) &ndash; and this might not be a desirable behavior.</p>
<p>&nbsp;</p>
<h4>Steps to setup and configure the workflow</h4>
<p>1. Download the attached zip file, extract the workflow template &lsquo;BuildDeployTest-physical.xaml&rsquo; and check-in to source control (example: $/&lt;projectName&gt;/BuildProcessTemplates).</p>
<p>2. Follow the steps to create a build definition described <a href="https://msdn.microsoft.com/en-us/library/ee471614.aspx">here</a>. Instead of choosing LabDefaultTemplate.xaml, choose the template that was checked-in in the above step.</p>
<p>Note: If the new template does not appear in the drop down, click on the &lsquo;New&rsquo; button besides the drop-down, choose &lsquo;Select an existing XAML file&rsquo; option and browse for the new template.</p>
<p>3. This definition should be run only on the build controller to which the build agents are configured.</p>
<p>4. Following are the important arguments to be specified for the workflow.</p>
<p>a. &lsquo;Build: New Build&rsquo; section (Fill in this section to queue a new build)</p>
<ol><ol>
<li>Build Definition Name: Name of the build definition to be queued.</li>
<li>Configuration: Configuration of the build to be used for deployment and testing (ex: Debug, Retail)</li>
<li>Platform: Platform of the build to be used for deployment and testing (ex: x86, x64)</li>
<li>Queue New Build - Indicates whether new build should be queued.</li>
</ol></ol>
<p>b. &lsquo;Build: Pick Existing Build&rsquo; section (This will be used only if new build is not queued)</p>
<ol><ol>
<li>Build Location - Path from which the build should be picked up</li>
<li>Build Number - Value that identifies the build. Typical format is <i>BuildDefinitionName_Date.Revision</i>. This is used to associate the test run with the build. This argument is optional.</li>
</ol></ol>
<p>c. &lsquo;Deployment&rsquo; section</p>
<blockquote><ol>
<li>Deployment Scripts &ndash; List of scripts that perform the deployment. Each script is of the format <i>BuildAgentName # PathToExecutable # Arguments</i></li>
</ol>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Example 1: Agent1 # $(BuildLocation)\install.exe # /q</p>
</blockquote>
<blockquote>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Example 2: Agent2 # cmd.exe # /c copy $(BuildLocation)\install.exe C:\installer</p>
</blockquote>
<blockquote>
<ul>
<li><em>BuildAgentName</em> &ndash; name of the build agent on the machine where the script should be executed. You can check the build agent name from &lsquo;Builds -&gt; Manage Build Controllers&rsquo; in Visual Studio.</li>
<li><em>PathToExecutable</em> &ndash; file path to the executable that needs to be executed. This can contain the macro <i>$(BuildLocation) </i>which will be substituted by the value of BuildLocation workflow argument.</li>
<li><em>Arguments</em> &ndash; arguments to be passed to the executable. <i>$(BuildLocation) </i>macro is allowed.</li>
</ul>
</blockquote>
<blockquote>
<p>2.&nbsp; Run deployment scripts &ndash; Indicates whether deployment should be performed.</p>
</blockquote>
<p>d. &lsquo;Test&rsquo; section:</p>
<blockquote><ol>
<li>Test Environment Name &ndash; Name of the physical environment</li>
<li>Test Run Parameters &ndash; Identifies the test suites whose test cases should be run along the required test configuration and test settings.</li>
<li>Run tests &ndash; Indicates whether tests are to be run.</li>
</ol>
<p>&nbsp;</p>
</blockquote>
<h4>Limitations</h4>
<p>The limitations compared to LabDefaultTemplate.xaml are:</p>
<p>1. Ability to pick the latest successful build. This template supports queuing a new build and picking the build from a share, but not picking the latest build, given a build definition.</p>
<p>2. No support to specify environment variables (the macros $(ComputerName_...) and $(InternalComputerName_...)) and working directory for the scripts.</p>
<p>3. No support for snapshots &ndash; Given that snapshots are not applicable for physical environments, this is a difference rather than a limitation.</p>
<p>Refer this <a href="https://msdn.microsoft.com/en-us/library/ff934561.aspx">article</a> to further customize the workflow template.</p>
<p>We hope you find this info useful. Just to remind you again, the above steps are a work-around that enable you to run the workflow on physical machines. We will not provide any support or upgrade for the definitions you create using the steps described in this post.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/10/13/01/98/BuildDeployTest_Physical.zip" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-13-01-98/BuildDeployTest_5F00_Physical.zip">BuildDeployTest_Physical.zip</a></p>]]></content:encoded>
    </item>
  </channel>
</rss>