It's all about the answers!

Ask a question

Links to deleted testdata through REST interface still available


0
1
Melanie Finke (7731520) | asked Aug 14 '15, 3:38 a.m.
edited Aug 14 '15, 6:55 a.m.
Hello,

I have an automation adapter for rqm and need in addition testdata linked to a manuell testscript of the same testcase. To get this testdata and the corresponding filter I follow this steps:

1. In the automationRequest recived by the automation adapter get dc:relation
2. In this xml get http://jazz.net/xmlns/alm/qm/v0.1/:executionworkitem
3. Next get the testcase http://jazz.net/xmlns/alm/qm/v0.1/:testcase
4. Testcase specific filters are available at http://jazz.net/xmlns/alm/qm/v0.1/:testcaserecordselection attributes
          There is one attribute for each manuell testscript including an testcase specific filter.
5. The manuell testscript is available at: http://jazz.net/xmlns/alm/qm/v0.1/:executionscript
6. There is a http://jazz.net/xmlns/alm/qm/v0.1/:datapool containing the information about the testdata
7. Through http://jazz.net/xmlns/alm/qm/v0.1/:attachment the actual testdata is available

I deleted the testdata without deleting the links bevor. The result is:
1. The link stays in the testscript ui (overmouse informs about deletion)
2. The filter disappears in the testcase ui
3. The filter at  http://jazz.net/xmlns/alm/qm/v0.1/:testcaserecordselection is still visible
4. The url to http://jazz.net/xmlns/alm/qm/v0.1/:datapool does not work any more
(Error 404: SRVE0295E: Error reported: 404)

After deleting the testdata from trash, links and corresponding filters disappear.
Is there a way to find out, if the filter and corresponding links are still actual or in the trash?


Thank you Gerd for your fast answer, but there is no archived or purged flag on my xml.
Eg. I have got an xml file like that:

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ns2:testscript xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://schema.ibm.com/vega/2008/" xmlns:ns3="http://purl.org/dc/elements/1.1/" xmlns:ns4="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns5="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns6="http://purl.org/dc/terms/" xmlns:ns7="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns10="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns11="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns12="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns13="http://open-services.net/ns/core#" xmlns:ns14="http://open-services.net/ns/qm#" xmlns:ns15="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/" xmlns:ns16="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns17="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns19="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns20="http://www.w3.org/1999/XSL/Transform">
  3. <ns2:projectArea alias="SomeProjectArea" href="https://server/qm/resource/itemOid/com.ibm.team.process.ProjectArea/_Bi7dEz8iEeSu1Y5Y3pNzNQ"/>
  4. <ns3:identifier>https://server/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_Bi7dEz8iEeSu1Y5Y3pNzNQ/testscript/urn:com.ibm.rqm:testscript:3220</ns3:identifier>
  5. <ns2:webId>3220</ns2:webId>
  6. <ns3:title>Manueller Testfall2</ns3:title>
  7. <ns3:description/>
  8. <ns2:creationDate>2015-08-04T14:47:09.712Z</ns2:creationDate>
  9. <ns5:updated>2015-08-14T07:13:49.214Z</ns5:updated>
  10. <ns5:state ns7:resource="https://server/qm/service/com.ibm.rqm.integration.service.IIntegrationService/process-info/_Bi7dEz8iEeSu1Y5Y3pNzNQ/workflowstate/com.ibm.rqm.process.testscript.workflow/com.ibm.rqm.planning.common.new">com.ibm.rqm.planning.common.new</ns5:state>
  11. <ns3:creator ns7:resource="https://server/jts/resource/itemName/com.ibm.team.repository.Contributor/melanie.reiter">melanie.reiter</ns3:creator>
  12. <ns5:owner>unassigned</ns5:owner>
  13. <ns2:locked>false</ns2:locked>
  14. <ns2:scripttype>com.ibm.rqm.planning.common.scripttype.manual</ns2:scripttype>
  15. <ns2:variables/>
  16. <ns2:includeBuiltInVars>false</ns2:includeBuiltInVars>
  17. <ns2:steps>
  18. <ns9:step ns1:id="_05nbEzq3EeWoxeiciUT2_Q" type="execution" stepIndex="1">
  19. <ns9:name>Testdaten auslesen</ns9:name>
  20. <ns9:title>Testdaten auslesen</ns9:title>
  21. <ns9:description>
  22. <div:div xmlns:div="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml">Testdaten auslesen</div:div>
  23. </ns9:description>
  24. <ns9:comment/>
  25. <ns9:compare/>
  26. </ns9:step>
  27. </ns2:steps>
  28. <ns2:datapool href="https://server/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_Bi7dEz8iEeSu1Y5Y3pNzNQ/datapool/_y9SHEkJTEeWXHttxBUbv7w"/>
  29. </ns2:testscript>

If I try to follow the href in ns2:datapool I get the error (Error 404: SRVE0295E: Error reported: 404)

Is there a way to know the link is dead in advance?

Best regards,

Melanie

One answer



permanent link
Gerd Schiering (12211316) | answered Aug 14 '15, 4:57 a.m.
JAZZ DEVELOPER
edited Aug 14 '15, 4:57 a.m.
Hello Melanie,

You can check for the purged flag.
when you delete from the UI, the records stay in the DB.
we are not showing them anymore in the UI. They are now carrying the ARCHIVED flag.
That is the reason why you can still find the links through the API.

Once you delete from Trash that will "conserve" a record that it existed ever and who did the delete.
Actual data and history will either be deleted from the DB or in the case of attachments, be replaced by an empty file.

Using the API description
https://jazz.net/wiki/bin/view/Main/RqmApi#includeArchived
you see that the artifacts deleted from the UI carry the archived flag and the ones that have been deleted from trash carry the purged flag.

Hope this explains,
Gerd

IBM TechSupport

Comments
Melanie Finke commented Aug 17 '15, 3:59 a.m.

Hello Gerd,
thank you for your answer, but I do not have an archived or purged flag in my xml file. It is fetched without an restriction to specific attributes. In my edited question there is an xml example.


Gerd Schiering commented Aug 17 '15, 8:14 a.m.
JAZZ DEVELOPER

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.