Compartilhar via


Método ITestRun.AddTest (Int32, String, String, ITmiTestImplementation)

 

Publicado: abril de 2016

Cria um novo resultado de teste no teste executado em uma configuração de teste. Não requer um caso de teste existente para o resultado do teste.

Deve ser seguido por um Save ().

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

Sintaxe

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

Parâmetros

  • configurationId
    Type: System.Int32

    ID da configuração de teste.

  • testCaseTitle
    Type: System.String

    Título do caso de teste pseudo

  • testCaseAreaUri
    Type: System.String

    Caminho de área onde deve ser o caso de teste pseudo. Padrão é o caminho de área de raiz.

Valor de retorno

Type: Microsoft.TeamFoundation.TestManagement.Client.ITestCaseResult

Consulte também

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

Retornar ao topo