共用方式為


ITestRun.AddTest 方法 (Int32, String, String, ITmiTestImplementation)

在測試回合中建立新的測試結果物件測試組態。 不需要測試結果的現有測試案例。

必須由 Save() 後面。

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

語法

'宣告
Function AddTest ( _
    configurationId As Integer, _
    testCaseTitle As String, _
    testCaseAreaUri As String, _
    implementation As ITmiTestImplementation _
) As ITestCaseResult
ITestCaseResult AddTest(
    int configurationId,
    string testCaseTitle,
    string testCaseAreaUri,
    ITmiTestImplementation implementation
)
ITestCaseResult^ AddTest(
    int configurationId, 
    String^ testCaseTitle, 
    String^ testCaseAreaUri, 
    ITmiTestImplementation^ implementation
)
abstract AddTest : 
        configurationId:int * 
        testCaseTitle:string * 
        testCaseAreaUri:string * 
        implementation:ITmiTestImplementation -> ITestCaseResult 
function AddTest(
    configurationId : int, 
    testCaseTitle : String, 
    testCaseAreaUri : String, 
    implementation : ITmiTestImplementation
) : ITestCaseResult

參數

  • configurationId
    型別:System.Int32
    設定 ID 要測試的物件。
  • testCaseTitle
    型別:System.String
    虛擬測試案例的標題。
  • testCaseAreaUri
    型別:System.String
    虛擬測試案例應該的區域路徑。預設值為根部區域路徑。

傳回值

型別:Microsoft.TeamFoundation.TestManagement.Client.ITestCaseResult

.NET Framework 安全性

請參閱

參考

ITestRun 介面

AddTest 多載

Microsoft.TeamFoundation.TestManagement.Client 命名空間