0
votes

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...

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...

attachment download request in the browser

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...

2 / 10 attachments

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?

1

1 Answers

0
votes

I tested it according to your description, but unfortunately I could not reproduce your problem. I uploaded the attachments using the rest api. The attachments can be displayed normally in the test case and match the number of attachments queried with the rest api.

enter image description here

enter image description here

enter image description here

You can check the set retention time in Test Retention to see if the attachments were automatically deleted. If this is ruled out, there is a recently event of availability degradation of Azure DevOps, which could affected these services, and it has been resolved. You can check if the issue still exists.

If this issue still exists, here is a case with similar problem. In this case, this problem should be a bug and fixed, but this does not rule out the possibility of recurrence. You can submit a new ticket in the developer forum and report the problem as a bug.