How to associate a Build to the test plan in Microsoft Test Manager (MTM) 2010?

Raul Reyes picture Raul Reyes · Oct 21, 2012 · Viewed 9.9k times · Source

I am new using Microsoft Test tools, please help:

When trying to run a test case from MTM, I am receiving the following warning message:

Cannot create automated test run. A build associated with the active test plan is required to submit an automated test run

Background info:

  • I have created a Build definition in VS 2010
  • I have created a Build service host with Agents:Controller and Agent
  • When I open MTM>Testing Center>Properties Build Configurations I can see my build definition selected in "Filter for Builds:"

Problem: In MTM>Testing Center>Properties Build Configurations > "Build in use:" is set to None, when I open Assign Build section I have not available build

Answer

Alex Ferreira picture Alex Ferreira · Jul 24, 2014

Just as a pointer, in case someone finds this (unanswered) post:

"To get automated tests working from Microsoft Test Manager you need to associate a build containg the automation component with a test plan. This tells MTM where to find the code for the automated tests. Then you also need a test environment which MTM will communicate with and run the tests on.

The following article describes how to setup a test plan to run automated tests: http://msdn.microsoft.com/en-us/library/dd553270.aspx"

from this post in msdn.