ApplicationUnderTest Class
Visual Studio 2012
Automates the operations of test applications.
Object
Microsoft.VisualStudio.TestTools.UITesting.UITestControl
Microsoft.VisualStudio.TestTools.UITesting.ApplicationUnderTest
Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow
Microsoft.VisualStudio.TestTools.UITesting.UITestControl
Microsoft.VisualStudio.TestTools.UITesting.ApplicationUnderTest
Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
The ApplicationUnderTest type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AlwaysOnTop | Gets a value that indicates whether the application window always appears on top. |
![]() | BoundingRectangle | Gets the Bounding rectangle for this control. (Inherited from UITestControl.) |
![]() | ClassName | Gets the class name for this control. (Inherited from UITestControl.) |
![]() | CloseOnPlaybackCleanup | Gets or Sets whether to close the ApplicationUnderTest automatically at playback cleanup. |
![]() | Container | Gets or sets the container of this UITestControl. (Inherited from UITestControl.) |
![]() | ControlType | Gets the type of the UI Control. (Inherited from UITestControl.) |
![]() | Enabled | Gets a value that indicates whether this control is enabled. (Inherited from UITestControl.) |
![]() | Exists | Gets a value that indicates whether this control exists on the user interface. (Inherited from UITestControl.) |
![]() | FilterProperties | Gets the property-value pair collection that is used to disambiguate a control. (Inherited from UITestControl.) |
![]() | FriendlyName | Gets the name of this control to use in the user interface. (Inherited from UITestControl.) |
![]() | HasFocus | Gets a value that indicates whether this control currently has the focus in the user interface. (Inherited from UITestControl.) |
![]() | HasTitleBar | Gets a value that indicates whether the application window has a title bar. |
![]() | Height | Gets height of the control. (Inherited from UITestControl.) |
![]() | IsTopParent | Gets a value that indicates whether this control is the top-level element. (Inherited from UITestControl.) |
![]() | Left | Gets the x-coordinate of the left edge of the control. (Inherited from UITestControl.) |
![]() | Maximized | Gets or sets a value that indicates whether the application window is maximized. |
![]() | Minimized | Gets or sets a value that indicates whether the application window is minimized. |
![]() | Name | Gets the name of this control. (Inherited from UITestControl.) |
![]() | NativeElement | Gets the native technology element that corresponds to this control. (Inherited from UITestControl.) |
![]() | Popup | Gets a value that indicates whether the application window is a pop-up window. |
![]() | Process | Gets or sets the underlying Process object. |
![]() | Resizable | Gets a value that indicates whether the application window is resizable. |
![]() | Restored | Gets or sets a value that indicates whether the application window is restored. |
![]() | SearchConfigurations | Gets or sets search configurations. (Inherited from UITestControl.) |
![]() | SearchProperties | Gets the property-value pair collection that is used to identify a control. (Inherited from UITestControl.) |
![]() | SearchPropertiesSetExplicitly | Gets a value that indicates whether the search properties for this control were set by the user in the user interface. (Inherited from UITestControl.) |
![]() | ShowInTaskbar | Gets a value that indicates whether the program icon appears in the taskbar. |
![]() | State | Gets the state of the control. (Inherited from UITestControl.) |
![]() | TechnologyName | Gets or sets the technology framework that implements this control. (Inherited from UITestControl.) |
![]() | Title | Gets or sets the title of the application that is under test. |
![]() | Top | Gets the x-coordinate of the top edge of the control. (Inherited from UITestControl.) |
![]() | TopParent | Gets the top-level parent of this control. (Inherited from UITestControl.) |
![]() | Transparent | Gets a value that indicates whether the application window is transparent. |
![]() | Width | Gets width of the control. (Inherited from UITestControl.) |
![]() | WindowHandle | Gets the window handle for this control. (Inherited from UITestControl.) |
![]() | WindowTitles | Gets a collection of the window titles of the top-level window. (Inherited from UITestControl.) |
| Name | Description | |
|---|---|---|
![]() | CaptureImage | Captures the image of the UITestControl. The UITestControl must be present on the screen. (Inherited from UITestControl.) |
![]() | Close | Closes the application that is under test. |
![]() | CopyFrom | Creates a UITestControl object that references the same element on the user interface as the original UITestControl. (Inherited from UITestControl.) |
![]() | Dispose() | Releases all resources that are used by the ApplicationUnderTest. |
![]() | Dispose(Boolean) | Releases all resources that are used by the ApplicationUnderTest. |
![]() | DrawHighlight | Highlights the control. (Inherited from UITestControl.) |
![]() | EnsureClickable() | Scrolls the user interface to make sure that the control is clickable. (Inherited from UITestControl.) |
![]() | EnsureClickable(Point) | Scrolls the user interface to a specific point to make sure that the control is clickable. (Inherited from UITestControl.) |
![]() | Equals | Determines whether the specified UITestControl is equal to the current UITestControl. (Inherited from UITestControl.) |
![]() | Finalize | Finalizer for ApplicationUnderTest. (Overrides Object.Finalize.) |
![]() | Find | Finds this application window in the user interface. (Overrides UITestControl.Find().) |
![]() | FindMatchingControls | Returns a collection of all UITestControls that match the specified SearchProperties and FilterProperties. (Inherited from UITestControl.) |
![]() ![]() | FromProcess | Creates a reference to an ApplicationUnderTest from an existing process. |
![]() | GetChildren | Returns a collection of all first-level children of the current UITestControl. (Inherited from UITestControl.) |
![]() | GetClickablePoint | Returns a clickable point on the control. (Inherited from UITestControl.) |
![]() | GetHashCode | Returns a unique value that represents the current UITestControl instance. (Inherited from UITestControl.) |
![]() | GetParent | Returns the parent of the current UITestControl. (Inherited from UITestControl.) |
![]() | GetProperty | Gets the value of the specified property. (Inherited from UITestControl.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetUITestControlsForSearch | Returns an array of UITestControl objects that will be used for searching. (Inherited from UITestControl.) |
![]() ![]() | Launch(ProcessStartInfo) | Starts the application by using specified parameters. |
![]() ![]() | Launch(String) | Starts the application by using specified parameters. |
![]() ![]() | Launch(String, String) | Starts the application by using specified parameters. |
![]() ![]() | Launch(String, String, String) | Starts the application by using specified parameters. |
![]() ![]() | Launch(String, String, String, String, SecureString, String) | Starts the application by using specified parameters. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | SetFocus | Sets the keyboard focus to the UITestControl. (Inherited from UITestControl.) |
![]() | SetProperty | Sets the value of a given property. (Inherited from UITestControl.) |
![]() | Shutdown | Forces the application to shut down. |
![]() | ToString | Returns a String that represents the current UITestControl. (Inherited from UITestControl.) |
![]() | TryFind | Tries to find the control on the user interface. (Inherited from UITestControl.) |
![]() | TryGetClickablePoint | Returns a clickable point in the UITestControl. If the control is not clickable, this method returns false. (Inherited from UITestControl.) |
![]() | WaitForControlCondition(Predicate<UITestControl>) | Blocks the current thread until this control meets the specified condition, or until the default time-out expires. (Inherited from UITestControl.) |
![]() | WaitForControlCondition(Predicate<UITestControl>, Int32) | Blocks the current thread until this control meets the specified condition, or until the specified time-out expires. (Inherited from UITestControl.) |
![]() | WaitForControlEnabled() | Blocks the current thread until this control is enabled, or until the default time-out expires. (Inherited from UITestControl.) |
![]() | WaitForControlEnabled(Int32) | Blocks the current thread until this control is enabled, or until the specified time-out expires. (Inherited from UITestControl.) |
![]() | WaitForControlExist() | Blocks the current thread until this control occurs in the user interface, or until the default time-out expires. (Inherited from UITestControl.) |
![]() | WaitForControlExist(Int32) | Blocks the current thread until this control occurs in the user interface, or until the specified time-out expires. (Inherited from UITestControl.) |
![]() | WaitForControlNotExist() | Blocks the current thread until this control no longer is in the user interface, or until the default time-out expires. (Inherited from UITestControl.) |
![]() | WaitForControlNotExist(Int32) | Blocks the current thread until this control no longer occurs in the user interface, or until the specified time-out expires. (Inherited from UITestControl.) |
![]() | WaitForControlPropertyEqual(String, Object) | Blocks the current thread until the specified property of this control is equal to the specified value, or until the default time-out expires. (Inherited from UITestControl.) |
![]() | WaitForControlPropertyEqual(String, Object, Int32) | Blocks the current thread until the specified property of this control is equal to the specified value, or until the specified time-out expires. (Inherited from UITestControl.) |
![]() | WaitForControlPropertyNotEqual(String, Object) | Blocks the current thread until the specified property of this control is not equal to the specified value, or until the default time-out expires. (Inherited from UITestControl.) |
![]() | WaitForControlPropertyNotEqual(String, Object, Int32) | Blocks the current thread until the specified property of this control is not equal to the specified value, or until the specified time-out expires. (Inherited from UITestControl.) |
![]() | WaitForControlReady() | Blocks the current thread until this control is ready to receive mouse or keyboard input, or until the default time-out expires. (Inherited from UITestControl.) |
![]() | WaitForControlReady(Int32) | Blocks the current thread until this control is ready to receive mouse or keyboard input, or until the specified time-out expires. (Inherited from UITestControl.) |
