How to add attachments and external links to execution result via REST API / RQMUrlUtility
I can successfully create test execution result artifacts via RQMUrlUtlity PUT request and self-created XML (from scratch). I want to add a link to an external web-site to the execution result so I added according tags to the created xml (tried tags "attachment" and "contribution" with "href" attribute) but it is just ignored - when I review the result on the Web-GUI no links (attachments) show up in the Result Details section. However, when execution results are created via Commandline Adapter the same links do show up.
Can anybody tell what's I am doing wrong?
RQM version is 6.0.2
Thanks!
Accepted answer
Comments
Hi Michael,
thanks for your response. Yes, in the meantime I also came across this workaround adding hyperlinks to the Result Details section and this works fine for external links. However, still wondering how to link to attachments which I actually uploaded to RQM.
According to what you are saying "The REST API will reject any links that are not actually attachments (i.e. links to QM's attachment service)." I would assume adding attachment element to the XML will work provided that the link is valid? If so, this is probably what I did wrong - I will try again and will let you know. Thanks for now!
One other answer
Comments
Hi Michael,
thanks for the quick response!
So does this mean there is no way to add an attachment to an artifact (here: execution result) via the REST API? As I stated, it works through the CommandLine adapter for both uploaded attachments as well as links to external web-sites.
Good question. I took a look at the code for the command-line adapter and it is using some private APIs to do those things.