Iterate over builds in VSTS

$personalAccessToken = “<your VSTS PAT Token>” $tfsUrl= “” $headers=@{ Authorization = ‘Basic ‘ + [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(“:$($personalAccessToken)”)) } $builds= Invoke-RestMethod -Uri $tfsUrl”/build/definitions” -Method Get -Headers $headers foreach($build in $builds.value) { $b = Invoke-RestMethod -Uri $build.url -Method Get -Headers $headers $b.variables }


Executing Ordered Tests on remote machines using Run Functional Tests task

The Run Functional Test task helps you execute your tests on one or more remote machines after you have setup the test agent on them, using the Deploy Test Agent task. This functionality can help you run your functional/UI tests on machines outside of your build agent.   During our first release of this new…


Remote Test Execution using Team Foundation Server 2015 RC2 and beyond

  The Agents for Visual Studio suite containing the test controller and agents allowed you to execute your tests on a set of remote machines by providing the right configuration in your .testsettings file. Based on the feedback we have received we are providing a new and simpler way for you to do your remote…


Important timeout tweaks for controller agent

Based on your network you may run into test run failures associated with the agent/controller communication. This primarily happens due to network latency, high data transfer between controller & agent or high cpu utilization on the agent. In such cases you can tweak some of the timeouts to improve the resiliency of the system Increase…


Getting started with Fakes using Visual Studio

These are a good set of references to anyone looking into getting started with fakes


Test controller/agent usage recommendations

Over the years we have had many people ask us on what is the best way to configure and use the test controller and agent for remote test execution. Here is a summary of the best practices that we advocate. Setup and Settings If you are on the latest VS2012U1+ or VS2013 you can ignore…


Getting the status of your test agents

Users routinely want to check the status of the test agents against which they are scheduling their remote test execution. The existing way of doing this was to fire up VS and open the “Manage Test Controllers” dialog With Visual Studio 2013 you can now check the status of your agents on the controller itself…


Test Controller 2012 Update 3+

New features introduced Visual Studio Test Controller 2012 Update3+ now supports backward compat with TFS servers. So you can connect your 2013 test controller to TFS 2012+ The test controller now works with hosted builds having server drop locations


Empty .coverage file with profiler related errors in the event logs

​If you find yourself with a an empty .coverage file and see errors similar to the below in your event logs you most probably have a corrupt install (info) .NET Runtime version 4.0.30319.17929 – The profiler has requested that the CLR instance not load the profiler into this process. Profiler CLSID: ‘{b19f184a-cc62-4137-9a6f-af0f91730165}’. Process ID (decimal):…


Troubleshooting missing data in Code Coverage Results

Code Coverage tool in Visual Studio 11 instruments native and managed binaries (DLLs/EXEs) whenever they are loaded at runtime, if they meet some criteria. The code coverage information is collected for these binaries At the end of the Code Coverage run you see code coverage within the Code Coverage results window. The total code coverage as…