0

I am using Microsoft.TeamFoundation.TestManagement.WebApi 14.0 and trying to get a list of test results for an iteration.

I can get some of the information from the WebApi but I still have to revisit the old Tfs Api to get other bits.

Does anyone have a full example using WebApi that does not need to use ITestManagementService and TfsTeamProjectCollection, or is the new WebApi deficient.

LepardUK
  • 1,330
  • 1
  • 11
  • 17
  • What's the detail of "other bits" in your case? Did you just mean you want to use TFS web API to get test results for a specific test suite ? – PatrickLu-MSFT Feb 27 '17 at 05:50

1 Answers1

1

Must to say, actually there are some difference between the library Microsoft.TeamFoundation.Client and Microsoft.TeamFoundation.WebApi.Client. The mainly is that Client libraries (SOAP API) use Legacy Client Object Model while WebApi libraries calls the New Rest API to achieve the functions. In some area, the WebApi library is providing only a limited functionality - for instance: check in changes with Version Control

And there are also some limitation with these two APIs:

  1. Client libraries cannot work well with the new vNext build system.
  2. WebApi cannot perform update action with Version Control, it can only read information for now.

More related info please refer this blog: NuGet packages for TFS and Visual Studio Online .NET client object model

And to get test results for a specific test suite you need to use the old API, a sample link:Show Test result Form test suites using TFS api

Community
  • 1
  • 1
PatrickLu-MSFT
  • 49,478
  • 5
  • 35
  • 62