次の方法で共有


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>;

参照

参照

Microsoft.TeamFoundation.TestManagement.Client 名前空間

TeamFoundationServer