VS2010负载测试:无法连接到测试控制器

发布于 2024-11-18 06:22:43 字数 1028 浏览 3 评论 0原文

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

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

下一步,创建使用测试控制器、测试代理以及数据和诊断适配器的新测试设置,我添加了一个新的“测试设置”文件添加到我的 Visual Studio 2010 解决方案的解决方案项。因此,当尝试定义要在“角色”选项卡中使用的控制器时,我失败了:

测试设置的角色选项卡

我输入了 " localhost:6901”作为控制器,然后右侧会出现一个警告图标。如果我将鼠标悬停在其上,它会显示:

无法与控制器“localhost”连接。如果控制器服务未启动,您可以通过单击重新启动装备按钮来启动它。

收到以下错误: 您没有执行此操作的适当权限。

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

谁能告诉我为什么这行不通?

I am setting up a load test controller and agents. I followed these guidelines:

Setting up the controller and agents was quite straightforward. Both of these services run under a local user named "LoadTest" which is member of the local Administrators group.

As the next step, Create a new Test Setting that Uses the Test Controller and Test Agents and Data and Diagnostic adapters, I added a new "Test Settings" file to the solution items of my Visual Studio 2010 solution. Thereby I fail when trying to define the controller to be used in the Roles tab:

Roles tab of the Test Settings

I entered "localhost:6901" as the controller, then a warning icon appeared to the right. If I hover over that, it says:

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.

I am running Visual Studio in my personal user account, which is different to the user that runs the test controller ("LoadTest"). But I reckon that this should be the normal usage scenario. Further, me as well as the "LoadTest" user are members of the administrators group.

Can anybody tell me why this wouldn't work?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

装纯掩盖桑 2024-11-25 06:22:43

我找到了“故障排除指南对于 Visual Studio 测试控制器和代理”,其中显示:

2.2.1。权限:测试控制器未连接到 TFS 服务器:

  • 要远程运行测试,客户端用户必须属于控制器计算机上的 TeamTestControllerUsers、TeamTestControllerAdmins 或 Administrators 本地组。
  • 要管理 Controller/Agent,客户端用户必须属于 Controller 计算机上的 TeamTestControllerAdmins 或 Administrators 本地组。
  • 代理服务帐户必须属于控制器计算机上的 TeamTestAgentService 或管理员本地组。
  • 控制器服务帐户必须属于控制器计算机上的 TeamTestControllerUsers 或 Administrators 本地组。
  • 不支持空密码/无密码的服务帐户。

尽管我的个人用户帐户已经位于本地管理员组中,但这似乎还不够。因此,我也将该用户添加到 TeamTestControllerUsers 组中,从而修复了该问题。

I found the "Troubleshooting Guide for Visual Studio Test Controller and Agent" which says:

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.

Even though my personal user account already is in the local Administrators group, this seems not to suffice though. So I added the user to the TeamTestControllerUsers group, too, and that fixed it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文