简体   繁体   中英

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

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:

  1. Open Visual Studio 2010
  2. Go to Team Explorer --> Builds --> and right click to the Build you want
  3. Select Security and give the appropriate permission to the User that is Owner of the Test Plan in MTM.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM