How to add an attachment to a test result from the command line?
Accepted answer
When we do this (although using the REST calls directly rather than using the RQMURLUtility) we take two steps:
Upload the attachment by POSTing to the attachment feed. Presumably this is what the Attachment upload example of using RQMURLUtility is doing. The result of this is a slug that identifies the attachment.
We then PUT the execution result (see the artifact upload example) to include the link to the uploaded attachment. For example, we add the xml such as the following:
(for some reason I am finding it hard to show all the xml in this answer - it keeps getting truncated).
Upload the attachment by POSTing to the attachment feed. Presumably this is what the Attachment upload example of using RQMURLUtility is doing. The result of this is a slug that identifies the attachment.
We then PUT the execution result (see the artifact upload example) to include the link to the uploaded attachment. For example, we add the xml such as the following:
(for some reason I am finding it hard to show all the xml in this answer - it keeps getting truncated).
<ns2:executionresult> other elements <ns2:attachment href="...link to created attachment.../> </ns2:executionresult>
Comments
3 other answers
https://jazz.net/wiki/bin/view/Main/RQMURLUtility#UPLOAD
What artifact are you going to upload the attachments to?
What artifact are you going to upload the attachments to?
not able to get the slug id in the response for the success of the attachment??? please help