how to reinstate a deleted test case?
I deleted a couple of test cases by mistake. Any way to reinstate these?
Thanks :oops: |
5 answers
Unfortunately, you cannot unarchive a test resource from the RQM UI (https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/52743). You can use Poster to make a REST call, but it's unsupported:
https://<server>/service/com.ibm.rqm.planning.common.service.rest.ITestCaseRestService/archiveTestCases?uuids_versionable=<test>&archive=false&processArea=<project> Comments
Li Chen
commented Apr 11 '13, 4:51 p.m.
I tried the URL (http instead of https) using Firefox and got a file returned archiveTestCases how can I open it? Try any text editor.
Li Chen
commented Apr 12 '13, 9:34 a.m.
Thanks Paul, I only see something like this
In some editor it shows something like NAK ETX SOH NUL STX STX and I do not see that the test case was restored back. I understand that NAK is not a good sign at all. But I have no idea why my request like this was declined. Any idea Paul?
719057 is the ID of the deleted test case and 4-p9oI2WEd6VtItmR49FfQ
Paul Slauenwhite
commented Apr 12 '13, 9:43 a.m.
| edited Apr 12 '13, 9:43 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Unfortunately, we cannot persue this further since this is not a public API. To restore resources, see As a User, I want to restore artifacts from the Trash/Audit view (80449).
Li Chen
commented Apr 12 '13, 11:50 a.m.
Jared elaborated more based on your idea. http://jaredrussell.wordpress.com/ Then I realized that I cared too much about the result and tried your URL immediately with firefox once I saw it, never read it again until I came across Jared article and realized it was for REST API.
|
Hi Paul
Thanks for the feedback. I suspected this might be the case. I deleted the test cases while modifying the "suspecct" status in the View Test Cases. I was selecting mulitple test cases and changing the status but rather stupidly selected delete instead. Is there any way of changing the permissions on who can delete a test case (and by this I mean total delete and not just removing the association with a test plan)? I looked on the roles/permissions section of the JTS but could not find a field relating to the Deletion of test cases. Cheers Una |
Unfortunately, you cannot set a delete permission on test cases.
|
Hi,
you might want to track this plan item that considers related features: https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=52743 Regards, Stéphane |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.