运行负载测试用例。
命名空间: Microsoft.VisualStudio.TestTools.Execution
程序集: Microsoft.VisualStudio.QualityTools.ExecutionCommon(在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)
语法
声明
Function LoadRun ( _
testElement As ITestElement(), _
resultSink As IResultSink, _
contextProperties As IDictionary(Of String, Object) _
) As AdapterRunResult
AdapterRunResult LoadRun(
ITestElement[] testElement,
IResultSink resultSink,
IDictionary<string, Object> contextProperties
)
AdapterRunResult LoadRun(
array<ITestElement^>^ testElement,
IResultSink^ resultSink,
IDictionary<String^, Object^>^ contextProperties
)
abstract LoadRun :
testElement:ITestElement[] *
resultSink:IResultSink *
contextProperties:IDictionary<string, Object> -> AdapterRunResult
function LoadRun(
testElement : ITestElement[],
resultSink : IResultSink,
contextProperties : IDictionary<String, Object>
) : AdapterRunResult
参数
- testElement
类型:array<Microsoft.VisualStudio.TestTools.Common.ITestElement[]
要执行的 ITestElement 对象的数组。
- resultSink
类型:Microsoft.VisualStudio.TestTools.Execution.IResultSink
用于存储测试结果的 IResultSink。
- contextProperties
类型:System.Collections.Generic.IDictionary<String, Object>
一个包含测试上下文属性的 [T:System.Collections.Generic.IDictionary<TKey,TValue>] 对象。
返回值
类型:Microsoft.VisualStudio.TestTools.Execution.AdapterRunResult
AdapterRunResult 枚举的一个成员,指示每个测试是成功还是失败。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。