共用方式為


RunResultAndStatistics.AddRunInfo 方法

RunInfo 物件加入至 RunInfoList 屬性值。

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

語法

'宣告
Public Sub AddRunInfo ( _
    textMessage As String, _
    ex As Exception, _
    computer As String, _
    outcome As TestOutcome _
)
public void AddRunInfo(
    string textMessage,
    Exception ex,
    string computer,
    TestOutcome outcome
)
public:
void AddRunInfo(
    String^ textMessage, 
    Exception^ ex, 
    String^ computer, 
    TestOutcome outcome
)
member AddRunInfo : 
        textMessage:string * 
        ex:Exception * 
        computer:string * 
        outcome:TestOutcome -> unit 
public function AddRunInfo(
    textMessage : String, 
    ex : Exception, 
    computer : String, 
    outcome : TestOutcome
)

參數

  • textMessage
    型別:System.String
    string ,包含關於測試回合執行的文字資訊。

.NET Framework 安全性

請參閱

參考

RunResultAndStatistics 類別

Microsoft.VisualStudio.TestTools.Common 命名空間

TestOutcome

RunInfo