The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ITestManagementService Interface


Represents the main object for the test management client API. Provides access to project collection level helper objects and ITestManagementTeamProject.

Namespace:   Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)

No code example is currently available or this language may not be supported.


Gets the identity of the current authorized user.


Gets a helper object that has methods to create, query, register, unregister, and update the data collectors on the Team Foundation Server.


Gets a helper object that has methods to create, query, register, unregister, and update the test controllers on the Team Foundation Server.


The Team Foundation Identity cache

System_CAPS_pubmethodFindTestResultByLink(Uri, ITestAttachment)

Finds and returns a test result and a test result attachment, if any, by using the provided uniform resource identifier (URI).


Finds and returns a test result by using the provided identifier for the Test Management Interface (TMI) run.


Returns a team project object that is based on the provided project.


Returns the team project that has the provided project name.


Returns a value that indicates whether the current server supports test management services.


Returns a list of test runs that is found by executing the provided query.

Applications can obtain an instance of this service by using the TeamFoundationServer.GetService method.

Legacy Code Example

This example shows how to get an instance of the ITestManagementService.

TeamFoundationServer tfs;
TestManagementService testManagementService;
tfs = new TeamFoundationServer("http://mserver:8080/tfs");
testManagementService = tfs.GetService<ITestManagementService>;
Return to top