ITestRun.AddTest Method (Int32, String, String, ITmiTestImplementation)

 

Creates a new test result in the test run against a test configuration. Does not require an existing test case for the test result.

Must be followed by a Save().

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

Syntax

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 As Integer,
    testCaseTitle As String,
    testCaseAreaUri As String,
    implementation As ITmiTestImplementation
) As ITestCaseResult

Parameters

  • configurationId
    Type: System.Int32

    ID of configuration to test against.

  • testCaseTitle
    Type: System.String

    Title of the pseudo test case

  • testCaseAreaUri
    Type: System.String

    Area path where the pseudo test case should be. Default is the root area path.

Return Value

Type: Microsoft.TeamFoundation.TestManagement.Client.ITestCaseResult

See Also

AddTest Overload
ITestRun Interface
Microsoft.TeamFoundation.TestManagement.Client Namespace

Return to top