TFS & Visual Studio ALM – by Neno Loje

(formerly Team System, VSTS)

Q: Where do I find the Test Controller / Agents versions for Visual Studio 2015?

February 17th, 2016 · No Comments · Automated Tests, FAQ, TFS 2015, TFS Installation and Configuration, TFS Lab Management

Answer: There are no new version of the TFS 2013 Test Controller and Test Agents available. TFS 2015 still works with the TFS 2013 versions. Please use them.

If you are using the new build definitions, you can use the Deploy Test Agent task and Run Functional Test task to run automated tests using a new Test Agent for Visual Studio 2015 (which does not need a Test Controller anymore).

–Neno

Tags:

Q: What frameworks & platforms are supported by Coded UI tests in Visual Studio 2015?

February 17th, 2016 · No Comments · Automated Tests, Coded UI Tests, Visual Studio 2015

Answer: You can find the detailed list at:
https://msdn.microsoft.com/en-us/library/dd380742.aspx

–Neno

Tags:

Q: Can I run a second, third, etc. build agent for TFS 2015?

February 17th, 2016 · No Comments · Team Foundation Build (TF Build), TFS 2015

This post applies to the new TFS 2015 Build Agents (not XAML Build Agents).

Answer: Yes, you can run multiple agents on the same machine.

To install an additional build agent, make sure to download the Agent.zip file from your TFS again (do not just copy the existing Agent folder as it contains configuration) and run the ConfigAgent.cmd file to register the new agent.

Note: For fully automated installations, you can configure a build agent using:

Agent\VsoAgent.exe /configure

See also: https://msdn.microsoft.com/Library/vs/alm/Build/agents/windows

–Neno

Tags:

Q: How can I uninstall UrbanTurtle after I uninstalled Team Foundation Server?

February 17th, 2016 · No Comments · TFS 2015, TFS Installation and Configuration, Third-Party Solutions

Answer: You need to add a few registry keys as described at: http://support.urbanturtle.com/entries/83572595-Upgrading-to-TFS-2015

Note: “12.0” is the path for TFS 2013, “14.0” for TFS 2015.

–Neno

Tags:

Q: Where do I find the new Visual Studio Team Explorer 2015?

February 17th, 2016 · 2 Comments · FAQ, TFS 2015, TFS Clients

Answer: There is no standalone “Team Explorer” release for TFS 2015 (obviously Team Explorer still exists as part of the Visual Studio IDEs).

There are three possible replacements:

Note: There are no .ISO images available for the VS Express Editions. The only way to create an offline installer is to run:

<executable name> /layout
(according to MSDN)

I’ve done this for all three VS 2015 Express Editions (Update 2):

Product (with Update 2)

Size (offline folder)

VS Express 2015 for Windows Desktop

1.91 GB 7.11 GB

VS Express 2015 for Web

930 MB 5.44 GB

VS Express 2015 for Windows 10

1.70 GB 7.25 GB

Conclusion: VS Express 2015 for Web is the smallest download and what users can use as the new “Team Explorer 2015”.

–Neno

Updated (March, 29): Fixed wrong file size for VS for Windows Desktop and added TFS Web Access and  TFS Office Integration as alternatives.

Updated (April, 1):  Not April Fool’s, but the offline file sizes in the just released Update 2 are so much bigger, that it made sense to update the post.
(Thanks to Richard Hundhausen for letting me know).

Tags:

Q: How can I delete test runs, results, and attachments in TFS 2015?

February 17th, 2016 · No Comments · TFS 2015, TFS 2015.1, TFS Administration, TFS Test Case Management

Answer: With TFS 2015 Update 1, there’s a new “Test” tab on Team Web Access, where you can configure how many days of data you want to keep.

You can configure this separately for manual and automated test runs.

By default, for existing team projects, it is set to Never delete any test runs. For newly created team projects, it defaults to keep 1 year of automated, as well as manual test runs.

The URL is: 

/tfs/DefaultCollection//_admin/_testmanagement">http://<tfs:8080>/tfs/DefaultCollection/<Project>/_admin/_testmanagement
(Please replace the placeholders in  bold.)

You can find more information at: https://blogs.msdn.microsoft.com/visualstudioalm/2015/10/08/test-result-data-retention-with-team-foundation-server-2015/

–Neno

Tags:

Q: How do I uninstall Visual Studio 2015 completely?

February 17th, 2016 · 3 Comments · FAQ, TFS Administration, Visual Studio 2015

Answer: To entirely uninstall Visual Studio 2015, run the following command:

vs_enterprise.exe /uninstall /force

More info: https://blogs.msdn.microsoft.com/heaths/2015/07/17/removing-visual-studio-components-left-behind-after-an-uninstall/

Tags:

Q: How do I get the Epic work item type after upgrading to TFS 2015? I can’t seem to see Epics.

February 17th, 2016 · No Comments · FAQ, TFS 2015, TFS Agile Planning Tools, Upgrade Issues

Answer: TFS 2015 does not automatically add the new Epic work type to existing team projects (it does have Epics in freshly created team projects, though).

MVP colleague Colin describes the steps and has a script to the rescue: http://colinsalmcorner.com/post/enable-safe-features-in-existing-team-projects-after-upgrading-to-tfs-2015

–Neno

Tags:

Q: How do I run Coded UI tests for Silverlight 5 with Visual Studio 2015?

February 17th, 2016 · No Comments · Automated Tests, Coded UI Tests, FAQ, TFS 2015, Visual Studio 2015

Answer: Yes, what you need is the following VS extension:

Microsoft Visual Studio 2015 Coded UI Test Plugin for Silverlight

Using the Microsoft Visual Studio 2015 Coded UI Test plugin for Silverlight, you can create Coded UI Tests or action recordings for Silverlight 5.0 applications

https://visualstudiogallery.msdn.microsoft.com/bf0caedc-90eb-46af-9c1a-8e68d013bb99

–Neno

Tags:

Team Project creation fails with System.MissingFieldException

May 20th, 2015 · No Comments · TFS 2013, Troubleshooting TFS

The Problem

You are trying to create a new Team Project in TFS and receive the following error:

Module: Engine
Event Description: TF30162: Task “TestVariable” from Group “TestManagement” failed
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: System.MissingFieldException: Field not found: ‘Microsoft.TeamFoundation.TestManagement.Common.WitCategoryRefName.SharedDataSet’.
   at Microsoft.TeamFoundation.TestManagement.Client.TestManagementTeamProject.get_SharedParameterDataSetWorkItemTypeName()

 

The Solution

Run the following on the TFS 2013 application tier (in command prompt as admin):

  1. ngen uninstall Microsoft.TeamFoundation.TestManagement.Client
  2. ngen uninstall Microsoft.TeamFoundation.TestManagement.Common
  3. Restart your VS, MTM or Team Explorer

 

(Special thanks to Sadagopan Rajaram from Microsoft for tracking this down.)

Tags: