A hotfix that can reduce the size of the test data saved to the TFS database is available for Team Foundation Server 2010 Service Pack 1

Applies to: Microsoft Visual Studio Team Foundation Server 2010


When you publish the results of automated test runs in Microsoft Visual Studio Team Foundation Server (TFS) 2010 with Service Pack 1 (SP1), all the deployment items and the binaries of the test runs are uploaded. These uploaded items and binaries can be used later if you rerun these tests and analyze failures. 

However, the following issues can be caused by publishing: 
  • The TFS database becomes heavy if the deployment items and the binaries are large.
  • The performance decreases on the client side when you try to open the published test run results because all the deployment items and the binaries are downloaded locally. 
A hotfix is available that contains the following changes for TFS 2010 SP1:
  • By default, the deployment items and binaries of test runs are not uploaded when you publish the results of automated test runs. Instead, only test result files and other data collector attachments are uploaded. 
  • In the Visual Studio IDE, the option "Run checked deployed tests" for tests is disabled. 
  • A new Boolean attribute, UploadDeploymentItem, is added into the test settings. You can explicitly set it to True if you want to override the default behavior and upload the deployment items and test binaries for certain test runs. 
  • If code coverage is enabled for the test runs, all the test binaries are always uploaded because they are required for code coverage analysis.


Before you install the hotfix, use the following information. Make sure that you install the hotfix on the correct computer.
Computer role Hotfix installationResults
Test controllerRequiredBy default, all automated test runs that are queued through Microsoft Test Manager and lab build deploy test workflow do not upload the deployment items if the hotfix is installed. 
Build agentRequiredBy default, all the automated test runs that are queued through team build do not upload the deployment items if the hotfix is installed.
Visual StudioOptional If the hotfix is installed, all automated test runs that are queued locally and later published to TFS do not upload the deployment items.

If the hotfix is installed, the Re-run deployed tests button is disabled or enabled correctly based on whether the test run has the UploadDeploymentItem attribute enabled.

If the hotfix is not installed, the Re-run deployed tests button is enabled in every case. But the rerun operation fails if the test run does not have the deployment items uploaded.

If the hotfix is installed, IntelliSense support works when you add the UploadDeploymentItem attribute in the test setting in the XML editor.
Microsoft Test Manager OptionalIf the hotfix is installed, all the automated test runs that are published through TCM.exe do not upload the deployment items.
TFS, test agents, build controllerNot requiredNo affect

If you try to select some test runs to upload the deployment items and the test binaries, follow these steps:
Run typeSteps
Test runs from Visual Studio, Team Foundation Build, or Microsoft Test Manager.
  1. The test settings for these scenarios are created and edited from Visual Studio.
  2. Edit the test setting in the XML test editor to add UploadDeploymentsItem=true under the Deployment node.
  3. Save the settings, and use them for new test runs.
  4. When you publish the results for the new test runs, the related deployment items and test binaries are uploaded.
Test runs from Microsoft Test Manager,  Tcm.exe.
  1. The test settings for these scenarios are typically created and edited from Microsoft Test Manager.
  2. Download and run the tool UpdateTestSettings.exe on a computer that runs Visual Studio, a build agent, a test controller, or Microsoft Test Manager and that has the hotfix installed. Download UpdateTestSettings from the following MSDN Blog website:
  3. Run the following command:

Hotfix information

 A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problems that are described in this article. Apply this hotfix only to systems that are experiencing the problems that are described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not exist, contact Microsoft Customer Service and Support to obtain the hotfix. 

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Known Issues

Updating test settings is complex in Microsoft Test Manager.You have to download and use the UpdateTestSettings tool to set or to obtain the UploadDeploymentItem attribute. Priority: Medium
Severity: Medium
Changes to UploadDeploymentItem attribute are lost in some cases.
  1. When test settings are updated from a client that has the hotfix and then from a client that lacks the hotfix, the changes that you made to UploadDeploymentItem attribute are lost.
  2. If you had set the value to true, updating the test setting from a client that lacks the hotfix would change it to false.
  3. To determine whether the changes that were made to UploadDeploymentItem are lost, you must use the "Re-run deployed tests" feature in Visual Studio.
Priority: Low
Severity: Medium
"Re-run deployed tests" on tests give errors in some cases.
  1. If a test runs works on a build agent with the hotfix, no deployment items would be uploaded.
  2. If you try to analyze the test run from Visual Studio without the TFS hotfix, the Re-run deployed tests button is always enabled.
  3. When you try to run the tests, you receive an error about missing .dll files.
Priority: High
Severity: Low
Update test settings tool throws unhandled exceptions.If an invalid test setting or an invalid parameter is specified, the tool may crash.Priority: Low
Severity: Low

File information

The English (United States) version of this hotfix uses a Microsoft Windows Installer package to install the hotfix. The dates and the times for these files are listed in Coordinated Universal Time (UTC) in the following table. When you view the file information, the date is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
File nameFile versionFile sizeDateTimePlatform
Microsoft_visualstudio_qualitytools_vstst_schema.x86Not applicable140,17527-Sep-201120:18Not applicable


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.