Visual Studio 2019 - Associate test to test case does not work when using git version control plugin

Yannik Steiger 96 Reputation points
2021-06-17T08:13:41.443+00:00

Hi,

I have a git repository on TFS and am using git version control plugin in VS2019. When I want to associate a test to a test case, I get the following error dialog:

106507-you-are-not-loggedin-error.png

I have a connection to TFS configured in Team Explorer. But when I connect to TFS, my solution gets closed with:
106534-active-solution-controlled-by-different-sourcecont.png

I use VS2019 Enterprise, Build 16.10.2

How can I solve this issue?
BR, Yannik

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
349 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yannik Steiger 96 Reputation points
    2021-06-17T09:31:23.1+00:00

    Hi, the problem is solved. For some reason I was registered on the git repo with another company account. I changed TFS connection to use that one and now it works again.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.