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
|
One answer
![]() 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
Comments Thank you Subhajit for your answer.
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
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.