共用方式為


ITestCaseResultHelper.ByTestId 方法

查詢伺服器,並傳回測試案例的測試結果物件集合。

命名空間:  Microsoft.TeamFoundation.TestManagement.Client
組件:  Microsoft.TeamFoundation.TestManagement.Client (在 Microsoft.TeamFoundation.TestManagement.Client.dll 中)

語法

'宣告
Function ByTestId ( _
    testCaseId As Integer _
) As ITestCaseResultCollection
ITestCaseResultCollection ByTestId(
    int testCaseId
)
ITestCaseResultCollection^ ByTestId(
    int testCaseId
)
abstract ByTestId : 
        testCaseId:int -> ITestCaseResultCollection
function ByTestId(
    testCaseId : int
) : ITestCaseResultCollection

參數

  • testCaseId
    類型:Int32

    要尋找測試結果之測試案例的數值 ID。

傳回值

類型:Microsoft.TeamFoundation.TestManagement.Client.ITestCaseResultCollection
指定之測試案例的測試結果集合。

.NET Framework 安全性

請參閱

參考

ITestCaseResultHelper 介面

Microsoft.TeamFoundation.TestManagement.Client 命名空間

ITestCaseResultCollection