ApplicationUnderTest 类

自动运行测试应用程序。

继承层次结构

Object
  Microsoft.VisualStudio.TestTools.UITesting.UITestControl
    Microsoft.VisualStudio.TestTools.UITesting.ApplicationBase
      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 ApplicationBase _
    Implements IDisposable
[CLSCompliantAttribute(true)]
public class ApplicationUnderTest : ApplicationBase, 
    IDisposable
[CLSCompliantAttribute(true)]
public ref class ApplicationUnderTest : public ApplicationBase, 
    IDisposable
[<CLSCompliantAttribute(true)>]
type ApplicationUnderTest =  
    class 
        inherit ApplicationBase 
        interface IDisposable 
    end
public class ApplicationUnderTest extends ApplicationBase implements IDisposable

ApplicationUnderTest 类型公开以下成员。

构造函数

  名称 说明
公共方法 ApplicationUnderTest 初始化 ApplicationUnderTest 类的新实例。

页首

属性

  名称 说明
公共属性 AlwaysOnTop 获取一个值,该值指示应用程序窗口是否始终出现在顶层。
公共属性 BoundingRectangle (继承自 UITestControl。)
公共属性 ClassName (继承自 UITestControl。)
公共属性 CloseOnPlaybackCleanup (继承自 ApplicationBase。)
公共属性 Container (继承自 UITestControl。)
公共属性 ControlType (继承自 UITestControl。)
公共属性 Enabled (继承自 UITestControl。)
公共属性 Exists (继承自 UITestControl。)
公共属性 FilterProperties (继承自 UITestControl。)
公共属性 FriendlyName (继承自 UITestControl。)
公共属性 HasFocus (继承自 UITestControl。)
公共属性 HasTitleBar 获取一个值,该值指示应用程序窗口是否具有标题栏。
公共属性 Height (继承自 UITestControl。)
公共属性 IsTopParent (继承自 UITestControl。)
公共属性 Left (继承自 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 (继承自 UITestControl。)
公共属性 TopParent (继承自 UITestControl。)
公共属性 Transparent 获取一个值,该值指示应用程序窗口是否透明。
公共属性 Width (继承自 UITestControl。)
公共属性 WindowHandle (继承自 UITestControl。)
公共属性 WindowTitles (继承自 UITestControl。)

页首

方法

  名称 说明
公共方法 CaptureImage (继承自 UITestControl。)
公共方法 Close 关闭进行测试的应用程序。 (重写 ApplicationBase.Close()。)
公共方法 CopyFrom (继承自 UITestControl。)
公共方法 Dispose() 释放由 ApplicationUnderTest 使用的所有资源。
受保护的方法 Dispose(Boolean) 释放由 ApplicationUnderTest 使用的所有资源。
公共方法 DrawHighlight (继承自 UITestControl。)
公共方法 EnsureClickable() (继承自 UITestControl。)
公共方法 EnsureClickable(Point) (继承自 UITestControl。)
公共方法 Equals (继承自 UITestControl。)
受保护的方法 Finalize 在垃圾回收将某一对象回收前允许该对象尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 Find 在用户界面中查找此应用程序窗口。 (重写 UITestControl.Find()。)
公共方法 FindMatchingControls (继承自 UITestControl。)
公共方法静态成员 FromProcess 基于现有进程创建 ApplicationUnderTest 引用。
公共方法 GetChildren (继承自 UITestControl。)
公共方法 GetClickablePoint (继承自 UITestControl。)
公共方法 GetHashCode (继承自 UITestControl。)
公共方法 GetParent (继承自 UITestControl。)
公共方法 GetProperty (继承自 UITestControl。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 GetUITestControlsForSearch (继承自 UITestControl。)
公共方法静态成员 Launch(ProcessStartInfo) 使用指定的参数启动应用程序。
公共方法静态成员 Launch(String) 使用指定的参数启动应用程序。
公共方法静态成员 Launch(String, String) 使用指定的参数启动应用程序。
公共方法静态成员 Launch(String, String, String) 使用指定的参数启动应用程序。
公共方法静态成员 Launch(String, String, String, String, SecureString, String) 使用指定的参数启动应用程序。
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 SetFocus (继承自 UITestControl。)
公共方法 SetProperty (继承自 UITestControl。)
受保护的方法 Shutdown 强制应用程序关闭。
公共方法 ToString (继承自 UITestControl。)
公共方法 TryFind (继承自 UITestControl。)
公共方法 TryGetClickablePoint(Point%) (继承自 UITestControl。)
公共方法 WaitForControlCondition(Predicate<UITestControl>) (继承自 UITestControl。)
公共方法 WaitForControlCondition(Predicate<UITestControl>, Int32) (继承自 UITestControl。)
公共方法 WaitForControlEnabled() (继承自 UITestControl。)
公共方法 WaitForControlEnabled(Int32) (继承自 UITestControl。)
公共方法 WaitForControlExist() (继承自 UITestControl。)
公共方法 WaitForControlExist(Int32) (继承自 UITestControl。)
公共方法 WaitForControlNotExist() (继承自 UITestControl。)
公共方法 WaitForControlNotExist(Int32) (继承自 UITestControl。)
公共方法 WaitForControlPropertyEqual(String, Object) (继承自 UITestControl。)
公共方法 WaitForControlPropertyEqual(String, Object, Int32) (继承自 UITestControl。)
公共方法 WaitForControlPropertyNotEqual(String, Object) (继承自 UITestControl。)
公共方法 WaitForControlPropertyNotEqual(String, Object, Int32) (继承自 UITestControl。)
公共方法 WaitForControlReady() (继承自 UITestControl。)
公共方法 WaitForControlReady(Int32) (继承自 UITestControl。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.TestTools.UITesting 命名空间

UITestControl