【问题标题】:TF30063 error with DataSource of Coded UI test in VS2017 (works in VS2015)VS2017 中 Coded UI 测试的 DataSource 出现 TF30063 错误(适用于 VS2015)
【发布时间】:2018-03-26 10:30:31
【问题描述】:

当我在 VS2015 Enterprise 中的 Coded UI 测试中使用以下内容时,我能够连接。

[DataSource("Microsoft.VisualStudio.TestTools.DataSource.TestCase", 
       "https://<Company>.visualstudio.com/defaultCollection;TestProject", 
       "10216", DataAccessMethod.Sequential)
]

在 VS2017 Enterprise 中,我在运行测试时收到以下错误:

Data-Driven Unit Tests" (https://go.microsoft.com/fwlink/?LinkId=62412) in the MSDN Library.

Error details: TF30063: You are not authorized to access 
https://<company>.visualstudio.com/defaultCollection.

来自this link 我得到了一个解决方案,我应该更新我的 Visual Studio。但是有没有其他方法可以解决呢?

我有最新的 VS 更新,但仍然收到相同的错误消息。

注意:我确实可以访问 VSTS 中的测试用例和项目。

【问题讨论】:

  • 请记住,在本地运行时,您是在您的用户上。在构建机器上运行时不是。您是否尝试过指定完整的 vsts 地址?在您的问题中,您将其称为 https://.visualstudio.com - 这只是为了防止显示您的正确网址吗?
  • 是的,我已经指定了完整的 vsts 地址。在这里,我故意没有显示完整的地址。
  • 你能通过 Visual Studio 2017 Team explorer 登录那个 VSTS 吗?
  • 如果您的意思是使用我的 VSTS 凭据登录 Visual Studio。我已经做到了。

标签: tfs visual-studio-2017 azure-devops coded-ui-tests


【解决方案1】:

我通过刷新本地机器上的数据捕获解决了这个link 的问题。 为此,首先打开 VS 的开发人员命令提示符,然后输入以下命令

tf workspaces /collection:https://<account name>.visualstudio.com

然后它会要求提供凭据。 输入正确的凭据即可。

我认为问题在于它无法将正确的用户(或任何用户)分配给我正在处理的工作区,因此它给了我一条错误消息“您无权访问”。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-11-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-05
    • 1970-01-01
    • 2018-05-24
    相关资源
    最近更新 更多