I'm asking this just to see if it is possible to run specflow test using a user credential Token to access tfs(TestCase) data.
The context: We have CI/CD pipeline in place to run over 19K Specflow tests synchronized to TFS using specsync. Most of our tests are data-driven using Scenario Outline. In our Release Management pipeline, we setup test runs to be performed on multiple tests machines. But we need to cache a user credentials to the tfs collection/project in each machine in order to have the tests to pick up the test data.
The Issue: Many times, our test failed with this output:
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" (http://go.microsoft.com/fwlink/?LinkId=62412) in the MSDN Library. Error details: Unable to find the requested .Net Framework Data Provider. It may not be installed.*
The failure is because the tfs access credentials are no longer good for reasons such as the password has changed or the user is no longer valid, etc. Therefore, we need to connect to each machine(more than 10) and reset tfs access credentials.
The requirement: Is there a way to embed a tfs tokenized credentials into the specflow tests(Feature files) or a config file so that the data source access is transparent for the test runs?
BR