I can get and upload attachments to the test result (green on screen) But how can I get result attachments that uploaded manually by Web runner (red on screen)
And the api below looks similar to that in the doc you shared about Attachments - Get Test Sub Result Attachments, and with this api, you could get the attachment ID.
get https://vstmr.dev.azure.com/<org>/<proj>/_apis/tcm/runs/8/results/100000?detailsToInclude=5&api-version=5.1-preview.1
So I modify the Attachments - Get Test Sub Result Attachment Zip, adding the query filter of detailsToInclude=5
like below.
https://vstmr.dev.azure.com/<org>/<proj>/_apis/tcm/runs/<runID>/results/<resultID>/attachments/<attachmentID>?detailsToInclude=5&api-version=5.1-preview.1
And I download the attachment correctly.
CodePudding user response:
This block called [Iteration]. So I need to get the Iteration that has this ID`s