Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ApplicationUnderTest Class

Automates the operations of test applications.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
'Declaration
Public Class ApplicationUnderTest _
	Inherits UITestControl _
	Implements IDisposable

The ApplicationUnderTest type exposes the following members.

  NameDescription
Public methodApplicationUnderTestInitializes a new instance of the ApplicationUnderTest class.
Top
  NameDescription
Public propertyAlwaysOnTopGets a value that indicates whether the application window always appears on top.
Public propertyBoundingRectangleGets the Bounding rectangle for this control. (Inherited from UITestControl.)
Public propertyClassNameGets the class name for this control. (Inherited from UITestControl.)
Public propertyContainerGets or sets the container of this UITestControl. (Inherited from UITestControl.)
Public propertyControlTypeGets the type of the UI Control. (Inherited from UITestControl.)
Public propertyEnabledGets a value that indicates whether this control is enabled. (Inherited from UITestControl.)
Public propertyExistsGets a value that indicates whether this control exists on the user interface. (Inherited from UITestControl.)
Public propertyFilterPropertiesGets the property-value pair collection that is used to disambiguate a control. (Inherited from UITestControl.)
Public propertyFriendlyNameGets the name of this control to use in the user interface. (Inherited from UITestControl.)
Public propertyHasFocusGets a value that indicates whether this control currently has the focus in the user interface. (Inherited from UITestControl.)
Public propertyHasTitleBarGets a value that indicates whether the application window has a title bar.
Public propertyIsTopParentGets a value that indicates whether this control is the top-level element. (Inherited from UITestControl.)
Public propertyMaximizedGets or sets a value that indicates whether the application window is maximized.
Public propertyMinimizedGets or sets a value that indicates whether the application window is minimized.
Public propertyNameGets the name of this control. (Inherited from UITestControl.)
Public propertyNativeElementGets the native technology element that corresponds to this control. (Inherited from UITestControl.)
Public propertyPopupGets a value that indicates whether the application window is a pop-up window.
Public propertyProcessGets or sets the underlying Process object.
Public propertyResizableGets a value that indicates whether the application window is resizable.
Public propertyRestoredGets or sets a value that indicates whether the application window is restored.
Public propertySearchConfigurationsGets or sets search configurations. (Inherited from UITestControl.)
Public propertySearchPropertiesGets the property-value pair collection that is used to identify a control. (Inherited from UITestControl.)
Protected propertySearchPropertiesSetExplicitlyGets a value that indicates whether the search properties were explicitly set by the user. (Overrides UITestControl.SearchPropertiesSetExplicitly.)
Public propertyShowInTaskbarGets a value that indicates whether the program icon appears in the taskbar.
Public propertyTechnologyNameGets or sets the technology framework that implements this control. (Inherited from UITestControl.)
Public propertyTitleGets or sets the title of the application that is under test.
Public propertyTopParentGets the top-level parent of this control. (Inherited from UITestControl.)
Public propertyTransparentGets a value that indicates whether the application window is transparent.
Public propertyWindowHandleGets the window handle for this control. (Inherited from UITestControl.)
Public propertyWindowTitlesGets a collection of the window titles of the top-level window. (Inherited from UITestControl.)
Top
  NameDescription
Public methodCaptureImageCaptures the image of the UITestControl. The UITestControl must be present on the screen. (Inherited from UITestControl.)
Public methodCloseCloses the application that is under test.
Public methodCopyFromCreates a UITestControl object that references the same element on the user interface as the original UITestControl. (Inherited from UITestControl.)
Public methodDisposeReleases all resources that are used by the ApplicationUnderTest.
Protected methodDispose(Boolean)Releases all resources that are used by the ApplicationUnderTest.
Public methodDrawHighlightHighlights the control. (Inherited from UITestControl.)
Public methodEnsureClickableScrolls the user interface to make sure that the control is clickable. (Inherited from UITestControl.)
Public methodEnsureClickable(Point)Scrolls the user interface to a specific point to make sure that the control is clickable. (Inherited from UITestControl.)
Public methodEqualsDetermines whether the specified UITestControl is equal to the current UITestControl. (Inherited from UITestControl.)
Protected methodFinalizeFinalizer for ApplicationUnderTest. (Overrides Object.Finalize.)
Public methodFindFinds this application window in the user interface. (Overrides UITestControl.Find.)
Public methodFindMatchingControlsReturns a collection of all UITestControls that match the specified SearchProperties and FilterProperties. (Inherited from UITestControl.)
Public methodStatic memberFromProcessCreates a reference to an ApplicationUnderTest from an existing process.
Public methodGetChildrenReturns a collection of all first-level children of the current UITestControl. (Inherited from UITestControl.)
Public methodGetClickablePointReturns a clickable point on the control. (Inherited from UITestControl.)
Public methodGetHashCodeReturns a unique value that represents the current UITestControl instance. (Inherited from UITestControl.)
Public methodGetParentReturns the parent of the current UITestControl. (Inherited from UITestControl.)
Public methodGetPropertyGets the value of the specified property. (Inherited from UITestControl.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodGetUITestControlsForSearchReturns an array of UITestControl objects that will be used for searching. (Inherited from UITestControl.)
Public methodStatic memberLaunch(ProcessStartInfo)Starts the application by using specified parameters.
Public methodStatic memberLaunch(String)Starts the application by using specified parameters.
Public methodStatic memberLaunch(String, String)Starts the application by using specified parameters.
Public methodStatic memberLaunch(String, String, String)Starts the application by using specified parameters.
Public methodStatic memberLaunch(String, String, String, String, SecureString, String)Starts the application by using specified parameters.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetFocusSets the keyboard focus to the UITestControl. (Inherited from UITestControl.)
Public methodSetPropertySets the value of a given property. (Inherited from UITestControl.)
Protected methodShutdownForces the application to shut down.
Public methodToStringReturns a String that represents the current UITestControl. (Inherited from UITestControl.)
Public methodTryGetClickablePointReturns a clickable point in the UITestControl. If the control is not clickable, this method returns false. (Inherited from UITestControl.)
Public methodWaitForControlCondition(Predicate(Of UITestControl))Blocks the current thread until this control meets the specified condition, or until the default time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlCondition(Predicate(Of UITestControl), Int32)Blocks the current thread until this control meets the specified condition, or until the specified time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlEnabledBlocks the current thread until this control is enabled, or until the default time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlEnabled(Int32)Blocks the current thread until this control is enabled, or until the specified time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlExistBlocks the current thread until this control occurs in the user interface, or until the default time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlExist(Int32)Blocks the current thread until this control occurs in the user interface, or until the specified time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlNotExistBlocks the current thread until this control no longer exists in the user interface, or until the default time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlNotExist(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.)
Public methodWaitForControlPropertyEqual(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.)
Public methodWaitForControlPropertyEqual(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.)
Public methodWaitForControlPropertyNotEqual(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.)
Public methodWaitForControlPropertyNotEqual(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.)
Public methodWaitForControlReadyBlocks the current thread until this control is ready to receive mouse or keyboard input, or until the default time-out expires. (Inherited from UITestControl.)
Public methodWaitForControlReady(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.)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.