Share via


Test Agents support for Visual Studio 2015

With the recent release of Visual Studio 2015 CTP6 and TFS 2015 CTP1, we have not included Test Agents for Visual Studio 2015 package as we are still working on updating the agents for enabling more scenarios in the Build and Release workflow. This blog will give you details on how you can get Test Agents working for Visual Studio 2015 CTP6 and TFS 2015 CTP1 releases.

If you are trying out the test execution scenarios on VS 2015 CTP6 releases with TFS 2015 CTP1 and need Test Agents, we recommend you installing the Agents for VS2013. Test Agents and Test Controller for Visual Studio 2013 are compatible with the TFS 2015 CTP1 and VS 2015 CTP 6 releases, all the supported test scenarios will continue to work in this combination. However, we have a known issue with Coded UI tests compiled using VS 2015 CTP tools, we will have this issue fixed for the next CTP release, below are the details to get around this issue in the interim.

Impacted Experience

Newly created Coded UI tests in VS 2015 CTPs/Preview or Coded UI Tests (CUIT) upgraded to Visual Studio 2015 CTPs cannot be executed using the Agents for Visual Studio 2013. When you try to execute Coded UI tests you will see one of the following error messages:

For CUIT Store tests:
              
                 System.IO.FileNotFoundException: Could not load file or assembly ‘Microsoft.VisualStudio.TestTools.WindowsStore.UITesting’

For CUIT non-Store tests:
            
                 System.IO.FileNotFoundException: Could not load file or assembly ‘Microsoft.VisualStudio.TestTools.UITesting’

 

Detailed Error will look like this:

 
 

Work Around

For each Coded UI test project, please add the following assemblybindging redirection tags to the app.config file. If the app.config file does not exist create a new app.config file with the below contents:

 <?xml version="1.0" encoding="utf-8" ?>
 <configuration>
 <runtime>
 <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
 <dependentAssembly>
 <assemblyIdentity name="Microsoft.VisualStudio.QualityTools.WindowsStore.CodedUITestFramework" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
 <bindingRedirect oldVersion="14.0.0.0" newVersion="12.0.0.0"/>
 </dependentAssembly>
 
 <dependentAssembly>
 <assemblyIdentity name="Microsoft.VisualStudio.TestTools.WindowsStore.UITest.Common" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
 <bindingRedirect oldVersion="14.0.0.0" newVersion="12.0.0.0"/>
 </dependentAssembly>
 
 <dependentAssembly>
 <assemblyIdentity name="Microsoft.VisualStudio.TestTools.WindowsStore.UITest.Extension" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
 <bindingRedirect oldVersion="14.0.0.0" newVersion="12.0.0.0"/>
 </dependentAssembly>
 
 <dependentAssembly>
 <assemblyIdentity name="Microsoft.VisualStudio.TestTools.UITest.ExtensionUtilities" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
 <bindingRedirect oldVersion="14.0.0.0" newVersion="12.0.0.0"/>
 </dependentAssembly>
 
 <dependentAssembly>
 <assemblyIdentity name="Microsoft.VisualStudio.TestTools.WindowsStore.UITesting" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
 <bindingRedirect oldVersion="14.0.0.0" newVersion="12.1.0.0"/>
 </dependentAssembly>
 
 <dependentAssembly>
 <assemblyIdentity name="Microsoft.VisualStudio.TestTools.WindowsStore.UITest.Playback" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
 <bindingRedirect oldVersion="14.0.0.0" newVersion="12.0.0.0"/>
 </dependentAssembly>
 
 <dependentAssembly>
 <assemblyIdentity name="Microsoft.VisualStudio.TestTools.UITest.WindowsStoreUtility" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
 <bindingRedirect oldVersion="14.0.0.0" newVersion="12.0.0.0"/>
 </dependentAssembly>
 
 
 <dependentAssembly>
 <assemblyIdentity name="Microsoft.VisualStudio.TestTools.WindowsStore.UITest.Framework" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
 <bindingRedirect oldVersion="14.0.0.0" newVersion="12.0.0.0"/>
 </dependentAssembly>
 
 <dependentAssembly>
 <assemblyIdentity name="UiaComWrapper.WindowsStore" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
 <bindingRedirect oldVersion="14.0.0.0" newVersion="12.0.0.0"/>
 </dependentAssembly>
 <dependentAssembly>
 <assemblyIdentity name="Microsoft.VisualStudio.QualityTools.CodedUITestFramework" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
 <bindingRedirect oldVersion="14.0.0.0" newVersion="12.0.0.0"/>
 </dependentAssembly>
 
 <dependentAssembly>
 <assemblyIdentity name="Microsoft.VisualStudio.TestTools.UITest.Common" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
 <bindingRedirect oldVersion="14.0.0.0" newVersion="12.0.0.0"/>
 </dependentAssembly>
 
 <dependentAssembly>
 <assemblyIdentity name="Microsoft.VisualStudio.TestTools.UITest.Extension" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
 <bindingRedirect oldVersion="14.0.0.0" newVersion="12.0.0.0"/>
 </dependentAssembly>
 
 <dependentAssembly>
 <assemblyIdentity name="Microsoft.VisualStudio.TestTools.UITesting" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
 <bindingRedirect oldVersion="14.0.0.0" newVersion="12.0.0.0"/>
 </dependentAssembly>
 
 <dependentAssembly>
 <assemblyIdentity name="UiaComWrapper" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
 <bindingRedirect oldVersion="14.0.0.0" newVersion="12.0.0.0"/>
 </dependentAssembly>
 </assemblyBinding>
 </runtime>
 </configuration>

 

 

Please continue to provide your valuable feedback.