Microsoft.VisualStudio.TestTools.UITesting 命名空間
Microsoft.VisualStudio.TestTools.UITesting 命名空間提供可支援自動程式碼 UI 測試的類別。 此命名空間所包含的類別可為 HTML 網頁、Windows Form 應用程式與 Windows Presentation Framework 應用程式上的使用者介面控制項執行鍵盤與滑鼠互動。
類別
類別 | 描述 | |
---|---|---|
![]() |
ApplicationBase | |
![]() |
ApplicationUnderTest | 自動化應用程式測試作業。 |
![]() |
BrowserWindow | 表示瀏覽器視窗的類別 |
![]() |
CodedUITestAttribute | 用來啟動擴充,以便能夠將類別辨識為單元測試延伸類別。使用 [CodedUITest] 屬性在測試類別表示它是自動程式碼 UI 測試 |
![]() |
ColorDifference | 表示兩個色彩之間的通道差異,用來代表容錯。 |
![]() |
ControlType | ControlType 類別封裝 UI 控制項的不同類型 |
![]() |
Gesture | 執行的觸控筆勢包含靜態方法。 |
![]() |
HtmlLoggerState | |
![]() |
ImageComparer | |
![]() |
Keyboard | 包含執行的鍵盤動作靜態方法。 |
![]() |
Mouse | 包含執行的滑鼠動作靜態方法。 |
![]() |
Playback | 類別包含必須用於播放的設定。 |
![]() |
PlaybackErrorEventArgs | 表示當動作在測試播放期間失敗時可用的事件引數。 |
![]() |
PlaybackSettings | 用於播放時要使用的設定。 |
![]() |
PropertyExpression | 表示具有選擇性屬性運算式運算子之搜尋屬性的機碼值組。 |
![]() |
PropertyExpressionCollection | 表示 PropertyExpression 物件的集合。 |
![]() |
PropertyExpressionObservableCollection | 包含 UITestControl 可搜尋的屬性。 |
![]() |
UITechnologyElementProxy | Proxy UITechnologyElement 類別。擴充外掛程式必須覆寫這個自訂其技術項目行為。 |
![]() |
UITechnologyManagerProxy | Proxy 技術管理員類別。 擴充外掛程式必須覆寫這個自訂其技術管理員行為。 |
![]() |
UITechnologyManagerProxy.ChildrenEnumeratorProxy | 在驗證子列舉值的列舉程式包裝函式類別。 |
![]() |
UITestActionExecutor | 實作的自訂動作支援抽象類別 UI 控制項。 |
![]() |
UITestControl | UITestControl 提供放置控制項的使用者介面。它可以是泛型對跨技術的控制項的屬性和方法。 |
![]() |
UITestControl.PropertyNames | 表示所有 UITestControl 物件中通用屬性的名稱。 |
![]() |
UITestControlCollection | 包含 UITestControl 可搜尋的屬性。 |
![]() |
UITestControlFactory | 建立從點,原生項目…等的 UITestControls 的 Factory 類別。 |
![]() |
UITestPropertyDescriptor | 類別,用於包含屬性的相關資訊。 |
![]() |
UITestPropertyProvider | 提供抽象基底類別,以便實作自訂支援來提供使用者介面 (UI) 測試控制項的屬性。 |
![]() |
WebViewActionExecutor |
結構
結構 | 描述 | |
---|---|---|
![]() |
ToleranceRectangle | ToleranceRectangle 結構。 |
列舉
列舉類型 | 描述 | |
---|---|---|
![]() |
CodedUITestType | 表示測試類別的 CodedUITest 型別。 |
![]() |
PlaybackErrorOptions | 表示使用者可以在發生播放錯誤時選擇的選項。 |
![]() |
PropertyExpressionOperator | 表示用於建立屬性運算式的運算子。 |
![]() |
UITestGestureDirection | 筆勢方向。向上/左/右。 |
![]() |
UITestPropertyAttributes | 列舉屬性 (Property) 的屬性 (Attribute)。 |