ITestElement.ExecutionId 屬性

取得或設定這個測試項目的最新執行 ID。

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

語法

'宣告
Property ExecutionId As TestExecId
TestExecId ExecutionId { get; set; }
property TestExecId^ ExecutionId {
    TestExecId^ get ();
    void set (TestExecId^ value);
}
abstract ExecutionId : TestExecId with get, set
function get ExecutionId () : TestExecId
function set ExecutionId (value : TestExecId)

屬性值

型別:Microsoft.VisualStudio.TestTools.Common.TestExecId
這個測試項目目前的執行 ID。

備註

相同的測試元素的多個實例可以共用相同的測試 ID,在執行單元。執行之前,為單位中的所有測試指派該執行中唯一的數字。

.NET Framework 安全性

請參閱

參考

ITestElement 介面

Microsoft.VisualStudio.TestTools.Common 命名空間

TestExecId