执行用户界面 (UI) 测试中的每个测试操作,并使用 ActionInvoker 属性的值解释每个操作的结果。
命名空间: Microsoft.VisualStudio.TestTools.UITest.CodeGeneration
程序集: Microsoft.VisualStudio.TestTools.UITest.CodeGeneration(Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.dll 中)
继承层次结构
System.Object
Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.UITestInterpreterCore
Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.UITestInterpreter
语法
public class UITestInterpreter : UITestInterpreterCore
public ref class UITestInterpreter : UITestInterpreterCore
type UITestInterpreter =
class
inherit UITestInterpreterCore
end
Public Class UITestInterpreter
Inherits UITestInterpreterCore
构造函数
| 名称 | 说明 | |
|---|---|---|
![]() |
UITestInterpreter(UITest) | 初始化 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 继承。) |
线程安全
此类型的任何公共静态(Visual Basic 中为 Shared)成员都是线程安全的。但不保证所有实例成员都是线程安全的。
请参阅
ActionLogInvoker
Microsoft.VisualStudio.TestTools.UITest.CodeGeneration 命名空间
返回页首
.gif)
.jpeg)
.gif)
.gif)
.jpeg)
.gif)