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.

Inheritance Hierarchy


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


Public Class TestManagementService _
    Implements ITestManagementService, ITfsTeamProjectCollectionObject, ITestManagementService2
public class TestManagementService : ITestManagementService, 
    ITfsTeamProjectCollectionObject, ITestManagementService2
public ref class TestManagementService : ITestManagementService, 
    ITfsTeamProjectCollectionObject, ITestManagementService2
type TestManagementService =  
        interface ITestManagementService 
        interface ITfsTeamProjectCollectionObject 
        interface ITestManagementService2 
public class TestManagementService implements ITestManagementService, ITfsTeamProjectCollectionObject, ITestManagementService2

The TestManagementService type exposes the following members.


  Name Description
Public method TestManagementService Initializes a new instance of the TestManagementService class.



  Name Description
Public property AuthorizedIdentity Gets the identity of the current authorized user.
Public property DataCollectors Gets a helper object that has methods to create, query, register, unregister, and update the diagnostic data adapters on the team foundation server.
Public property TestControllers Gets a helper object that has methods to create, query, register, unregister, and update the test controllers on the team foundation server.
Public property TfsIdentityStore



  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method FindTestResultByLink Finds and returns a test result and a test result attachment, if any, by using the provided uniform resource identifier (URI).
Public method FindTestRunByTmiRunId Finds and returns a test result by using the provided identifier for the Test Management Interface (TMI) run.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetTeamProject(Project) Returns the team project that corresponds to the provided work item tracking project.
Public method GetTeamProject(String) Returns the team project that has the provided project name.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Initialize Called by the test framework to connect an instance of this class to the server.
Public method IsSupported Returns a value that indicates whether the current server supports test management services.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method QueryTestRuns Returns a list of test runs that is found by executing the provided query.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)


Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ITestManagementService2.GetTeamProject(Project)
Explicit interface implemetationPrivate method ITestManagementService2.GetTeamProject(String)



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("https://mserver:8080/tfs");
testManagementService = tfs.GetService<ITestManagementService>;

Thread Safety

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

See Also


Microsoft.TeamFoundation.TestManagement.Client Namespace