VS2010负载测试:无法连接到测试控制器
我正在设置负载测试控制器和代理。我遵循以下准则:
- 安装和配置 Visual Studio 代理以及测试和构建控制器< /a>
- 演练:使用测试控制器和负载测试中的测试代理 - 设置负载测试以使用控制器。
设置控制器和代理非常简单。这两个服务都在名为“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:
- Installing and Configuring Visual Studio Agents and Test and Build Controllers
- Walkthrough: Using a Test Controller and Test Agents in a Load Test - Setting up the load test to use the controller.
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:
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了“故障排除指南对于 Visual Studio 测试控制器和代理”,其中显示:
尽管我的个人用户帐户已经位于本地管理员组中,但这似乎还不够。因此,我也将该用户添加到 TeamTestControllerUsers 组中,从而修复了该问题。
I found the "Troubleshooting Guide for Visual Studio Test Controller and Agent" which says:
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.