Using RQM REST API to obtain attachment name of a test case?
![]()
I can get attachment links of a test case with the following:
GET /qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/PRJAREA/testcase/ID
and, I can get attachment name of all attachments with the following:
GET /qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/PRJAREA/attachment
However:
My question is: How do I get the file name of attachments of a test case?
|
Accepted answer
![]()
Unfortunately, you have to make two RQM Reportable REST API requests:
1. GET test case to resolve the attachment URL(s). 2. GET attachment feed (or resource) to resolve the attachment name. Rophy Tsai selected this answer as the correct answer
Comments The problem is that the attachment URLs obtained from GET testcase actually download the attachments instead of showing attachment information. Use the Accept=application/xml header on your GET request. See https://jazz.net/wiki/bin/view/Main/RqmApi#ResourcesFootnote6.
That's exactly what I needed, thanks! |
One other answer
![]()
Hi Rophy Tsai ,
I need the same requirement what you are working on but i am not clear how to run the XMl file in java to obtain RQM details for a test case , could you please help me regarding this.
|