Share via


TestRun.GetTestElement Method (TestExecId)

Returns the test element that has the specified execution ID.

Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

Syntax

'Declaration
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

Parameters

Return Value

Type: Microsoft.VisualStudio.TestTools.Common.ITestElement
The test element or a null.

Remarks

This method also sets the execution ID, parent execution ID, and category ID on the returned test element.

.NET Framework Security

See Also

Reference

TestRun Class

GetTestElement Overload

Microsoft.VisualStudio.TestTools.Common Namespace

TestExecId

ITestElement