Learn to use Visual Studio, Visual Studio Online, Application Insights and Team Foundation Server to decrease rework, increase transparency into your application and increase the rate at which you can ship high quality software throughout the application lifecycle
More videos »
I have seen a lot of customers who use TCM.exe to execute tests on remote environments, but I have not seen many who use the same command-line to execute the tests locally. Here by locally, I mean tests running on the developer’s/tester’s box, which does not have any test controller or test agent and has only MTM. Yes, it’s possible to do this in 2012 version. :)
Now Let us go over the steps which you should follow to execute the tests locally.
tcm run /create /title:"Nightly Run" /planid:1 /suiteid:5 /configid:13 /settingsname:"<Name of your automated test settings>" /collection:<CollectionURL> /teamproject:<Team Project name>
Run created with ID: <xxx>
tcm run /execute /id:id /collection:<CollectionURL> /teamproject:<Team project name>
On completion, you will get the results as shown below.
Super useful; thanks!