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 | |
---|---|---|
ApplicationUnderTest | Initializes a new instance of the ApplicationUnderTest class. |
Top
Properties
Name | Description | |
---|---|---|
AlwaysOnTop | Gets a value that indicates whether the application window always appears on top. | |
BoundingRectangle | (Inherited from UITestControl.) | |
ClassName | (Inherited from UITestControl.) | |
CloseOnPlaybackCleanup | (Inherited from ApplicationBase.) | |
Container | (Inherited from UITestControl.) | |
ControlType | (Inherited from UITestControl.) | |
Enabled | (Inherited from UITestControl.) | |
Exists | (Inherited from UITestControl.) | |
FilterProperties | (Inherited from UITestControl.) | |
FriendlyName | (Inherited from UITestControl.) | |
HasFocus | (Inherited from UITestControl.) | |
HasTitleBar | Gets a value that indicates whether the application window has a title bar. | |
Height | (Inherited from UITestControl.) | |
IsTopParent | (Inherited from UITestControl.) | |
Left | (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 | (Inherited from UITestControl.) | |
NativeElement | (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 | (Inherited from UITestControl.) | |
SearchProperties | (Inherited from UITestControl.) | |
SearchPropertiesSetExplicitly | (Inherited from UITestControl.) | |
ShowInTaskbar | Gets a value that indicates whether the program icon appears in the taskbar. | |
State | (Inherited from UITestControl.) | |
TechnologyName | (Inherited from UITestControl.) | |
Title | Gets or sets the title of the application that is under test. | |
Top | (Inherited from UITestControl.) | |
TopParent | (Inherited from UITestControl.) | |
Transparent | Gets a value that indicates whether the application window is transparent. | |
Width | (Inherited from UITestControl.) | |
WindowHandle | (Inherited from UITestControl.) | |
WindowTitles | (Inherited from UITestControl.) |
Top
Methods
Name | Description | |
---|---|---|
CaptureImage | (Inherited from UITestControl.) | |
Close | Closes the application that is under test. (Overrides ApplicationBase.Close().) | |
CopyFrom | (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 | (Inherited from UITestControl.) | |
EnsureClickable() | (Inherited from UITestControl.) | |
EnsureClickable(Point) | (Inherited from UITestControl.) | |
Equals | (Inherited from UITestControl.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Find | Finds this application window in the user interface. (Overrides UITestControl.Find().) | |
FindMatchingControls | (Inherited from UITestControl.) | |
FromProcess | Creates a reference to an ApplicationUnderTest from an existing process. | |
GetChildren | (Inherited from UITestControl.) | |
GetClickablePoint | (Inherited from UITestControl.) | |
GetHashCode | (Inherited from UITestControl.) | |
GetParent | (Inherited from UITestControl.) | |
GetProperty | (Inherited from UITestControl.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUITestControlsForSearch | (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 | (Inherited from UITestControl.) | |
SetProperty | (Inherited from UITestControl.) | |
Shutdown | Forces the application to shut down. | |
ToString | (Inherited from UITestControl.) | |
TryFind | (Inherited from UITestControl.) | |
TryGetClickablePoint(Point%) | (Inherited from UITestControl.) | |
WaitForControlCondition(Predicate<UITestControl>) | (Inherited from UITestControl.) | |
WaitForControlCondition(Predicate<UITestControl>, Int32) | (Inherited from UITestControl.) | |
WaitForControlEnabled() | (Inherited from UITestControl.) | |
WaitForControlEnabled(Int32) | (Inherited from UITestControl.) | |
WaitForControlExist() | (Inherited from UITestControl.) | |
WaitForControlExist(Int32) | (Inherited from UITestControl.) | |
WaitForControlNotExist() | (Inherited from UITestControl.) | |
WaitForControlNotExist(Int32) | (Inherited from UITestControl.) | |
WaitForControlPropertyEqual(String, Object) | (Inherited from UITestControl.) | |
WaitForControlPropertyEqual(String, Object, Int32) | (Inherited from UITestControl.) | |
WaitForControlPropertyNotEqual(String, Object) | (Inherited from UITestControl.) | |
WaitForControlPropertyNotEqual(String, Object, Int32) | (Inherited from UITestControl.) | |
WaitForControlReady() | (Inherited from UITestControl.) | |
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.