TFS 2010实验室管理环境中的Microsoft Moles HostType错误 [英] Microsoft Moles HostType errors in TFS 2010 Lab Management environment

查看:90
本文介绍了TFS 2010实验室管理环境中的Microsoft Moles HostType错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用TFS 2010 SP1实验室管理和LapDeployTemplate的变体在Hyper-V VM上执行构建工作流和单元测试,并通过SCVMM(根据Codeplex上的ALM Rangers实验室管理指南doco)进行管理.配置完所有这些之后,我创建了一个测试计划,其中包含测试用例,这些用例映射到使用Moles的自动化单元/集成测试.我已经使用tcm.exe导入这些测试用例,并将其放入Microsoft测试管理器中.

I'm using TFS 2010 SP1 Lab Management and a variation on the LapDeployTemplate to execute build workflows and unit tests on a Hyper-V VM, managed via SCVMM (per the ALM Rangers Lab Management Guidance doco on codeplex). After configuring all of this, I've created a Test Plan containing test cases that map to automated unit/integration tests that use Moles. I've used tcm.exe import these test cases and get them into the Microsoft Test Manager.

当我尝试使用LabDeploy工作流在VM上远程执行测试用例时,出现以下错误: 由于以下原因,无法加载主机类型'Moles':找不到键'Moles'."

I'm getting the following error when I try to execute test cases remotely on my VM using the LabDeploy workflow: "The host type 'Moles' cannot be loaded for the following reason: The key 'Moles' cannot be found."

通常,我在未安装Moles的机器上看到此错误,但这是我当前在VM上的配置:

Normally, I've seen this error on machines where Moles isn't installed, but here's my configuration on the VM currently:

  1. Windows 2008 Server R2
  2. 摩尔0.94.51023.0 x64
  3. VS2010测试代理\控制器x64
  4. VS2010 Build Agent x64
  5. VS2010 Lab Agent x64

测试设置"文件设置为使用默认主机"类型,并在x64计算机上的x64中执行测试.这与我们使用的开发箱相同,它们都可以很好地执行测试.

Test Settings file is set to use the Default Host type and to have tests execute in x64 on an x64 machine. This is identical to the development boxes we use and they all execute tests fine.

我已经尝试过在计算机上卸载/重新安装Moles以及测试代理,但无济于事.有任何想法吗?有其他人碰到这个吗?

I've already tried an uninstall/reinstall of Moles as well as the test agent on the machine to no avail. Any ideas? Has anyone else ran into this?

推荐答案

将我的评论移至答案,以便将其标记为已回答-我已经在ORCA中打开了Moles MSI,事实证明它具有注册表条件阻止Moles主机代理在没有完整安装VS 2010的情况下安装在盒子上.因此,我不得不欺骗该注册表项,以使Moles安装所有位.完成此操作后,我让代理执行,但是由于处理环境配置等错误而失败.在仔细研究了所有这些情况之后,并针对此场景在线缺少了doco之后,我可以肯定地说,它尚未经过测试,也没有经过测试.支持的.我认为仅适用于Moles的2010版实验室代理配置无法正常工作

Moving my comment to an answer so that I can mark it as answered - I've opened the Moles MSI in ORCA and it turns out that it has Registry conditions that prevent the Moles host agent from installing on a box without a full VS 2010 devenv install. Thus, I had to spoof that registry key to get Moles to install all bits. Once this was done, I got the agent to execute, but fails with errors dealing with environment config, etc. After looking through all of this and the lack of doco online for this scenario, I'm fairly certain it's not been tested nor is supported. I think that the Lab Agent for 2010 + Moles only configuration just doesn't work

这篇关于TFS 2010实验室管理环境中的Microsoft Moles HostType错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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