I wanted to see if anyone has had success creating a solution for "safe deleting" from QC/ALM? For example, if you "Delete" a test case, instead of it going away it will go into a designated folder (_Trash_) for safe retrieval later if needed. I know that there is at least one vendor solution out there, but I wanted to see if this forum membership has had any luck engineering their own solution and if so would you be willing to share some of that knowledge here? Thanks in advance for your assistance.
Our testers move things into a _To Be Deleted folder. If it is just test instances then I just delete them and bad luck if they made a mistake. If it is tests I then run excel reports to make sure those tests are not scheduled and are not actually templates that are in tests that are not in the _To Be Deleted folder. I don't do this very often so in general the team do have a bit of time to recover if they make a mistake.
We also have an _Archive folder too. Anything that goes into that folder is obsolete and not to be used during regression testing but we don't want it deleted as we still want to hang onto the run results.
Note, we are stuck in the dark ages and still use QC 9.2 so the archiving bit isn't really relevant as there are better options if you have ALM. It has been a good 18 months since I used ALM and can't remember if there is anything better for safe deletion but the above works fine for us in 9.2.
Last edited by brendan_dick; 08-21-2013 at 03:30 PM.
There is code somewhere in these forums (not written by me) that hooks in to the 'delete' action and moves the selected entity to a nominated folder (such as your _Trash_ example). The projects are set up with data hiding filters so that 'normal' users cannot see the _Trash_ folder.
There are downsides to this approach - ie. the record does still exist, as do its links to other entities.. more lines of code would fix that, but I'm not sure how you'd go about restoring links if you wanted to 'undelete' the artefact (by dragging it out of the _Trash_ folder..).
I didn't write the code, and it was a few years back.. but it does exist in the forums somewhere!