title: TFS build 2015 fails to trigger coded ui tests - part of continuous integration process
body: <p>We have come across an issue where TFS build fails to trigger coded UI tests, based on how the Test Settings file is specified in the build definition.</p>
  
  <p>We have been unable to get CodedUI test project to run. The goal is to have it run on a separate machine (virtual machine). We have configured the test controller and agent on the VM. We have also set it to run as interactive process. When we run build it partially succeeds and the following test error is reported</p>
  
  <p><strong>The failure message returned is as below:</strong></p>
  
  <blockquote>
    <p>MsTestAdapter failed to discover tests in class ‘MVC_Test.MVCTest_CUI’ of assembly ‘C:\Builds\1\Test_COE\MVCAppFramework\bin\MVC_Test.dll’. Reason Could not load file or assembly ‘Microsoft.VisualStudio.QualityTools.CodedUITestFramework, Version=12.0.0.0. Culture =neutral, PublickeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified..</p>
  </blockquote>
  
  <p><strong>Setup / Environment Details:</strong></p>
  
  <p>Visual studio 2015 ultimate</p>
  
  <p>TFS server 2015</p>
  
  <p>Agents for Visual studio 2015(Test Controller and Test Agents)</p>
  
  <p>Test agent is installed as interactive process for Coded UI tests</p>