We've all done it at one stage or another—deleted a test in Quality Center, only to realise that it was deleted by mistake. To fix this you would have to manually capture the lost data, or restore the project from a backup (assuming there is one) and salvage the lost data from there.

It would be great to have a "Recycle Bin" feature in Quality Center to provide a restore capability when something was deleted by accident. With Quality Center's workflow engine, it is possible to implement just that.

The Recycle Bin can be developed as a feature integrated with the existing Delete function. It will also retain version control of deleted entities if version control is implemented. Below is an example that shows how a Recycle Bin was implemented in the Test Plan module (it is also possible to develop a similar feature for the Requirements and Test Lab modules):

Quality Center Recycle Bin - Test Plan

Quality Center Recycle Bin - Test Plan

Quality Center Recycle Bin - Test Plan

Quality Center Recycle Bin - Test Plan

Quality Center Recycle Bin - Test Plan

Quality Center Recycle Bin - Test Plan

Quality Center Recycle Bin - Test Plan

At this stage the way to restore a test or folder would be to manually move it from the Recycle Bin back to it's original location. However the recycle bin feature can be further enhanced to provide an automatic restore with a custom "Restore" button on the toolbar.

Tech tips from JDS

6 comments

Francis Miles

Hi. Interesting concept. How do I implement this please?

Hello there,
is it possible to share this solution with us?
best regards
Unsal Gunal

Hi Reinhardt, could you please share this code? Thanks in advance,

Hello Reinhardt Moller,
can you please share the source code?

Please help with the code if possible, How to implement this,

Do you mind sharing the code behind this functionality ?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.