Condividi tramite


Metodo TestRun.GetTestElement (TestExecId)

Restituisce l'elemento di test con l'ID di esecuzione specificato.

Spazio dei nomi:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

Sintassi

'Dichiarazione
Public Function GetTestElement ( _
    executionId As TestExecId _
) As ITestElement
public ITestElement GetTestElement(
    TestExecId executionId
)
public:
ITestElement^ GetTestElement(
    TestExecId^ executionId
)
member GetTestElement : 
        executionId:TestExecId -> ITestElement 
public function GetTestElement(
    executionId : TestExecId
) : ITestElement

Parametri

Valore restituito

Tipo: Microsoft.VisualStudio.TestTools.Common.ITestElement
Elemento di test o null.

Note

Questo metodo imposta l'ID di esecuzione, l'ID di esecuzione padre e l'ID di categoria dell'elemento di test restituito.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

TestRun Classe

Overload GetTestElement

Spazio dei nomi Microsoft.VisualStudio.TestTools.Common

TestExecId

ITestElement