Поделиться через


TestRun.GetTestElement - метод (TestExecId)

Возвращает элемент теста с заданным идентификатором выполнения.

Пространство имен:  Microsoft.VisualStudio.TestTools.Common
Сборка:  Microsoft.VisualStudio.QualityTools.Common (в Microsoft.VisualStudio.QualityTools.Common.dll)

Синтаксис

'Декларация
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

Параметры

Возвращаемое значение

Тип: Microsoft.VisualStudio.TestTools.Common.ITestElement
Элемент теста или значение null.

Заметки

Этот метод также задает идентификатор выполнения, идентификатор выполнения родителя и идентификатор категории в возвращенном тестовом элементе.

Безопасность платформы .NET Framework

См. также

Ссылки

TestRun Класс

GetTestElement - перегрузка

Microsoft.VisualStudio.TestTools.Common - пространство имен

TestExecId

ITestElement