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
Rophy Tsai
commented Sep 10 '14, 2:15 p.m.
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.
Rophy Tsai
commented Sep 13 '14, 3:33 p.m.
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.
|
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.