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,]、IVerifiable 和 IVisiblePropertyProvider。
執行緒安全
這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。