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

System.Object
  Microsoft.TeamFoundation.TestManagement.Client.TestManagementService

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

Syntax

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

The TestManagementService type exposes the following members.

Constructors

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

Top

Properties

  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

Top

Methods

  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.)

Top

Explicit Interface Implementations

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

Top

Remarks

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

Examples

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

Reference

Microsoft.TeamFoundation.TestManagement.Client Namespace

ITestManagementService

TeamFoundationServer