microsoft / azure-devops-dotnet-samples

.NET/C# samples for integrating with Azure DevOps Services and Azure DevOps Server
https://docs.microsoft.com/azure/devops/integrate
MIT License
522 stars 519 forks source link

need sample for getting test results #177

Open acm74 opened 6 years ago

acm74 commented 6 years ago

Can we please get a sample to retrieve test results from a release?

I am experimenting with the .NET client and so far have only achieved limited success.

Using TestResultsHttpClient gives a service data provider error ("The server data provider for service owner 9f6123e2-113d-4afe-8e27-2cb96b45b0d2 could not be found.")

Using the TestManagementHttpClient work a little better, in that I can find all the test result details (similar to querying the REST API directly), however most of the properties are null. So there is an outcome (Passed, Failed, etc.), but no information on which test (all the properties which could identify the test are null).

At the moment I don't understand whether I using the library correctly, or whether this area is just incomplete.