TestManagementService Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

For information about this class, see ITestManagementService.


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

public class TestManagementService : ITestManagementService

The TestManagementService type exposes the following members.

Public methodTestManagementServiceInitializes a new instance of the TestManagementService class.

Public propertyAuthorizedIdentityGets the identity of the current authorized user.
Public propertyDataCollectorsGets a helper object that has methods to create, query, register, unregister, and update the diagnostic data adapters on the team foundation server.
Public propertyTestControllersGets a helper object that has methods to create, query, register, unregister, and update the test controllers on the team foundation server.

Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodFindTestResultByLinkFinds and returns a test result and a test result attachment, if any, by using the provided uniform resource identifier (URI).
Public methodFindTestRunByTmiRunIdFinds and returns a test result by using the provided identifier for the Test Management Interface (TMI) run.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTeamProject(Project)Returns the team project that corresponds to the provided work item tracking project.
Public methodGetTeamProject(String)Returns the team project that has the provided project name.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInitializeCalled by the test framework to connect an instance of this class to the server.
Public methodIsSupportedReturns a value that indicates whether the current server supports test management services.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodQueryTestRunsReturns a list of test runs that is found by executing the provided query.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

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

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

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions