Reputation: 163
I have 1000 test cases present in TFS. Now I would like to automate those test cases using MTM(Microsoft Test Manager). I would like to download those test cases from TFS and run it in any client machines using MTM. How to achieve this? I followed this link https://msdn.microsoft.com/en-us/library/dd380741.aspx#link.
Upvotes: 0
Views: 655
Reputation: 23444
You have been able to do this since TFS 2010, and I have described how in the first two options. However if you are using TFS 2015+ (including VSTS) then this method has been deprecated and a new system is being built. See option #3 below for the best way to do this.
Option #3 also includes other tools as part of the new Team Build system to run automated tests from agents on multiple environments. See "Functional Testing Task" for that bit...
For this follow the documentation that you have from https://msdn.microsoft.com/en-us/library/dd380741.aspx and you need to associate each Automation individually with the Test Cases that it represents.
note: This only works with Automated Tests built in MSTest
If you don't have the Test Cases first you can use tcm.exe to to generate the Test Cases stubs from an automation assembly. Follow https://msdn.microsoft.com/en-us/library/dd465191.aspx for the docs. I have run this as part of my build process so that it is always up to date.
note: This only works with Automated Tests built in MSTest
If this is for tractability then you can use the new tools in TFS 2015/VSTS to directly associate a Test Result from a build with a Requirement. Once associated all future results will also be associated and there is a nice dashboard widget that displays this nicely.
https://blogs.msdn.microsoft.com/visualstudioalm/2016/08/02/traceability-with-continuous-testing/
Upvotes: 1