Share via


TestRun.GetInnerTests Method

Retrieves the inner tests for the test 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 GetInnerTests ( _
    executionId As TestExecId _
) As ITestElement()
public ITestElement[] GetInnerTests(
    TestExecId executionId
)
public:
array<ITestElement^>^ GetInnerTests(
    TestExecId^ executionId
)
member GetInnerTests : 
        executionId:TestExecId -> ITestElement[] 
public function GetInnerTests(
    executionId : TestExecId
) : ITestElement[]

Parameters

Return Value

Type: array<Microsoft.VisualStudio.TestTools.Common.ITestElement[]
The inner test that has the specified execution ID. Returns null if the test that has the specified execution ID is not present in the test run, or is not an aggregation.

Remarks

If any test presents itself more than one time as an inner test, a cloned copy of the test will be present in the returned array. Each copy will have the correct execution ID.

.NET Framework Security

See Also

Reference

TestRun Class

Microsoft.VisualStudio.TestTools.Common Namespace

ITestElement

TestExecId