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)
Syntax
public interface ITestManagementService
public interface class ITestManagementService
type ITestManagementService = interface end
Public Interface ITestManagementService
Properties
Name | Description | |
---|---|---|
AuthorizedIdentity | Gets the identity of the current authorized user. |
|
DataCollectors | Gets a helper object that has methods to create, query, register, unregister, and update the data collectors on the Team Foundation Server. |
|
TestControllers | Gets a helper object that has methods to create, query, register, unregister, and update the test controllers on the Team Foundation Server. |
|
TfsIdentityStore | The Team Foundation Identity cache |
Methods
Name | Description | |
---|---|---|
FindTestResultByLink(Uri, ITestAttachment) | Finds and returns a test result and a test result attachment, if any, by using the provided uniform resource identifier (URI). |
|
FindTestRunByTmiRunId(Guid) | Finds and returns a test result by using the provided identifier for the Test Management Interface (TMI) run. |
|
GetTeamProject(Project) | Returns a team project object that is based on the provided project. |
|
GetTeamProject(String) | Returns the team project that has the provided project name. |
|
IsSupported() | Returns a value that indicates whether the current server supports test management services. |
|
QueryTestRuns(String) | Returns a list of test runs that is found by executing the provided query. |
Remarks
Applications can obtain an instance of this service by using the TeamFoundationServer.GetService method.
Examples
Legacy Code Example
This example shows how to get an instance of the ITestManagementService.
TeamFoundationServer tfs;
TestManagementService testManagementService;
tfs = new TeamFoundationServer("https://mserver:8080/tfs");
testManagementService = tfs.GetService<ITestManagementService>;
See Also
TeamFoundationServer
Microsoft.TeamFoundation.TestManagement.Client Namespace
Return to top