Visual Studio 2010 introduced significant new testing tools including the notion of “actionable bugs”. An actionable bug contains a configurable collection of diagnostic data including keystrokes, event logs, system information, IntelliTrace logs and even a screen cam of the test being performed. This greatly reduces the amount of data that the tester needs to collect and increases the amount of useful information for the developer, helping to drive faster bug resolution. All good stuff, but a question that comes up fairly often is where does this get stored, and can I manage the amount of space this is taking up on my server?
All of this data is stored in Team Foundation Server, and therefore is to be found in the TFS instance’s SQL Server. In terms of managing the space I see there being three main approaches:
Each test plan can have one or more test settings. Each test setting defines the exact combination of data that is recorded:
As a simplistic example I’ve defined a “Minimum Data” test setting, which may only record Actions and System Information, and an “All Possible Data” Test Setting that, well, records everything possible. When I run the tests I can then choose which test setting is most appropriate:
Another option to be aware of is that within most of the data adapters there are options to play with that can effect the quantity of data collected. Click on the relevant Configure button and have a look at the options. Two examples I think are worth checking are the IntelliTrace settings (which events are you actually interested in, how big can the log file be etc.) and the Video Recorder:
These are self explanatory but you may well not want to save a video unless the test fails, and you can play around with quality, frame rate and bit rate to achieve the suitable compromise that suits your needs and balances video quality versus file size.
The other option is to use the Test Attachment Cleaner for Visual Studio Ultimate 2010 & Test Professional 2010. This command line tool allows you to understand how much space is being taken up by which data and to delete the data you don’t want. The sample settings files that are supplied with the tool provide examples of how to :