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

Article translations Article translations
Article ID: 2608743 - View products that this article applies to.
Expand all | Collapse all

On This Page

Introduction

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.

Resolution

Before you install the hotfix, use the following information. Make sure that you install the hotfix on the correct computer.
Collapse this tableExpand this table
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:
Collapse this tableExpand this table
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:
    http://blogs.msdn.com/b/aseemb/archive/2010/08/06/update-testsettings-utility.aspx
  3. Run the following command:
    UpdateTestSettings/collection:xxx/teamproject:xxx/settingsname:xxx/uploaddeploymentitem:true

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:
http://support.microsoft.com/contactus/?ws=support
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

Collapse this tableExpand this table
IssueDetailsSeverity/Priority
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.
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Leviewer.exe10.0.40219.350117,58429-Sep-201116:34x86
Microsoft.teamfoundation.build.client.dll10.0.40219.350435,08028-Sep-201104:44x86
Microsoft.teamfoundation.client.dll10.0.40219.3501,592,70428-Sep-201104:44x86
Microsoft.teamfoundation.common.dll10.0.40219.350523,13628-Sep-201104:44x86
Microsoft.teamfoundation.controls.dll10.0.40219.350937,85629-Sep-201116:34x86
Microsoft.teamfoundation.dll10.0.40219.350674,67228-Sep-201104:44x86
Microsoft.teamfoundation.lab.activities.dll10.0.40219.350767,88829-Sep-201116:34x86
Microsoft.teamfoundation.lab.client.dll10.0.40219.350152,45628-Sep-201104:44x86
Microsoft.teamfoundation.lab.uiutils.dll10.0.40219.350266,12029-Sep-201116:34x86
Microsoft.teamfoundation.lab.workflow.activities.dll10.0.40219.350439,71229-Sep-201116:34x86
Microsoft.teamfoundation.officeintegration.project.dll10.0.40219.350515,49629-Sep-201116:34x86
Microsoft.teamfoundation.testmanagement.activities.common.dll10.0.40219.350314,29629-Sep-201116:34x86
Microsoft.teamfoundation.testmanagement.activities.dll10.0.40219.3501,510,31229-Sep-201116:34x86
Microsoft.teamfoundation.testmanagement.activityruntime.dll10.0.40219.350219,05629-Sep-201116:34x86
Microsoft.teamfoundation.testmanagement.client.dll10.0.40219.350684,44828-Sep-201104:44x86
Microsoft.teamfoundation.testmanagement.client.themes.dll10.0.40219.3503,058,09629-Sep-201116:34x86
Microsoft.teamfoundation.testmanagement.client.wpfcontrols.dll10.0.40219.350256,95229-Sep-201116:34x86
Microsoft.teamfoundation.testmanagement.clientpackage.dll10.0.40219.35073,13629-Sep-201116:34x86
Microsoft.teamfoundation.testmanagement.common.dll10.0.40219.35033,69628-Sep-201104:44x86
Microsoft.teamfoundation.testmanagement.controller.dll10.0.40219.350119,72029-Sep-201116:34x86
Microsoft.teamfoundation.testmanagement.controls.dll10.0.40219.350492,96029-Sep-201116:34x86
Microsoft.teamfoundation.testmanagement.controls.wpfworkitemcontrols.dll10.0.40219.35099,28029-Sep-201116:34x86
Microsoft.teamfoundation.versioncontrol.client.dll10.0.40219.350704,92828-Sep-201104:44x86
Microsoft.teamfoundation.versioncontrol.common.dll10.0.40219.350231,84028-Sep-201104:44x86
Microsoft.teamfoundation.versioncontrol.controls.dll10.0.40219.3504,438,43229-Sep-201116:34x86
Microsoft.teamfoundation.workitemtracking.client.dll10.0.40219.350698,27228-Sep-201104:44x86
Microsoft.teamfoundation.workitemtracking.controls.dll10.0.40219.3501,213,35229-Sep-201116:34x86
Microsoft.teamfoundation.workitemtracking.proxy.dll10.0.40219.350390,04828-Sep-201104:44x86
Microsoft.visualstudio.qualitytools.agentobject.dll10.0.40219.350104,86429-Sep-201116:34x86
Microsoft.visualstudio.qualitytools.common.dll10.0.40219.3501,353,61629-Sep-201116:34x86
Microsoft.visualstudio.qualitytools.controllerobject.dll10.0.40219.350275,36829-Sep-201116:34x86
Microsoft.visualstudio.qualitytools.executioncommon.dll10.0.40219.350480,16829-Sep-201116:34x86
Microsoft.visualstudio.qualitytools.testcasemanagement.dll10.0.40219.3501,284,01629-Sep-201116:34x86
Microsoft.visualstudio.qualitytools.tmi.dll10.0.40219.350397,71229-Sep-201116:34x86
Microsoft.visualstudio.teamfoundation.build.dll10.0.40219.350141,72029-Sep-201116:34x86
Microsoft.visualstudio.teamfoundation.dll10.0.40219.35093,06429-Sep-201116:34x86
Microsoft.visualstudio.teamfoundation.teamexplorer.dll10.0.40219.350798,12029-Sep-201116:34x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll10.0.40219.35058,28829-Sep-201116:34x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll10.0.40219.35058,80029-Sep-201116:34x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll10.0.40219.35060,33629-Sep-201116:34x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll10.0.40219.35062,89629-Sep-201116:34x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll10.0.40219.350939,43229-Sep-201116:34x86
Microsoft.visualstudio.teamfoundation.workitemtracking.dll10.0.40219.350460,20829-Sep-201116:34x86
Microsoft.visualstudio.teamsystem.integration.dll10.0.40219.350192,40829-Sep-201116:34x86
Microsoft.visualstudio.testtools.manualtest.common.dll10.0.40219.350812,45629-Sep-201116:34x86
Microsoft.visualstudio.testtools.uitest.extension.ie.dll10.0.40219.350250,28029-Sep-201116:34x86
Microsoft.visualstudio.testtools.uitest.extension.uia.dll10.0.40219.350106,41629-Sep-201116:34x86
Microsoft_visualstudio_qualitytools_vstst_schema.x86Not applicable140,17527-Sep-201120:18Not applicable
Msdiff.dll10.0.40219.350484,68029-Sep-201116:34x86
Mtm.exe10.0.40219.350448,32829-Sep-201116:34x86
Qtagent32.exe10.0.40219.35020,30429-Sep-201116:34x86
Qtagent32.exe10.0.40219.35020,31229-Sep-201116:34x86
Tf.exe10.0.40219.350324,92829-Sep-201116:34x86

Status

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

Properties

Article ID: 2608743 - Last Review: October 11, 2012 - Revision: 3.0
Applies to
  • Microsoft Visual Studio Team Foundation Server 2010
Keywords: 
kbautohotfix kbqfe kbhotfixserver kbfix KB2608743

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com