TFS 2010 实验室管理环境中的 Microsoft Moles 主机类型错误
我使用 TFS 2010 SP1 实验室管理和 LapDeployTemplate 的变体在 Hyper-V VM 上执行构建工作流和单元测试,通过 SCVMM 进行管理(根据 Codeplex 上的 ALM Rangers 实验室管理指南 doco)。配置完所有这些后,我创建了一个测试计划,其中包含映射到使用 Moles 的自动化单元/集成测试的测试用例。我使用 tcm.exe 导入这些测试用例并将它们放入 Microsoft 测试管理器中。
当我尝试使用 LabDeploy 工作流程在虚拟机上远程执行测试用例时,出现以下错误: “由于以下原因,无法加载主机类型“Moles”:找不到密钥“Moles”。”
通常,我在以下计算机上看到此错误: Moles 尚未安装,但这是我当前在 VM 上的配置:
- Windows 2008 Server R2
- Moles 0.94.51023.0 x64
- VS2010 Test Agent\Controller x64
- VS2010 Build Agent x64
- VS2010 Lab Agent x64
测试设置文件设置为使用默认主机类型并在 x64 计算机上以 x64 执行测试。这与我们使用的开发盒相同,它们都可以很好地执行测试。
我已经尝试卸载/重新安装 Moles 以及机器上的测试代理,但没有成功。有什么想法吗?还有其他人遇到过这个吗?
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.
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."
Normally, I've seen this error on machines where Moles isn't installed, but here's my configuration on the VM currently:
- Windows 2008 Server R2
- Moles 0.94.51023.0 x64
- VS2010 Test Agent\Controller x64
- VS2010 Build Agent x64
- VS2010 Lab Agent 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.
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将我的评论移至答案,以便我可以将其标记为已回答 - 我已在 ORCA 中打开 Moles MSI,结果发现它具有注册表条件,可阻止 Moles 主机代理在没有完整 VS 2010 devenv 的情况下安装在盒子上安装。因此,我必须欺骗该注册表项才能让 Moles 安装所有位。完成此操作后,我让代理执行,但由于处理环境配置等错误而失败。在查看了所有这些以及此场景中缺少 doco 在线之后,我相当确定它没有经过测试,也没有经过测试支持。我认为 Lab Agent for 2010 + Moles only 配置不起作用
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