Pankaj Devrani
Pankaj Devrani

Reputation: 511

TF30063 error with DataSource of Coded UI test in VS2017 (works in VS2015)

When I use the following on a Coded UI test in VS2015 Enterprise I'm able to connect.

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

In VS2017 Enterprise I receive the following error when running my test:

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.

From this link I got a solution that I should update my Visual Studio. But is there any other way to fix it?

I have the latest update of VS and I am still getting the same error message.

Note : I do have access to the test case and the project in VSTS.

Upvotes: 0

Views: 273

Answers (1)

Pankaj Devrani
Pankaj Devrani

Reputation: 511

I solved the problem from this link by refreshing the data catches on my local machine. To do that, first open Developer Command Prompt for VS an then enter the following command

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

Then it will ask for credential. Type the correct credential and that is it.

I think problem was that somehow it was not able to assign the correct user(or any user) to the workspace I am working on and because of that it was giving me an error message "you are not authorized to access."

Upvotes: 1

Related Questions