First, a little bit of history with the project, we were experiencing late delivery of builds or incomplete builds that could only have minimal testing applied to them, so we didn’t notice any real problems at first. Then we started getting into high levels of testing and one of my testers came to me and explained that one of the tests he had executed before in the Test Manager was now showing as “Active” (meaning needs to be executed) which was a bit odd :( When we looked into it, it wasn’t just that one test, there was loads of them (but not all) that had gone walkabout :o(
After a lot of digging around in all kinds of places, I decided to check the build definition that we were using and noticed something I hadn’t noticed before…..the retention policy, it was set to keep only the last 10 successful builds! I was onto something!! It appears that the default (certainly under the MSF for Agile template) was to delete everything INCLUDING TEST RESULTS!!! The good news was that we hadn’t lost too much and the option can be modified to delete everything else but the test results (screenshots below).

This is the build definition, please note the "Specify what to Delete" option in the drop down.

Here, you can uncheck the Test Results check box to ensure that they don't get deleted along with the build.
I would recommend to everyone that they take a look at their build definitions and modify them appropriately to avoid getting into this situation. If you have any questions, then please feel free to comment here, tweet me @dannycrone or even use ye olde email address dan_crone@nfocus.co.uk :)
4 comments:
We have encountered this too on the project I have been working on. I raised this with the Microsoft document writers for Microsoft Test Manager and they will be adding a note into the Test Manager documentation to make it clear where to make these changes.
Can you please let me know, how did you restore the deleted test results? Thanks!
Hi kanimozhi, unfortunately there is no way to restore them unless you have a backup of the TFS database :(
We had to manually re-execute the tests!
Thanks for posting this. This happened to us also, when looking in old test plans we would get build deleted warnings, and tests that had been run before were reset to Active.
Post a Comment