gpt4 book ai didi

visual-studio-2010 - VS2010 负载测试 : Cannot connect to test controller

转载 作者:行者123 更新时间:2023-12-04 14:51:03 25 4
gpt4 key购买 nike

我正在设置负载测试 Controller 和代理。我遵循了以下准则:

  • Installing and Configuring Visual Studio Agents and Test and Build Controllers
  • Walkthrough: Using a Test Controller and Test Agents in a Load Test - 设置负载测试以使用 Controller 。

  • 设置 Controller 和代理非常简单。这两个服务都在名为“LoadTest”的本地用户下运行,该用户是本地管理员组的成员。

    下一步, Create a new Test Setting that Uses the Test Controller and Test Agents and Data and Diagnostic adapters ,我在我的 Visual Studio 2010 解决方案的解决方案项中添加了一个新的“测试设置”文件。因此,我在尝试定义要在“角色”选项卡中使用的 Controller 时失败:

    Roles tab of the Test Settings

    我输入“localhost:6901”作为 Controller ,然后右侧出现一个警告图标。如果我将鼠标悬停在它上面,它会说:

    Cannot connect with controller 'localhost'. If the controller service is not started you may be able to start it by clicking the restart rig button.

    The following error was received: You do not have the appropriate permissions to perform this action.



    我在我的个人用户帐户中运行 Visual Studio,这与运行测试 Controller (“LoadTest”)的用户不同。但我认为这应该是正常的使用场景。此外,我和“LoadTest”用户都是管理员组的成员。

    谁能告诉我为什么这不起作用?

    最佳答案

    我找到了“Troubleshooting Guide for Visual Studio Test Controller and Agent ”,它说:

    2.2.1. Permissions: Test Controller not connected to TFS server:

    • To run tests remotely, Client user must belong to either TeamTestControllerUsers, or TeamTestControllerAdmins, or Administrators local group on Controller machine.
    • To manage Controller/Agent, Client user must belong to TeamTestControllerAdmins or Administrators local group on Controller machine.
    • Agent service account must belong to either TeamTestAgentService or Administrators local group on Controller machine.
    • Controller service account must belong to either TeamTestControllerUsers or Administrators local group on Controller machine.
    • Service accounts with empty/no passwords are not supported.


    即使我的个人用户帐户已经在本地管理员组中,但这似乎还不够。所以我也将用户添加到 TeamTestControllerUsers 组,并修复了它。

    关于visual-studio-2010 - VS2010 负载测试 : Cannot connect to test controller,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6579379/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com