Microsoft

How To: Associate automation programmatically

Jan 1, 2012Gautam Goenka [MSFT]
How To: Associate automation programmatically
SummaryAI, from the source post

This post provides a code snippet demonstrating how to programmatically associate automation (specifically unit tests) with a test case artifact in Azure DevOps. It outlines the use of the `ITestCase.Project.CreateTmiTestImplementation` method and the generation of an automation GUID using SHA1 hashing of the automation test name. The snippet includes saving the test case after associating the automation.

More from the Azure Test Plans Actual Result for Manual Tests trail