Metoda TestRun.GetTestElement — (TestExecId, TestId)
Zwraca element test, który został podany identyfikator i identyfikator wykonanie jego obiektu nadrzędnego.
Przestrzeń nazw: Microsoft.VisualStudio.TestTools.Common
Zestaw: Microsoft.VisualStudio.QualityTools.Common (w Microsoft.VisualStudio.QualityTools.Common.dll)
Składnia
'Deklaracja
Public Function GetTestElement ( _
parentExecutionId As TestExecId, _
innerTestId As TestId _
) As ITestElement
public ITestElement GetTestElement(
TestExecId parentExecutionId,
TestId innerTestId
)
public:
ITestElement^ GetTestElement(
TestExecId^ parentExecutionId,
TestId^ innerTestId
)
member GetTestElement :
parentExecutionId:TestExecId *
innerTestId:TestId -> ITestElement
public function GetTestElement(
parentExecutionId : TestExecId,
innerTestId : TestId
) : ITestElement
Parametry
parentExecutionId
Typ: Microsoft.VisualStudio.TestTools.Common.TestExecIdWykonanie identyfikator elementu badania, czyli agregacji dla określonego testu.
innerTestId
Typ: Microsoft.VisualStudio.TestTools.Common.TestIdIdentyfikator elementu badania.
Wartość zwracana
Typ: Microsoft.VisualStudio.TestTools.Common.ITestElement
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Używanie bibliotek pochodzących z częściowo zaufanego kodu.