It's all about the answers!

Ask a question

how to reinstate a deleted test case?


0
1
Una Ramsay (1101918) | asked Mar 20 '12, 9:06 a.m.
I deleted a couple of test cases by mistake. Any way to reinstate these?

Thanks
:oops:

5 answers



permanent link
Paul Slauenwhite (8.4k12) | answered Mar 21 '12, 8:31 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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?


Paul Slauenwhite commented Apr 12 '13, 8:23 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

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
 is the project area.


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.


permanent link
Una Ramsay (1101918) | answered Mar 21 '12, 10:52 a.m.
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

permanent link
Paul Slauenwhite (8.4k12) | answered Mar 21 '12, 12:00 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Unfortunately, you cannot set a delete permission on test cases.


permanent link
Stephane Leroy (1.4k149) | answered Apr 12 '13, 8:51 a.m.
JAZZ DEVELOPER
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


Register or to post 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.