ITestCaseResultHelper.CreateForUpdate 方法 (Int32, Int32)

 

创建一个空测试用例结果对象,用于有效地将更改的属性保存到服务器。

命名空间:   Microsoft.TeamFoundation.TestManagement.Client
程序集:  Microsoft.TeamFoundation.TestManagement.Client(Microsoft.TeamFoundation.TestManagement.Client.dll 中)

语法

ITestCaseResult CreateForUpdate(
    int testRunId,
    int testResultId
)
ITestCaseResult^ CreateForUpdate(
    int testRunId,
    int testResultId
)
abstract CreateForUpdate : 
        testRunId:int *
        testResultId:int -> ITestCaseResult
Function CreateForUpdate (
    testRunId As Integer,
    testResultId As Integer
) As ITestCaseResult

参数

  • testRunId
    一个标识测试用例结果的测试运行的 int
  • testResultId
    一个标识测试用例结果的 int

返回值

Type: Microsoft.TeamFoundation.TestManagement.Client.ITestCaseResult

一个空测试用例结果对象。

备注

若要将结果写入服务器,请调用 Save 方法。

请参阅

ITestCaseResult
ITestCaseResultHelper 接口
Microsoft.TeamFoundation.TestManagement.Client 命名空间

返回页首