In Azure DevOps how can I associate automated tests to a test cases.

Subrat Panda 0 Reputation points
2025-07-29T12:08:10.43+00:00

In Azure DevOps I have an entry point for associating automated tests to test cases. But all the fields of the Associated Automation tab are in read-only mode. I want to associate an automated test to a test case. How Can I do it.
I Have gone through the official documentation https://devblogs.microsoft.com/devops/introducing-java-javascript-and-python-support-in-azuredevops-test-plans/I am no getting any clarity from this document. I this feature fully ready? Is the global release fully done? Else How can I get this feature through Public Preview?

User's image

Azure DevOps
{count} votes

2 answers

Sort by: Most helpful
  1. Durga Reshma Malthi 9,840 Reputation points Microsoft External Staff Moderator
    2025-07-29T14:48:44.34+00:00

    Hi Subrat Panda

    The Associated Automation tab in the Azure DevOps web portal is intentionally read-only. You can't manually edit those fields directly in the UI.

    However, you can update through Test Explorer in Visual Studio.

    Refer to this document - https://learn.microsoft.com/en-us/azure/devops/test/associate-automated-test-with-test-case?view=azure-devops

    • Open your test project in Visual Studio (2017 or later).
    • Go to Test Explorer.
    • Right-click the test method -> Associate to Test Case.
    • Enter the test case ID from Azure DevOps.
    • Save the association. The fields in the Associated Automation tab will now reflect the linked test.

    Hope this helps!

    Please Let me know if you have any queries.

    1 person found this answer helpful.
    0 comments No comments

  2. Durga Reshma Malthi 9,840 Reputation points Microsoft External Staff Moderator
    2025-07-31T07:05:12.8033333+00:00

    Hi Subrat Panda

    Ensure you need at least Basic + Test Plans access level or higher. Make sure you're using a Microsoft-hosted agent or a properly configured self-hosted agent that supports the test framework.

    Also ensure your pipeline includes either: PublishTestResults@2 task for JUnit, PyTest, etc or VSTest@3 for .NET-based tests. Without this, Azure DevOps won’t recognize the test results and won’t offer the association option.

    And ensure you toggle on to all the preview features in Azure DevOps. Go to User Settings on top right of devops organization -> Preview Features.

    Hope this helps!

    Please Let me know if you have any queries. If you found the information helpful, please click "Upvote" on the post to let us know and consider accepting the answer as the token of appreciation. Thank You.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.