Share via


ITestRun.AddTest Method (String)

Adds a new test with given name.

Must be followed by a Save()

Namespace:  Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)

Syntax

'Declaration
Function AddTest ( _
    testName As String _
) As ITestCaseResult
ITestCaseResult AddTest(
    string testName
)
ITestCaseResult^ AddTest(
    String^ testName
)
abstract AddTest : 
        testName:string -> ITestCaseResult
function AddTest(
    testName : String
) : ITestCaseResult

Parameters

  • testName
    Type: String

    Name of the test

Return Value

Type: Microsoft.TeamFoundation.TestManagement.Client.ITestCaseResult

.NET Framework Security

See Also

Reference

ITestRun Interface

AddTest Overload

Microsoft.TeamFoundation.TestManagement.Client Namespace