ITestManagementService インターフェイス
テスト管理クライアント API のメイン オブジェクトを表します。 プロジェクト コレクション レベルのヘルパー オブジェクトと ITestManagementTeamProject へのアクセスを提供します。
名前空間: Microsoft.TeamFoundation.TestManagement.Client
アセンブリ: Microsoft.TeamFoundation.TestManagement.Client (Microsoft.TeamFoundation.TestManagement.Client.dll 内)
構文
'宣言
Public Interface ITestManagementService
public interface ITestManagementService
public interface class ITestManagementService
type ITestManagementService = interface end
public interface ITestManagementService
ITestManagementService 型で公開されるメンバーは以下のとおりです。
プロパティ
名前 | 説明 | |
---|---|---|
![]() |
AuthorizedIdentity | 現在の承認されたユーザーの ID を取得します。 |
![]() |
DataCollectors | Team Foundation Server 上でデータ コレクターの作成、照会、登録、登録解除、および更新を行うためのメソッドを持つヘルパー オブジェクトを取得します。 |
![]() |
TestControllers | Team Foundation Server 上でテスト コントローラーの作成、照会、登録、登録解除、および更新を行うためのメソッドを持つヘルパー オブジェクトを取得します。 |
このページのトップへ
メソッド
名前 | 説明 | |
---|---|---|
![]() |
FindTestResultByLink | 指定された URI (Uniform Resource Identifier) を使用して、テスト結果およびテスト結果の添付ファイルを検索して返します (存在する場合)。 |
![]() |
FindTestRunByTmiRunId | TMI (Test Management Interface) 実行の指定された識別子を使用し、テスト結果を検索して返します。 |
![]() |
GetTeamProject(Project) | 指定したプロジェクトに基づくチーム プロジェクト オブジェクトを取得します。 |
![]() |
GetTeamProject(String) | 指定したプロジェクト名を持つチーム プロジェクトを取得します。 |
![]() |
IsSupported | 現在のサーバーがテスト管理サービスをサポートするかどうかを示す値を返します。 |
![]() |
QueryTestRuns | 指定したクエリを実行することによって検出されたテスト実行のリストを返します。 |
このページのトップへ
解説
アプリケーションは、TeamFoundationServer.GetService メソッドを使用して、このサービスのインスタンスを取得することができます。
例
ITestManagementService のインスタンスを取得する方法を次の例に示します。
TeamFoundationServer tfs;
TestManagementService testManagementService;
tfs = new TeamFoundationServer("http://mserver:8080/tfs");
testManagementService = tfs.GetService<ITestManagementService>;