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
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.
I think that it is an issue with your permissions in TFS. You need to have View builds
permission to the Build you have assigned in the Build definition
.
Ask from your admin to give you the permission needed, or if you can do it by yourself:
- Open
Visual Studio 2010
- Go to
Team Explorer
-->Builds
--> and right click to the Build you want - Select
Security
and give the appropriate permission to the User that isOwner
of the Test Plan in MTM.
来源:https://stackoverflow.com/questions/12996489/how-to-associate-a-build-to-the-test-plan-in-microsoft-test-manager-mtm-2010