【问题标题】:TFS- MTM - Unable to successfully configure the test controller to communicate with TFSTFS- MTM - 无法成功配置测试控制器以与 TFS 通信
【发布时间】:2016-08-22 14:55:16
【问题描述】:

我正在尝试建立一个可以从 MTM 运行 selenium 自动化测试的系统。

我面临的问题是我无法成功配置测试控制器。我相信这是由于一些许可问题。以下是我正在使用的设置

点击应用设置时出现的错误如下

E, 2016/08/22, 16:20:19.541, Failed to obtain the service account from the hosted TFS Team Project Collection https://xyz.visualstudio.com/DefaultCollection: Access Denied: Timothy Alex needs the following permission(s) to perform this action: Edit collection-level information
I, 2016/08/22, 16:20:19.542, Failed to connect to the tfs project collection https://xyz.visualstudio.com/DefaultCollection. Microsoft.VisualStudio.TestTools.ConfigCore.ConfigToolException: Failed to obtain the service account from the hosted TFS Team Project Collection https://xyz.visualstudio.com/DefaultCollection: Access Denied: Timothy Alex needs the following permission(s) to perform this action: Edit collection-level information
at Microsoft.VisualStudio.TestTools.ConfigCore.ControllerConfiguration.AttemptToAddServiceAccountToGroup(ControllerConfigurationUpdatePack updatePack, TfsTeamProjectCollection server, TfsServiceAccount account, DelegateStatusUpdate statusListener)
  at Microsoft.VisualStudio.TestTools.ConfigCore.ControllerConfiguration.ChangeTfsRegistration(ControllerConfigurationUpdatePack updatePack, DelegateStatusUpdate statusListener)
E, 2016/08/22, 16:20:19.551, Failed to obtain the service account from the hosted TFS Team Project Collection https://xyz.visualstudio.com/DefaultCollection: Access Denied: Timothy Alex needs the following permission(s) to perform this action: Edit collection-level information

日志指出我需要编辑集合级别的信息。我相信这是在默认集合级别,恐怕我不会获得此权限,因为这类似于超级管理员,我可以有权删除/修改集合中的现有项目。

我认为这不应该提供给所有测试人员,因为这可能会导致项目意外损坏。

如果我错了,请纠正我,并建议我下一步需要做什么,以确保我能够成功配置测试测试控制器。

非常感谢您在这方面的帮助。

【问题讨论】:

    标签: tfs azure-devops mstest mtm


    【解决方案1】:

    您对编辑集合级别信息权限的假设是错误的。这不是超级管理员。请仔细阅读https://msdn.microsoft.com/en-us/library/ms252587.aspx

    只需询问您的 TFS 管理员

    • 将您的帐户添加到项目集合的项目集合测试服务帐户组或
    • 告诉您用于此目的的现有服务帐户。

    【讨论】:

    • 感谢您的信息。 TFS 管理员将我的帐户添加到项目集合测试服务帐户组。但仍然出现同样的错误。
    • 我刚查了一下,项目集合测试服务账户组默认没有编辑集合级信息权限。但据您了解,编辑收藏级信息权限不是超级管理员,您能否要求 TFS 管理员明确授予您的帐户编辑收藏级信息权限?一般来说,测试控制器(或以后的实验室管理)必须具有一些写入权限才能正常工作。如果您遵循官方测试控制器/实验室管理说明,请不要害怕要求此类权限。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-22
    • 2018-07-16
    • 1970-01-01
    • 2018-10-17
    • 2016-12-04
    相关资源
    最近更新 更多