My issue was closed prematurely at the Microsoft Developer Community so I'm hoping (and praying) someone from the community may have a suggestion.
Whenever I open a test result in Azure DevOps, it's not loading the full list of attachments linked to the test case. Typically, after a test run as part of a release, I will manually upload some attachments to individual test cases. The attachments are typically a .jpg, and a .mp4. The .mp4 rarely exceeds 10mb.
This is the API test attachments GET request...
GET https://[organization]/[project]/_apis/test/Runs/1016852/Results/100000/attachments?api-version=5.1-preview.1
And here is a screenshot of the results...
Here is an example of an attachment returned by the results...
https://[organization]/[project]/_apis/test/Runs/1016852/Results/100000/Attachments/1111488
and here is an example running the link in my browser to download the attachment...
As you can see, attachment is downloaded and opened succesfully.
Now, when I browse to the test result in Azure DevOps with the following link (Note that the run and result IDs are identical to the above)...
https://[organization]/[project]/_testManagement/runs?runId=1016852&_a=resultSummary&resultId=100000%3Ehttps://smartassessor.visualstudio.com/Smart%20End%20Point%20Assessment/_testManagement/runs?runId=1016852&_a=resultSummary&resultId=100000
I see only 2 attachments instead of 10...
Here is an example body that I am posting to the attachments endpoint...
{
"stream": "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABlSURBVDhP7cxBCsAgDERR739pG/CnGJI0FopQ8O2cjNP6R85QbeNQU7wT1dkijaQ3vkZoWElaoTeJojW01cYh0jwfgiFBV/lEjOZtacijN/nLkOBHhIaVDgn+Wdycp6FXzlCl9wt0Y0cAzHo/zgAAAABJRU5ErkJggg==",
"fileName": "imageAsFileAttachment.png",
"comment": "Test attachment upload",
"attachmentType": "GeneralAttachment"
}
What could be the issue here?





