In order for MTM to run automated tests using Selenium, you need to associate the test with a test case in MTM. Currently MTM only supports MS tests, so you will need to create a wrapper for each selenium test.
Solution # 1: I would build a shell with a T4 template that would generate the necessary MS Test stubs that call my Selenium tests.
Then you will need a test case in TFS with the related "automation" MS automation.
Solution # 2: you can use the βtcm importβ command line tool to create and store your test cases in synchronization with automation.
Now that you have all the bits configured, you can continue and call the generated tests from MTM, and you are in the problem that @richard mentioned.
Solution # 3: you can configure the environment in MTM, where you are going to collect data and automate the trigger of the test run. This can be done as part of the assembly or better as part of your binary conveyor system in release management ( http://nakedalm.com/execute-tests-release-management-visual-studio-2013/ )
While there are many hoops to get all the settings, I found it to be a pretty reliable way to do the automation. It would be much easier if MTM supported other test environments, but now it is not.
source share