共用方式為


ITmi.GetTestResults 方法 (TestRun, ITestElement)

這個 API 支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。

從提供的測試回合中取得位於提供之測試中的測試結果陣列。

命名空間:  Microsoft.VisualStudio.TestTools.Common
組件:  Microsoft.VisualStudio.QualityTools.Common (在 Microsoft.VisualStudio.QualityTools.Common.dll 中)

語法

'宣告
Function GetTestResults ( _
    run As TestRun, _
    test As ITestElement _
) As TestResult()
TestResult[] GetTestResults(
    TestRun run,
    ITestElement test
)
array<TestResult^>^ GetTestResults(
    TestRun^ run, 
    ITestElement^ test
)
abstract GetTestResults : 
        run:TestRun * 
        test:ITestElement -> TestResult[] 
function GetTestResults(
    run : TestRun, 
    test : ITestElement
) : TestResult[]

參數

傳回值

型別:array<Microsoft.VisualStudio.TestTools.Common.TestResult[]
測試結果的陣列。

.NET Framework 安全性

請參閱

參考

ITmi 介面

GetTestResults 多載

Microsoft.VisualStudio.TestTools.Common 命名空間

TestRun

TestElement

TestResult