共用方式為


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 取得目前授權使用者的身分識別。
公用屬性 DataCollectors 取得更新的方法,建立查詢,註冊和移除註冊,在 Team Foundation Server 的資料收集器的 Helper 物件。
公用屬性 TestControllers 取得更新的方法,建立查詢,註冊和移除註冊,在 Team Foundation Server 的測試控制器的 Helper 物件。
公用屬性 TfsIdentityStore Team Foundation 識別快取

回頁首

方法

  名稱 描述
公用方法 FindTestResultByLink 透過使用提供的統一資源識別碼 (URI) 尋找並傳回測試結果和測試結果附件 (如果有)。
公用方法 FindTestRunByTmiRunId 透過使用提供的測試管理介面 (TMI) 回合識別碼尋找並傳回測試結果。
公用方法 GetTeamProject(Project) 根據提供的專案,傳回 Team 專案物件。
公用方法 GetTeamProject(String) 傳回具有所提供專案名稱的 Team 專案。
公用方法 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