表示用于在测试运行级别保存统计信息的测试结果。
继承层次结构
System.Object
Microsoft.VisualStudio.TestTools.Common.RunResultAndStatistics
命名空间: Microsoft.VisualStudio.TestTools.Common
程序集: Microsoft.VisualStudio.QualityTools.Common(在 Microsoft.VisualStudio.QualityTools.Common.dll 中)
语法
声明
<SerializableAttribute> _
Public NotInheritable Class RunResultAndStatistics _
Implements ICloneable, IVerifiable, IXmlTestStore
[SerializableAttribute]
public sealed class RunResultAndStatistics : ICloneable,
IVerifiable, IXmlTestStore
[SerializableAttribute]
public ref class RunResultAndStatistics sealed : ICloneable,
IVerifiable, IXmlTestStore
[<Sealed>]
[<SerializableAttribute>]
type RunResultAndStatistics =
class
interface ICloneable
interface IVerifiable
interface IXmlTestStore
end
public final class RunResultAndStatistics implements ICloneable, IVerifiable, IXmlTestStore
RunResultAndStatistics 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
![]() |
CollectorDataEntries | 获取一个关联测试运行中使用的诊断数据适配器所提供的条目的只读列表。 |
![]() |
DataCollectorMessages | 获取一个关联测试运行中使用的诊断数据适配器所提供的消息的只读列表。 |
![]() |
DebugTrace | 获取或设置关联测试运行的调试跟踪数据。 |
![]() |
ExecutedTestCount | 获取在关联测试运行中执行的测试的数目。 |
![]() |
FailedTestCount | 获取在关联测试运行中失败的测试的数目。 |
![]() |
HasPassed | 获取一个值,该值指示是否成功通过了关联测试运行中的所有测试。 |
![]() |
IsPartialRun | 返回一个值,该值指示关联的测试运行是否为部分运行。 |
![]() |
Item | 获取在关联测试运行中具有指定结果的测试的数目。 |
![]() |
Outcome | 获取或设置关联测试运行的结果。 |
![]() |
OutcomeText | 获取本地化文本形式的关联测试运行结果。 |
![]() |
PassedTestCount | 获取在关联测试运行中通过的测试的数目。 |
![]() |
ResultFiles | 获取一个关联测试运行生成的结果文件的路径的排序列表。 |
![]() |
ResultsDirectory | 获取关联测试运行生成的文件的存储目录的路径。 |
![]() |
RunInfoList | 获取关联测试运行的 RunInfo 对象的数组。 |
![]() |
StdErr | 获取或设置关联测试运行的 stderr 输出流。 |
![]() |
StdOut | 获取或设置关联测试运行的 stdout 输出流。 |
![]() |
TestRun | 获取此 RunResultAndStatistics 对象的关联测试运行。 |
![]() |
TotalTestCount | 获取或设置测试运行中的总测试数目。 |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
AddRunInfo | 将 RunInfo 对象添加到 RunInfoList 属性值。 |
![]() |
Clone | 返回此 RunResultAndStatistics 对象的一个副本。只读。 |
![]() |
CopyTo | 将此对象的克隆复制到提供的测试运行的 TestRun.Result。 |
![]() |
Equals | 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。) |
![]() |
Finalize | 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。) |
![]() |
GetHashCode | 用作特定类型的哈希函数。 (继承自 Object。) |
![]() |
GetType | 获取当前实例的 Type。 (继承自 Object。) |
![]() |
IsValid | 返回一个值,该值指示此 RunResultAndStatistics 对象是否有效。 |
![]() |
Load | 使用提供的参数,从提供的 XML 元素中加载对象。 |
![]() |
MemberwiseClone | 创建当前 Object 的浅表副本。 (继承自 Object。) |
![]() |
Save | 使用提供的参数,将当前对象保存到指定的 XML 元素中。 |
![]() |
ToString | 返回此 RunResultAndStatistics 对象的字符串版本。 (重写 Object.ToString()。) |
页首
备注
此类不能被继承,但可通过 TestRun.Result 属性用于诸如诊断数据适配器等的自定义扩展。 通过测试运行实例化该对象,并通过测试框架来设置值。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
请参见
参考
Microsoft.VisualStudio.TestTools.Common 命名空间