How to Get ID of Attachment Added to RQM Test Case Result
![]()
I'm working with a customer that is developing scripts using NI TestStand and executing them from RQM using the NI RQM adapter. The challenge is getting the TestStand report that is attached to the RQM Test Case Results printable. QM's built-in print to pdf capability doesn't include it, so we'll need to use other means.
To get it at it ourselves, we need to get the report attachment that the adapter added to the test case result. The challenge is that:
1. The TestStand report is an attachment. It's visible in the QM attachment feed:
![]()
2. Unfortunately the executionresult doesn't include the ID (32 above) of the attachment. It only includes what appears to be a slug ID:
![]()
The question is thus: how can I get use the slug in the executionresult to get the attachment?
|
Accepted answer
![]() select ID from planning.attachment where item_id= "value of reportpdf element in the RQM Test Case Result" This enables one to construct the 'normal' REST URL of the attachment and to make it gettable by RPE Option 2: Request the attachment using the internal (non-public) URL: https://QMSERVER/qm/service/com.ibm.rqm.planning.service.internal.rest.IAttachmentRestService/"value of reportpdf element in the RQM Test Case Result" This option could be used by custom code only (RPE can only use the normal public REST URLs) Daniel Chirillo selected this answer as the correct answer
|
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.