locked
Visual Studio 2017 Coded UI test failed to connect to data source (or) to read the data

    Question

  • - I am trying to connect to VSTS Web URL for data driven testing. 

    - On running test case I always get error " but clicking URL will always launch web site, appreciate help in solve this issue.

    Message: The unit test adapter failed to connect to the data source or to read the data. For more information on troubleshooting this error, see "Troubleshooting Data-Driven Unit Tests" (https://go.microsoft.com/fwlink/?LinkId=62412) in the MSDN Library.
    Error details: Exception has been thrown by the target of an invocation.
    Invalid connection string - https://xyzwebsolutions.visualstudio.com. Expected format is <ServerUrl>;<TeamProject> e.g:- http://myTfsServer:8080;teamProject

    "

    Sample DataSource

    [DataSource("Microsoft.VisualStudio.TestTools.DataSource.TestCase", "https://xyzwebsolutions.visualstudio.com", "9678", DataAccessMethod.Sequential), TestMethod]

    Thanks,

    Ahmed

    Monday, June 12, 2017 11:53 AM