共用方式為


TestRunConfiguration 類別

提供目前正在執行的測試工作的組態。 此類別無法被繼承。

繼承階層架構

System.Object
  Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration

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

語法

'宣告
<SerializableAttribute> _
Public Class TestRunConfiguration _
    Implements ICloneable, IVerifiable, IVisiblePropertyProvider, ISerializable,  _
    IXmlTestStore, IXmlTestStoreCustom
[SerializableAttribute]
public class TestRunConfiguration : ICloneable, 
    IVerifiable, IVisiblePropertyProvider, ISerializable, IXmlTestStore, IXmlTestStoreCustom
[SerializableAttribute]
public ref class TestRunConfiguration : ICloneable, 
    IVerifiable, IVisiblePropertyProvider, ISerializable, IXmlTestStore, IXmlTestStoreCustom
[<SerializableAttribute>]
type TestRunConfiguration =  
    class
        interface ICloneable
        interface IVerifiable
        interface IVisiblePropertyProvider
        interface ISerializable
        interface IXmlTestStore
        interface IXmlTestStoreCustom
    end
public class TestRunConfiguration implements ICloneable, IVerifiable, IVisiblePropertyProvider, ISerializable, IXmlTestStore, IXmlTestStoreCustom

TestRunConfiguration 型別會公開下列成員。

建構函式

  名稱 說明
受保護的方法 TestRunConfiguration(SerializationInfo, StreamingContext) 使用提供的資訊和內容,從 XML 初始化 TestRunConfiguration 類別的新執行個體。
公用方法 TestRunConfiguration(String, String) 使用測試回合組態的名稱和儲存資訊,初始化 TestRunConfiguration 類別的新執行個體。

回頁首

屬性

  名稱 說明
公用屬性 AbortRunOnError 取得或設定布林值,這個值表示是否要在發生錯誤時停止測試回合。
公用屬性 AgentNotRespondingTimeout 取得或設定無回應測試代理程式的時間限制。
公用屬性 AgentProperties 取得雜湊表,其中包含代表指定代理程式之屬性的索引鍵和值。
公用屬性 ApartmentState 取得目前為此回合組態設定的 apartment 狀態。
公用屬性 BucketSize 取得或設定回合組態 Bucket 大小。
公用屬性 CleanupCommand 取得或設定清理回合組態的指令。
公用屬性 DefaultUserDeploymentRootDirectory 取得或設定測試執行器的預設部署根目錄。
公用屬性 DeploymentItems 取得或設定與測試回合一起部署的項目。
公用屬性 DeploymentRootDirectory 取得或設定一般部署根目錄。
公用屬性 DeploymentTimeout 取得或設定部署的時間限制。
公用屬性 Description 取得或設定測試回合的描述。
公用屬性 ElementName 取得以測試設定格式儲存在 "TestSettings" 項目中的回合組態。
公用屬性 HostData 取得或設定使用中主機的測試回合組態資料。
公用屬性 HostProcessPlatform 取得或設定主機系統的處理器架構。
公用屬性 Id 取得回合組態的 ID。
公用屬性 IsCodeCoverageEnabled 取得或設定布林值,這個值表示此測試回合的程式碼涵蓋範圍集合是否啟用。
公用屬性 IsDeploymentEnabled 取得代表是否啟用部署的布林值。Set 存取子設為內部。
公用屬性 IsExecutedOutOfProc 取得布林值,指出測試是否在獨立處理序中執行。Set 存取子設為內部。
公用屬性 IsExecutedRemotely 取得或設定布林值,指出是否必須遠端執行測試回合。
公用屬性 IsExecutedUnderDebugger 取得或設定布林值,指出是否已經以偵錯程式遠端執行測試回合。
公用屬性 IsRemoteDataCollectionEnabled 取得代表是否啟用任何資料收集器的布林值。
公用屬性 Name 取得或設定回合組態的名稱。
公用屬性 NamespaceUri 取得目前命名空間的統一資源識別項 (URI)。
公用屬性 RelativePathRootDirectory 取得或設定相對檔案路徑發生時使用的目錄。
公用屬性 RunDeploymentInDirectory 取得自測試控制器接收已部署之檔案的目錄。
公用屬性 RunDeploymentOutDirectory 取得包含檔案以部署至測試控制器的目錄。
公用屬性 RunTimeout 取得或設定測試回合的時間限制。
公用屬性 SetupCommand 取得或設定測試回合的設定指令。
公用屬性 SkipUnhostableTests 取得或設定布林值,這個值表示是否必須跳過沒有主機的測試。
公用屬性 Storage 取得或設定存放回合組態的檔案名稱。
公用屬性 TestTimeout 取得或設定測試的時間限制。
公用屬性 UploadDeploymentItems
公用屬性 UseDefaultDeploymentRootDirectory 取得或設定布林值,這個值表示是否使用預設的部署根目錄。
公用屬性 UserDeploymentRootDirectory 取得或設定UseDefaultDeploymentRootDirectory 為 false 時所用的部署根目錄。
公用屬性 VisibleProperties 取得屬性的描述。

回頁首

方法

  名稱 說明
公用方法 Clone 傳回複製品,其資料與此物件的資料相同。
公用方法 Equals 判斷提供的 TestRunConfiguration 物件是否等於目前的物件。 (覆寫 Object.Equals(Object)。)
受保護的方法 Finalize 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。
公用方法 GetHashCode 傳回回合組態的 ID 的雜湊碼。 (覆寫 Object.GetHashCode()。)
公用方法 GetObjectData 將序列化目標物件的所需資料填入 SerializationInfo
公用方法 GetTestElementTimeout 傳回指定測試的指定逾時。
公用方法 GetTestTypeSpecificData 傳回測試類型-指定測試類型的特定回合組態延伸資料 (複製)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 IsValid 傳回布林值,指出回合組態是否有效。
公用方法 Load 使用提供的參數,從提供的 XML 項目載入此類別的執行個體。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
公用方法 Save 使用提供的參數,將這個物件儲存在提供的 XML 項目中。
公用方法 SetTestEnvironment 使用這些測試設定和承載測試環境的控制器設定測試環境在測試回合中使用。
公用方法 SetTestTypeSpecificData 為指定的測試型別設定特定型別的回合組態擴充資料。
公用方法 ToString 傳回回合組態的字串表示。 (覆寫 Object.ToString()。)

回頁首

欄位

  名稱 說明
公用欄位靜態成員 DefaultDeploymentRootDirectory 提供本機部署的預設目錄。
公用欄位靜態成員 DefaultRelativePathRoot 提供相對部署項目的預設根路徑。

回頁首

備註

這個類別實作 [T:System.ICloneable,]、IVerifiableIVisiblePropertyProvider

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.TestTools.Common 命名空間

ICloneable

IVerifiable

IVisiblePropertyProvider