Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Migrating test artifacts: discovering matching artifact id for id in embedded image in test step

I am trying to migrate test artifacts from instance A to instance B. The process is to download all test artifact xml representations off instance A, then "massage" them a little and re-import them in the target environment in instance B.
Rebuilding the links between the artifacts seems doable, however as i have embedded images in the test script steps (description or expected results) I struggle, as in the xml of the test scripts, i find attachment IDs in the form of e.g.  https://clm4.local/qm/service/com.ibm.rqm.planning.service.internal.rest.IAttachmentRestService/_Z6jXEMXxEeqowNokGfz2UA, but in the attachment feed, they come as e.g. https://clm4.local/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/CT-EB_QM/attachment/urn:com.ibm.rqm:attachment:156.
Both denote the same attachment, but I cannot find the key to match them using REST.
Anyone, who can enlighten me...?

Thanks in advance..
Stefan

0 votes



One answer

Permanent link

 https://clm4.local/qm/service/com.ibm.rqm.planning.service.internal.rest.IAttachmentRestService/_Z6jXEMXxEeqowNokGfz2UA, is this internal API and https://clm4.local/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/CT-EB_QM/attachment/urn:com.ibm.rqm:attachment:156. is public Reportable Rest API.


You can use copy utility to copy resources from instance A to instance B

0 votes

Comments

Thank you Subhajit for your answer.
I could use the copy utility, however the intention had been to not just copy and paste, but also have some transformations between instance A and B, hence the attempt to use a custom implementation and the need to match the internal id to a publicly available one, or the question, which service provides the match programmatically.

Unfortunately also the copy utility does not handle my use case correctly, as images embedded in a text (e.g. in a test step expected result) are not migrated. Clicking on the  image in the destination tries to open the orginal location.

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Jul 29 '20, 3:50 p.m.

Question was seen: 1,301 times

Last updated: Jul 31 '20, 11:26 a.m.

Confirmation Cancel Confirm