TestRun.GetTestElement Method

Definition

Overloads

GetTestElement(TestExecId)

Returns the test element that has the specified execution ID.

GetTestElement(TestExecId, TestId)

Returns the test element that has the specified ID and the execution ID of its parent.

GetTestElement(TestExecId)

Returns the test element that has the specified execution ID.

public:
 Microsoft::VisualStudio::TestTools::Common::ITestElement ^ GetTestElement(Microsoft::VisualStudio::TestTools::Common::TestExecId ^ executionId);
public Microsoft.VisualStudio.TestTools.Common.ITestElement GetTestElement (Microsoft.VisualStudio.TestTools.Common.TestExecId executionId);
member this.GetTestElement : Microsoft.VisualStudio.TestTools.Common.TestExecId -> Microsoft.VisualStudio.TestTools.Common.ITestElement
Public Function GetTestElement (executionId As TestExecId) As ITestElement

Parameters

executionId
TestExecId

The execution ID of the test element.

Returns

The test element or a null.

Applies to

GetTestElement(TestExecId, TestId)

Returns the test element that has the specified ID and the execution ID of its parent.

public:
 Microsoft::VisualStudio::TestTools::Common::ITestElement ^ GetTestElement(Microsoft::VisualStudio::TestTools::Common::TestExecId ^ parentExecutionId, Microsoft::VisualStudio::TestTools::Common::TestId ^ innerTestId);
public Microsoft.VisualStudio.TestTools.Common.ITestElement GetTestElement (Microsoft.VisualStudio.TestTools.Common.TestExecId parentExecutionId, Microsoft.VisualStudio.TestTools.Common.TestId innerTestId);
member this.GetTestElement : Microsoft.VisualStudio.TestTools.Common.TestExecId * Microsoft.VisualStudio.TestTools.Common.TestId -> Microsoft.VisualStudio.TestTools.Common.ITestElement
Public Function GetTestElement (parentExecutionId As TestExecId, innerTestId As TestId) As ITestElement

Parameters

parentExecutionId
TestExecId

Execution ID of the test element that is an aggregation for the specified test.

innerTestId
TestId

ID of the test element.

Returns

Applies to