OSLC api to Store and upload attachment from one test case result to another
I have a use case to store attachment from one test case result and upload it to another test case result.
I went through links https://jazz.net/forum/questions/280154/how-to-upload-file-using-rqm-reportable-rest-api I do not see attachment for resource type for executionworkitem. I also want to know if RQMURLUtility or commandline support this usecase in better way. Please let me know if there are some examples for copying attachment.
One answer
I found this about attachments: https://jazz.net/forum/questions/135526/uploading-attachments-for-rqm-automation-result-through-oslc
Comments
ETM has at least two public APIs. The OSLC API and the Reportable REST API see https://jazz.net/wiki/bin/view/Main/RqmApi#HTTP_PUT_POST_Requests .
The Reportable REST API For ETM is a misnomer, because it also allows to POST and PUT which is not reporting. The Reportable REST API seems to support multipart for uploading attachments. Other applications only allow GET.
I found this answer, and there are more: https://jazz.net/forum/questions/279587/how-to-create-test-result-via-reportable-rest-api-oslc-api-in-etm
Originally, there was a proposal for an OSLC specification for reportable REST. However, it never got past draft stage and then was never published. Since there isn't a public specification for it, different applications have done their own thing, so it's turned into a proprietary API without a specification, and as you have found out, there are differences in implementations between applications.