ApplicationUnderTest 類別
自動化應用程式測試作業。
繼承階層架構
System.Object
Microsoft.VisualStudio.TestTools.UITesting.UITestControl
Microsoft.VisualStudio.TestTools.UITesting.ApplicationUnderTest
Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow
命名空間: Microsoft.VisualStudio.TestTools.UITesting
組件: Microsoft.VisualStudio.TestTools.UITesting (在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
語法
'宣告
<CLSCompliantAttribute(True)> _
Public Class ApplicationUnderTest _
Inherits UITestControl _
Implements IDisposable
[CLSCompliantAttribute(true)]
public class ApplicationUnderTest : UITestControl,
IDisposable
[CLSCompliantAttribute(true)]
public ref class ApplicationUnderTest : public UITestControl,
IDisposable
[<CLSCompliantAttribute(true)>]
type ApplicationUnderTest =
class
inherit UITestControl
interface IDisposable
end
public class ApplicationUnderTest extends UITestControl implements IDisposable
ApplicationUnderTest 型別會公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
![]() |
ApplicationUnderTest | 初始化 ApplicationUnderTest 類別的新執行個體。 |
回頁首
屬性
名稱 | 說明 | |
---|---|---|
![]() |
AlwaysOnTop | 取得值,這個值表示應用程式視窗是否永遠出現在上方。 |
![]() |
BoundingRectangle | 取得這個控制項的周框。 (繼承自 UITestControl)。 |
![]() |
ClassName | 取得這個控制項的類別名稱。 (繼承自 UITestControl)。 |
![]() |
CloseOnPlaybackCleanup | 取得或設定是否要自動關閉 ApplicationUnderTest 在播放中清除。 |
![]() |
Container | 取得或設定這個 UITestControl 的容器。 (繼承自 UITestControl)。 |
![]() |
ControlType | 取得 UI 控制項的型別。 (繼承自 UITestControl)。 |
![]() |
Enabled | 取得值,這個值表示是否已啟用這個控制項。 (繼承自 UITestControl)。 |
![]() |
Exists | 取得值,這個值表示這個控制項是否存在使用者介面上。 (繼承自 UITestControl)。 |
![]() |
FilterProperties | 取得用於辨別控制項的屬性值組集合。 (繼承自 UITestControl)。 |
![]() |
FriendlyName | 取得此控制項要在使用者介面中使用的名稱。 (繼承自 UITestControl)。 |
![]() |
HasFocus | 取得值,這個值表示此控制項目前是否在使用者介面中具有焦點。 (繼承自 UITestControl)。 |
![]() |
HasTitleBar | 取得值,這個值表示應用程式視窗控制項是否有標題列。 |
![]() |
Height | 取得控制項的高度。 (繼承自 UITestControl)。 |
![]() |
IsTopParent | 取得值,指出此編輯控制項是否為最上層項目。 (繼承自 UITestControl)。 |
![]() |
Left | 取得控制項的左邊緣的 X 座標。 (繼承自 UITestControl)。 |
![]() |
Maximized | 取得或設定值,這個值表示應用程式視窗是否已最大化。 |
![]() |
Minimized | 取得或設定值,這個值表示應用程式視窗是否已最小化。 |
![]() |
Name | 取得此控制項的名稱。 (繼承自 UITestControl)。 |
![]() |
NativeElement | 取得對應至此控制項的原生技術項目。 (繼承自 UITestControl)。 |
![]() |
Popup | 取得值,這個值表示應用程式視窗是否為快顯視窗。 |
![]() |
Process | 取得或設定基礎 Process 物件。 |
![]() |
Resizable | 取得值,這個值表示應用程式視窗是否可以調整大小。 |
![]() |
Restored | 取得或設定值,這個值表示應用程式視窗是否已還原。 |
![]() |
SearchConfigurations | 取得或設定搜尋組態。 (繼承自 UITestControl)。 |
![]() |
SearchProperties | 取得用於識別控制項的屬性值組集合。 (繼承自 UITestControl)。 |
![]() |
SearchPropertiesSetExplicitly | 取得值,指出此控制項的搜尋屬性是否由使用者在使用者介面中設定。 (繼承自 UITestControl)。 |
![]() |
ShowInTaskbar | 取得或設定值,這個值表示程式圖示是否出現在工作列中。 |
![]() |
State | 取得控制項的狀態。 (繼承自 UITestControl)。 |
![]() |
TechnologyName | 取得或設定實作這個控制項的技術架構。 (繼承自 UITestControl)。 |
![]() |
Title | 取得或設定待測應用程式的標題。 |
![]() |
Top | 取得控制項的上邊緣的 X 座標。 (繼承自 UITestControl)。 |
![]() |
TopParent | 取得這個控制項的最上層父代。 (繼承自 UITestControl)。 |
![]() |
Transparent | 取得值,這個值表示應用程式視窗是否透明。 |
![]() |
Width | 取得控制項的寬度。 (繼承自 UITestControl)。 |
![]() |
WindowHandle | 取得這個控制項的視窗控制代碼。 (繼承自 UITestControl)。 |
![]() |
WindowTitles | 取得最上層視窗標題的集合。 (繼承自 UITestControl)。 |
回頁首
方法
回頁首
執行緒安全
這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。