“Microsoft 测试管理器无法在这些机器上安装测试代理"创建新的实验室中心环境时 [英] "Microsoft Test Manager cannot install test agent on these machines" when creating new Lab Center environment

查看:26
本文介绍了“Microsoft 测试管理器无法在这些机器上安装测试代理"创建新的实验室中心环境时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在实验室中心创建一个新环境,但在验证步骤中出现以下错误

I'm trying to create a new environment in Lab Center and I get the following error on the Verification step

文字版:

验证机器是否可以使用用户名访问,并且提供的密码.失败

Verify that the machines are accessible using the user name and password provided. Failed

JPTest:Microsoft 测试管理器无法在这些设备上安装测试代理机器.可能的原因:

JPTest: Microsoft Test Manager cannot install test agent on these machines. Possible causes:

  • 机器未运行或在网络上不可用.
  • 计算机上未启用文件和打印机共享例外.

我已(多次)验证文件和打印机共享例外已启用,并且该机器在网络上可用.提供的用户名和密码也是正确的.

I've verified (many times) that the File and Printer Sharing exception is enabled, and that the machine is available on the network. Also the username and password provided is correct.

奇怪的是,这一步在机器加入域之前就起作用了(注意机器名称不是 JPTest,它实际上是 Windows 安装生成的名称)

Curiously this step worked before the machine was added to the domain (note that the machines name is not JPTest, its actually a name generated by the windows installation)

我使用的是 Visual Studio 2012,机器在 SCVMM 环境中.

I'm using Visual Studio 2012 and the machine is in a SCVMM environment.

我最大的问题是,除了这条非常模糊的错误消息外,我找不到更多信息.如何诊断此问题?

推荐答案

诊断问题的最佳方法是激活 MTM 日志记录.

The best way to diagnose the problem is to activate MTM logging.

有一些博客通过 mtm.exe.config 文件(位于 C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE 用于 Visual Studio 2012).
请参阅此示例:如何为 MTM 启用日志?
但由于某些原因,这对我不起作用.

There is some blogs describing this activation via mtm.exe.config file (that is located in C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE for Visual Studio 2012).
See this one for example: How to enable logs for MTM?
But this did not work for me for some reasons.

我可以激活 MTM 日志记录的唯一方法是通过注册表项.
对于 Visual Studio 2012,创建一个包含以下内容的文件,重命名它,使其具有 .reg 扩展名,然后在 Windows 资源管理器中双击它:

The only way I could activate MTM logging was via registry keys.
For Visual Studio 2012 create a file with the following content, rename it so that it has .reg extension and double click on it in Windows Explorer:

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\EnterpriseTools\QualityTools\Diagnostics]
"EnableTracing"=dword:00000001 
"TraceLevel"=dword:00000004
"LogsDirectory"="C:\Temp"

或者只是手动创建这些密钥.

Or just create these keys manually.

EnableTracing 变量控制跟踪是开启 (1) 还是关闭 (0).
TraceLevel 变量用于跟踪的级别(粒度):

The EnableTracing variable controls whether tracing is ON (1) or OFF (0).
The TraceLevel variable is for level (granularity) of tracing:

  • 1 表示只有错误
  • 2 是错误和警告
  • 3 是错误、警告和信息
  • 4 全部包含详细信息

LogsDirectory 是可选的.如果未指定,将使用 %TEMP%.
跟踪文件名为 <进程名称>.EqtTrace.log,例如mtm.EqtTrace.log.

LogsDirectory is optional. If that is not specified, %TEMP% will be used.
Trace file name is <Process name>.EqtTrace.log, e.g. mtm.EqtTrace.log.

您应该在更改注册表后重新启动 MTM.
解决问题后不要忘记停用日志记录(将 EnableTracing 设置为 0).

You should restart MTM after you've changed the registry.
And do not forget to deactivate logging once you solved the problem (set EnableTracing to 0).

这篇关于“Microsoft 测试管理器无法在这些机器上安装测试代理"创建新的实验室中心环境时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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