Partager via


ApplicationUnderTest Class

Automates the operations of test applications.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.UITesting.UITestControl
    Microsoft.VisualStudio.TestTools.UITesting.ApplicationBase
      Microsoft.VisualStudio.TestTools.UITesting.ApplicationUnderTest
        Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
<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

The ApplicationUnderTest type exposes the following members.

Constructors

  Name Description
Public method ApplicationUnderTest Initializes a new instance of the ApplicationUnderTest class.

Top

Properties

  Name Description
Public property AlwaysOnTop Gets a value that indicates whether the application window always appears on top.
Public property BoundingRectangle (Inherited from UITestControl.)
Public property ClassName (Inherited from UITestControl.)
Public property CloseOnPlaybackCleanup (Inherited from ApplicationBase.)
Public property Container (Inherited from UITestControl.)
Public property ControlType (Inherited from UITestControl.)
Public property Enabled (Inherited from UITestControl.)
Public property Exists (Inherited from UITestControl.)
Public property FilterProperties (Inherited from UITestControl.)
Public property FriendlyName (Inherited from UITestControl.)
Public property HasFocus (Inherited from UITestControl.)
Public property HasTitleBar Gets a value that indicates whether the application window has a title bar.
Public property Height (Inherited from UITestControl.)
Public property IsTopParent (Inherited from UITestControl.)
Public property Left (Inherited from UITestControl.)
Public property Maximized Gets or sets a value that indicates whether the application window is maximized.
Public property Minimized Gets or sets a value that indicates whether the application window is minimized.
Public property Name (Inherited from UITestControl.)
Public property NativeElement (Inherited from UITestControl.)
Public property Popup Gets a value that indicates whether the application window is a pop-up window.
Public property Process Gets or sets the underlying Process object.
Public property Resizable Gets a value that indicates whether the application window is resizable.
Public property Restored Gets or sets a value that indicates whether the application window is restored.
Public property SearchConfigurations (Inherited from UITestControl.)
Public property SearchProperties (Inherited from UITestControl.)
Protected property SearchPropertiesSetExplicitly (Inherited from UITestControl.)
Public property ShowInTaskbar Gets a value that indicates whether the program icon appears in the taskbar.
Public property State (Inherited from UITestControl.)
Public property TechnologyName (Inherited from UITestControl.)
Public property Title Gets or sets the title of the application that is under test.
Public property Top (Inherited from UITestControl.)
Public property TopParent (Inherited from UITestControl.)
Public property Transparent Gets a value that indicates whether the application window is transparent.
Public property Width (Inherited from UITestControl.)
Public property WindowHandle (Inherited from UITestControl.)
Public property WindowTitles (Inherited from UITestControl.)

Top

Methods

  Name Description
Public method CaptureImage (Inherited from UITestControl.)
Public method Close Closes the application that is under test. (Overrides ApplicationBase.Close().)
Public method CopyFrom (Inherited from UITestControl.)
Public method Dispose() Releases all resources that are used by the ApplicationUnderTest.
Protected method Dispose(Boolean) Releases all resources that are used by the ApplicationUnderTest.
Public method DrawHighlight (Inherited from UITestControl.)
Public method EnsureClickable() (Inherited from UITestControl.)
Public method EnsureClickable(Point) (Inherited from UITestControl.)
Public method Equals (Inherited from UITestControl.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Find Finds this application window in the user interface. (Overrides UITestControl.Find().)
Public method FindMatchingControls (Inherited from UITestControl.)
Public methodStatic member FromProcess Creates a reference to an ApplicationUnderTest from an existing process.
Public method GetChildren (Inherited from UITestControl.)
Public method GetClickablePoint (Inherited from UITestControl.)
Public method GetHashCode (Inherited from UITestControl.)
Public method GetParent (Inherited from UITestControl.)
Public method GetProperty (Inherited from UITestControl.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method GetUITestControlsForSearch (Inherited from UITestControl.)
Public methodStatic member Launch(ProcessStartInfo) Starts the application by using specified parameters.
Public methodStatic member Launch(String) Starts the application by using specified parameters.
Public methodStatic member Launch(String, String) Starts the application by using specified parameters.
Public methodStatic member Launch(String, String, String) Starts the application by using specified parameters.
Public methodStatic member Launch(String, String, String, String, SecureString, String) Starts the application by using specified parameters.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetFocus (Inherited from UITestControl.)
Public method SetProperty (Inherited from UITestControl.)
Protected method Shutdown Forces the application to shut down.
Public method ToString (Inherited from UITestControl.)
Public method TryFind (Inherited from UITestControl.)
Public method TryGetClickablePoint(Point%) (Inherited from UITestControl.)
Public method WaitForControlCondition(Predicate<UITestControl>) (Inherited from UITestControl.)
Public method WaitForControlCondition(Predicate<UITestControl>, Int32) (Inherited from UITestControl.)
Public method WaitForControlEnabled() (Inherited from UITestControl.)
Public method WaitForControlEnabled(Int32) (Inherited from UITestControl.)
Public method WaitForControlExist() (Inherited from UITestControl.)
Public method WaitForControlExist(Int32) (Inherited from UITestControl.)
Public method WaitForControlNotExist() (Inherited from UITestControl.)
Public method WaitForControlNotExist(Int32) (Inherited from UITestControl.)
Public method WaitForControlPropertyEqual(String, Object) (Inherited from UITestControl.)
Public method WaitForControlPropertyEqual(String, Object, Int32) (Inherited from UITestControl.)
Public method WaitForControlPropertyNotEqual(String, Object) (Inherited from UITestControl.)
Public method WaitForControlPropertyNotEqual(String, Object, Int32) (Inherited from UITestControl.)
Public method WaitForControlReady() (Inherited from UITestControl.)
Public method WaitForControlReady(Int32) (Inherited from UITestControl.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TestTools.UITesting Namespace

UITestControl