如何让我的第一个构建定义的工作,如果是越来越之后&QUOT破裂;排队一个新的Build"在Visual Studio 2010? [英] How can my first Build definition work if is getting broken after "Queue a new Build" in Visual Studio 2010?

查看:322
本文介绍了如何让我的第一个构建定义的工作,如果是越来越之后&QUOT破裂;排队一个新的Build"在Visual Studio 2010?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用微软测试经理2010我的自动化codeD UI测试(CUIT)在物理环境。

I am trying to use my automated coded UI test (CUIT) with Microsoft Test Manager 2010 in a physical enviroment.


  • 创建一个构建定义

  • 定义投递文件夹用于构建和

  • 作为recomended共享该文件夹的这里

  • 在2010 TFS创建一个Build服务作为互动过程

  • 创建一个Build的Controler

  • 创建一个代理的Controler

我不记得在哪顺序(如果这很重要)

I dont remember in which order (In case this is important)

错误FROM MS Visual Studio 2010中(图像普莱舍去这里

ERRORS FROM MS Visual Studio 2010 (For IMAGE Plese go HERE)

误区一(1)

TF215097:而构建定义\\测试样品\\ Project1BuildOne初始化一个构建时发生错误:没有任何端点听访问:http:// us07ws45510012:9191 /编译/ V3.0 /服务,可以接受邮件/控制器/ 1 。这通常是由一个不正确的地址或SOAP动作引起的。见的InnerException,如果present,了解更多信息。

TF215097: An error occurred while initializing a build for build definition \Test Sample\Project1BuildOne: There was no endpoint listening athttp://us07ws45510012:9191/Build/v3.0/Services/Controller/1 that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

或者

误区之二(2)

构建控制器us07ws45510012 - 控制器不包含启用生成剂名称*和无标签

The build controller us07ws45510012 - Controller does not contain an enabled build agent with name * and no tags

错误FROM MS TFS 2010

错误三(3)

服务us07ws45510012 - 剂1(或控制器)有一个例外:异常消息:问题加载自定义程序集:API限制:程序集文件:/// C:\\用户\\ raul.reyes \\应用程序数据\\本地\\ TEMP \\ BuildAgent \\ 1 \\ TestProject \\ OBJ \\调试\\ TestProject1.dll'已经从不同的位置加载。它不能被从同一应用程序域内的新位置加载。

Service 'us07ws45510012 - Agent1(OR CONTROLLER)' had an exception: Exception Message: Problem with loading custom assemblies: API restriction: The assembly 'file:///C:\Users\raul.reyes\AppData\Local\Temp\BuildAgent\1\TestProject \obj\Debug\TestProject1.dll' has already loaded from a different location. It cannot be loaded from a new location within the same appdomain.

如果您想看到的Visual Studio 20120 IMAGE普莱舍转到这里

If you would like to see an VISUAL STUDIO 20120 IMAGE Plese Go HERE

推荐答案

对于错误#2(构建控制器[controllerName]不包含启用生成代理名称为*无代码),我重新分配我的生成控制器,并创建了一个标签新的Build Agent后遇到此错误。

Regarding Error #2 (The build controller [controllerName] does not contain an enabled build agent with name * and no tags), I encountered this error after re-assigning my Build Controller and creating a new Build Agent that had tags.

上生成定义变量定义

有匹配上一个版本是运行时间生成代理定义中定义的标签完成。在生成定义,这可以审查/配置如下:

There is matching done on the tags defined in the Build Agent definition at the time that a build is run. On the Build Definition, this can be reviewed/configured as follows:


  1. 在Visual Studio IDE中,构建下(在团队资源管理器),右键单击构建定义,然后选择编辑生成定义...

  2. 在流程,依次展开高级,然后在代理设置。请注意标签过滤器。这里,标签可以被选择,并生成代理将根据标记进行选择。

在这种情况下,错误指示构建定义正在寻找无标签,而完全匹配( MatchExactly )。那么,这是否生成代理有标记定义?如果是这样,无论是从生成代理删除它们,或配置生成定义使用的标签,使得生成代理将被匹配。

In this case, the error indicates that the build definition is looking for "no tags", and an exact match (MatchExactly). So, does the Build Agent have tags defined? If so, either remove them from the Build Agent, or configure the Build Definition to use the tags such that a Build Agent will be matched.

这是生成代理的标签定义

标签是在生成代理定义。他们可以在TFS构建服务器(基于构建控制器上,并建立在生成定义配置剂)进行修改。

Tags are defined on the Build Agent. They may be modified on the TFS build server (based on the build controller, and build agent configured in the Build Definition).

要定义/修改生成代理的标签,在TFS构建服务器...

To define/modify tags on the Build Agent, on the TFS Build Server...


  1. 启动的Team Foundation Server管理控制台

  2. 导航到构建配置

  3. 找到分配给生成器正在使用的生成定义生成代理,并选择属性

  4. 标签可以创建,添加和删除在构建代理属性对话框:

鉴于以上图片为构建定义和构建代理配置(只有一个生成代理),将导致这个错误,因为生成定义预期上没有标签的精确匹配,而只能建代理配置的生成控制器与生成定义关联定义了标签(原型)。因此,有关于«没有标签»和原型没有精确匹配。

Given the pictures above for both Build Definition and Build Agent configuration (with only one Build Agent), this error would result, as the Build Definition expects an exact match on no tags, and the only Build Agent configured for the Build Controller associated with the Build Definition has a tag defined ('prototype'). Thus there is no exact match on «no tags» and 'prototype'.

这篇关于如何让我的第一个构建定义的工作,如果是越来越之后&QUOT破裂;排队一个新的Build"在Visual Studio 2010?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆