共用方式為


ITestCaseResultHelper.CreateForUpdate 方法

建立空的測試案例結果物件,用於將變更的屬性有效率地儲存至伺服器。

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

語法

'宣告
Function CreateForUpdate ( _
    testRunId As Integer, _
    testResultId As Integer _
) As ITestCaseResult
ITestCaseResult CreateForUpdate(
    int testRunId,
    int testResultId
)
ITestCaseResult^ CreateForUpdate(
    int testRunId, 
    int testResultId
)
abstract CreateForUpdate : 
        testRunId:int * 
        testResultId:int -> ITestCaseResult 
function CreateForUpdate(
    testRunId : int, 
    testResultId : int
) : ITestCaseResult

參數

  • testRunId
    型別:System.Int32
    int ,識別測試案例結果的測試回合。
  • testResultId
    型別:System.Int32
    int ,識別測試案例結果。

傳回值

型別:Microsoft.TeamFoundation.TestManagement.Client.ITestCaseResult
空的測試案例結果物件。

備註

若要將結果寫入伺服器,請呼叫 Save 方法。

.NET Framework 安全性

請參閱

參考

ITestCaseResultHelper 介面

Microsoft.TeamFoundation.TestManagement.Client 命名空間

ITestCaseResult