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

那年仲夏 提交于 2019-12-22 09:15:23

问题


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


回答1:


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.




回答2:


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.


来源:https://stackoverflow.com/questions/12996489/how-to-associate-a-build-to-the-test-plan-in-microsoft-test-manager-mtm-2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!