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 类型公开以下成员。
构造函数
页首
属性
页首
方法
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
CaptureImage |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
Close |
关闭进行测试的应用程序。 (重写 ApplicationBase.Close()。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
CopyFrom |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
Dispose() |
释放由 ApplicationUnderTest 使用的所有资源。 |
![受保护的方法 受保护的方法](images/ee710399.protmethod(vs.120).gif) |
Dispose(Boolean) |
释放由 ApplicationUnderTest 使用的所有资源。 |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
DrawHighlight |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
EnsureClickable() |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
EnsureClickable(Point) |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
Equals |
(继承自 UITestControl。) |
![受保护的方法 受保护的方法](images/ee710399.protmethod(vs.120).gif) |
Finalize |
在垃圾回收将某一对象回收前允许该对象尝试释放资源并执行其他清理操作。 (继承自 Object。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
Find |
在用户界面中查找此应用程序窗口。 (重写 UITestControl.Find()。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
FindMatchingControls |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) ![静态成员 静态成员](images/dn234458.static(zh-cn,vs.120).gif) |
FromProcess |
基于现有进程创建 ApplicationUnderTest 引用。 |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
GetChildren |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
GetClickablePoint |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
GetHashCode |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
GetParent |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
GetProperty |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
GetType |
获取当前实例的 Type。 (继承自 Object。) |
![受保护的方法 受保护的方法](images/ee710399.protmethod(vs.120).gif) |
GetUITestControlsForSearch |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) ![静态成员 静态成员](images/dn234458.static(zh-cn,vs.120).gif) |
Launch(ProcessStartInfo) |
使用指定的参数启动应用程序。 |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) ![静态成员 静态成员](images/dn234458.static(zh-cn,vs.120).gif) |
Launch(String) |
使用指定的参数启动应用程序。 |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) ![静态成员 静态成员](images/dn234458.static(zh-cn,vs.120).gif) |
Launch(String, String) |
使用指定的参数启动应用程序。 |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) ![静态成员 静态成员](images/dn234458.static(zh-cn,vs.120).gif) |
Launch(String, String, String) |
使用指定的参数启动应用程序。 |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) ![静态成员 静态成员](images/dn234458.static(zh-cn,vs.120).gif) |
Launch(String, String, String, String, SecureString, String) |
使用指定的参数启动应用程序。 |
![受保护的方法 受保护的方法](images/ee710399.protmethod(vs.120).gif) |
MemberwiseClone |
创建当前 Object 的浅表副本。 (继承自 Object。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
SetFocus |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
SetProperty |
(继承自 UITestControl。) |
![受保护的方法 受保护的方法](images/ee710399.protmethod(vs.120).gif) |
Shutdown |
强制应用程序关闭。 |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
ToString |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
TryFind |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
TryGetClickablePoint(Point%) |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
WaitForControlCondition(Predicate<UITestControl>) |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
WaitForControlCondition(Predicate<UITestControl>, Int32) |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
WaitForControlEnabled() |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
WaitForControlEnabled(Int32) |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
WaitForControlExist() |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
WaitForControlExist(Int32) |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
WaitForControlNotExist() |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
WaitForControlNotExist(Int32) |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
WaitForControlPropertyEqual(String, Object) |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
WaitForControlPropertyEqual(String, Object, Int32) |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
WaitForControlPropertyNotEqual(String, Object) |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
WaitForControlPropertyNotEqual(String, Object, Int32) |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
WaitForControlReady() |
(继承自 UITestControl。) |
![公共方法 公共方法](images/dn248189.pubmethod(vs.120).gif) |
WaitForControlReady(Int32) |
(继承自 UITestControl。) |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
请参阅
参考
Microsoft.VisualStudio.TestTools.UITesting 命名空间
UITestControl