none
在配置VS 自动测试时出错 RRS feed

  • 问题

  • 在TFS 2012服务器端,安装了Test Controller,想要在Microsoft Test Manager中配置实验环境,但是由于之前可能对一台机器配置过Test Agent的环境,后来把那些环境全部删除以后,想要重新使用这台机器作为Test Agent 测试代理机器,但是一直不能通过Verify,说该机器已配置过相关环境,怎么解决呢?

    上传不了图片。。。。

    2014年1月8日 9:23

全部回复

  • 您好,你的意思是你已经卸载了Test Agent,然后你又重新在原来的机器上安装了同样版本的Agent吗?首先你得确认你卸载成功了,还要确定Agent的版本是不是和VS或者MTM相匹配,比如说,如果你用VS2012,那就必须用test controller/test Agent 2012。另外如果安装的时候出错,建议你重新启动test agent机器,然后再以管理员身份运行安装文件。 不是很确定你说的“Verify”指的是什么?如果你的意思是你能成功安装 test Agent, 只是在配置/使用/运行test的时候出现问题,那你还是收集一下test agent 的log error 信息,看看具体的错误是什么,然后我们才可以进一步的缩写问题的范围。希望能帮到您!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    2014年1月9日 9:02
  • 1)卸载干净的;

    2)Test Agent版本是匹配的,均为2012版;

    3)手动安装Test Agent 并没有出错,只是在配置的时候出错;

    4)在test controller 机器上,建立了一个tester 本地账户,并添加到了Administrators组和TeamAgentService组,但在配置 Lab Enviromnet时,最后一步的验证试验环境时报错,

    Microsoft Test Manager cannot install test agent on these machines. Possiable cause:

    Machines are not running or they are not available on the network.

    The File and Printer Sharing exception is not enabled on the machine

    5)然后通过手动安装Test Agent并配置也不行,也报错:测试代理无法连接测试控制器

    2014年1月10日 3:22
  • 建议你去收集一下详细的log信息:

    http://blogs.msdn.com/b/aseemb/archive/2012/11/15/how-to-enable-logs-for-mtm.aspx

    另外从您所提供的错误信息来看,我有看到相类似的问题,可以参考一下:

    http://stackoverflow.com/questions/19223879/microsoft-test-manager-cannot-install-test-agent-on-these-machines-when-creati


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2014年1月13日 5:39
  • 给的链接也解决不了问题
    2014年1月13日 8:21
  • 关键是 ,错误页面上提示的可能导致原因完全不存在,都已经设置好了的,居然还有这样的错误提示。。。其他信息根本就找不到
    2014年1月13日 8:23
  • Hi,

         根据你的错误信息,你可以参照这篇blog去解决:

    http://blogs.blackmarble.co.uk/blogs/rfennell/post/2013/07/29/Fix-for-Cannot-install-test-agent-on-these-machines-because-another-environment-is-being-created-using-the-same-machines1.aspx

    Thanks


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2014年1月13日 8:42
    版主
  • 完全不是一个概念。。。
    2014年1月13日 9:08
  • 而且所给的第二个链接是如何获取MTM日志文件的,完全没有问题的解决方案。。。
    2014年1月14日 3:03
  • Hi,

    Do you follow the steps in that link?

    • Kill TestAgentInstaller.exe process, if running on failing machine
    • Delete “TestAgentInstaller” service from services, using sc delete testagentinstaller command (gotcha here, use a DOS style command prompt not PowerShell as sc has a different default meaning in PowerShell, it is an alias for set-content. if using PowerShell you need the full path to the sc.exe)
    • Delete c:\Windows\VSTLM_RES folder
    • Restart machine and then try Lab Environment creation again and all should be OK
    • As usual once the environment is created you might need to restart it to get all the test agents to link up to the controller OK
    2014年1月14日 7:10
  • Microsoft Test Manager can not install agent on the machine because another environment is being created using the same machine

    从这个错误信息来看,可能是和TestAgentInstaller有关,一个blog中给了我们这个方法,建议你可以试试:

    Cause :

    While environment creation is happening "TestAgentInstaller" service gets created, which does automatic

    agent install and configure, once these operations are done it gets self destructed. If this service is not

    destructed for some reason and if the same machine is being repurposed for another environment then

    Lab Management thinks machine is part of another environment creation and reports above error message.

    Workaround:

    Perform the following actions on the machine that you are planning to add in Lab environment

    1. Kill TestAgentInstaller.exe process, if anything running on the machine

    2. Delete “TestAgentInstaller” service from services, if present using "sc delete testagentinstaller" command

    3. Delete c:\Windows\VSTLM_RES folder

    4. Restart machine and then try Lab Environment creation again.

    希望能帮到你!如果像你所说还是没有帮助,建议你到connect提交一个反馈,希望产品组的专家能提供更好的帮助:http://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx,他们会在connect上给你回复解决的方法/建议,connect需要用英文提交。谢谢你的合作!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.




    2014年1月14日 7:13
  • I have tried this , but I could not found TestAgentInstaller.exe in process or in services, as well as VSTLM_RES folder in  c:\Windows  . So the problem was not solved.

    2014年1月15日 6:20
  • 我也遇到这个问题,请问后来你解决了么
    2014年11月3日 8:50