How to capture Current Test Case ID that's current being run in the MTM pragmatically using C# code?
Thanks & Regards,
woodson
How to capture Current Test Case ID that's current being run in the MTM pragmatically using C# code?
Thanks & Regards,
woodson
Had the same question and found the answer: how-to-retrieve-the-id-of-the-workitem-that-started-an-automated-test
Basically you get it from the TestContext
with string tcId = TestContext.Properties["__Tfs_TestCaseId__"].ToString();