【发布时间】: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