Share via


Sample Script to Enable New Features in Upgraded Team Projects (TFS 2010 Beta1)

Introduction

When you upgrade your existing Team Foundation Server to version 2010, upgraded team projects will work as before. However, you need to make some changes to these team projects if you want to enable the following features:

  • Test Case Management
  • Agile Planning Workbooks
  • Branch Visualization
  • Lab Management

In this post, I’m providing a sample script to help you with many of the steps. For complete information about enabling these features, see the following article:

Required Changes

Refer to the table below for a summary of the required changes to enable the new features for upgraded team projects. Note that these changes are only necessary for the team projects that existed before the upgrade. If you are creating new team projects, all of these features are enabled by default.

Feature Requirements
Test Case Management
  • Add Test Case and Shared Step work item types (*)
  • Update existing Bug and Scenario work item types (*)
  • Add new link types (*)
  • Add work item categories (*)
Agile Planning Workbooks
  • Update existing Task and Scenario work item types (*)
  • Create iteration and product backlog queries
  • Bind workbooks against the queries
  • Modify workbook document properties
Lab Management
  • Grant lab management permissions to user groups
  • Provision lab resources
Reports
  • Update your existing reports to work against the new warehouse
Branch Visualization
  • Convert branches using source control explorer

(*): You can use the sample script attached to this article to make these changes marked with (*) in the table above.

However, this sample script is designed to work if the following are true:

  • You are using the Beta1 (English) version of Team Foundation Server 2010
  • Your team project was created with the English language version of “MSF for Agile Software Development - v4.2” process template before you upgraded your Team Foundation Server
  • No modifications have been made to the work item type definitions on your team project before or after the upgrade
  • You are running the script on an English operating system

You need to either modify the sample script, or create your own if:

  • Your team project was created with a process template other than “MSF for Agile Software Development v4.2” (English)
  • You have made modifications to the out of box work item type definitions on your team project
  • Your team project already has an existing Test Case work item type
  • You want to use the existing “Repro Steps” field on your Bug work item type
  • You are using a non-English Team Foundation Server

Sample Script

The attached ZIP file contains the script and updated MSF for Agile 4.2 work item type definitions. You must be a project collection administrator to run this script. The script requires the witadmin.exe utility which is installed by Team Explorer and Team Foundation Server.

To use the script, download and extract it to a local directory such as C:\Upgrade. Before you run the script, open “EnableFeatures.bat” in a text editor and complete the configuration by specifying values for the following:

  • Team Foundation Server URL
  • Name of the team project collection
  • Name of the team project
  • Path to witadmin.exe utility
  • Set ConfigComplete = 1 to indicate that you’ve completed this step

Important: This script will only work against “unmodified” team projects created with “MSF for Agile Software Development – v4.2” process templates on Beta1 version of Team Foundation Server 2010.

Download the Sample Script Download the Sample Script

 

What does the script do?

The script is a simple batch file that uses the witadmin.exe utility to make the following changes:

  • Saves a backup of your existing Bug, Task and Scenario work item types
  • Adds new link types (Test Case / Shared Steps and Tests / Tested By)
  • Adds new work item types (Test Case and Shared Step)
  • Overwrites Bug, Task and Scenario work item types
  • Adds work item categories

Questions?

For answers to frequently asked questions such as how to determine whether your team project is “unmodified”, see my follow up blog post:

If you have any questions about the script, feel free to contact me.

SampleScript.zip

Comments

  • Anonymous
    May 20, 2009
    PingBack from http://microsoft-sharepoint.simplynetdev.com/sample-script-to-enable-new-features-in-upgraded-team-projects-tfs-2010-beta1/

  • Anonymous
    May 20, 2009
    After you upgrade your server to Visual Studio Team System 2010 Beta 1, you have a wealth of new features

  • Anonymous
    May 20, 2009
    As a follow up to my previous blog post that talks about the sample script to enable new features in

  • Anonymous
    May 21, 2009
    If you are upgrading your VSTS 2008 server, you will need to enable Lab Management for existing projects.

  • Anonymous
    May 31, 2009
    Actualizando a Team Foundation Server 2010

  • Anonymous
    June 08, 2009
    Introducing the concept of “first class branches” is a significant part of the 2010 release for version