Links to deleted testdata through REST interface still available
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:
Best regards,
Melanie
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:
- <?xml version="1.0" encoding="UTF-8"?>
- <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">
- <ns2:projectArea alias="SomeProjectArea" href="https://server/qm/resource/itemOid/com.ibm.team.process.ProjectArea/_Bi7dEz8iEeSu1Y5Y3pNzNQ"/>
- <ns3:identifier>https://server/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_Bi7dEz8iEeSu1Y5Y3pNzNQ/testscript/urn:com.ibm.rqm:testscript:3220</ns3:identifier>
- <ns2:webId>3220</ns2:webId>
- <ns3:title>Manueller Testfall2</ns3:title>
- <ns3:description/>
- <ns2:creationDate>2015-08-04T14:47:09.712Z</ns2:creationDate>
- <ns5:updated>2015-08-14T07:13:49.214Z</ns5:updated>
- <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>
- <ns3:creator ns7:resource="https://server/jts/resource/itemName/com.ibm.team.repository.Contributor/melanie.reiter">melanie.reiter</ns3:creator>
- <ns5:owner>unassigned</ns5:owner>
- <ns2:locked>false</ns2:locked>
- <ns2:scripttype>com.ibm.rqm.planning.common.scripttype.manual</ns2:scripttype>
- <ns2:variables/>
- <ns2:includeBuiltInVars>false</ns2:includeBuiltInVars>
- <ns2:steps>
- <ns9:step ns1:id="_05nbEzq3EeWoxeiciUT2_Q" type="execution" stepIndex="1">
- <ns9:name>Testdaten auslesen</ns9:name>
- <ns9:title>Testdaten auslesen</ns9:title>
- <ns9:description>
- <div:div xmlns:div="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml">Testdaten auslesen</div:div>
- </ns9:description>
- <ns9:comment/>
- <ns9:compare/>
- </ns9:step>
- </ns2:steps>
- <ns2:datapool href="https://server/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/_Bi7dEz8iEeSu1Y5Y3pNzNQ/datapool/_y9SHEkJTEeWXHttxBUbv7w"/>
- </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?
Melanie
One answer
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
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
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.
Hello Melanie,
Can also show the GET request that you are using to gather the xml?
Are you using abbreviate=false to include the archived and purged flags in the xml?