执行用户界面 (UI) 测试中的每个测试操作,并使用 ActionInvoker 属性的值解释每个操作的结果。
继承层次结构
System.Object
Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.UITestInterpreterCore
Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.UITestInterpreter
命名空间: Microsoft.VisualStudio.TestTools.UITest.CodeGeneration
程序集: Microsoft.VisualStudio.TestTools.UITest.CodeGeneration(在 Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.dll 中)
语法
声明
Public Class UITestInterpreter _
Inherits UITestInterpreterCore
public class UITestInterpreter : UITestInterpreterCore
public ref class UITestInterpreter : public UITestInterpreterCore
type UITestInterpreter =
class
inherit UITestInterpreterCore
end
public class UITestInterpreter extends UITestInterpreterCore
UITestInterpreter 类型公开以下成员。
构造函数
| 名称 | 说明 | |
|---|---|---|
![]() |
UITestInterpreter | 初始化 UITestInterpreter 类的新实例。 |
页首
属性
| 名称 | 说明 | |
|---|---|---|
![]() |
ActionInvoker | 获取或设置用于解释此测试的 UITestActionInvoker。 (重写 UITestInterpreterCore.ActionInvoker。) |
![]() |
CurrentAction | 当前正执行的操作。 (继承自 UITestInterpreterCore。) |
![]() |
PlaybackInProgress | True,则播放正在进行。 (继承自 UITestInterpreterCore。) |
![]() |
PlaybackUITest | 获取正在执行的 UI 测试。 (继承自 UITestInterpreterCore。) |
页首
方法
页首
事件
| 名称 | 说明 | |
|---|---|---|
![]() |
ActionCompleted | 执行 UITestAction 后引发事件。 (继承自 UITestInterpreterCore。) |
![]() |
ActionListCompleted | 每个 ActionList 执行完后引发事件。 (继承自 UITestInterpreterCore。) |
![]() |
ActionListStarted | 在每ActionList之前执行引发的事件启动。 (继承自 UITestInterpreterCore。) |
![]() |
ActionStarted | UITestAction 执行前引发事件。 (继承自 UITestInterpreterCore。) |
![]() |
InterpreterError | 解读 UITest 时出现错误的事件引发。 (继承自 UITestInterpreterCore。) |
![]() |
InterpreterProgress | 解读 UITest 时更新进度的事件引发。 (继承自 UITestInterpreterCore。) |
![]() |
InterpreterWarning | 解读 UITest 时出现警告的事件引发。 (继承自 UITestInterpreterCore。) |
![]() |
UITestCompleted | UItest 执行完后引发事件。 (继承自 UITestInterpreterCore。) |
![]() |
UITestStarted | 在UITest开始前执行引发的事件。 (继承自 UITestInterpreterCore。) |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
请参见
参考
Microsoft.VisualStudio.TestTools.UITest.CodeGeneration 命名空间
ActionLogInvoker
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)