UITestInterpreterCore 类

 

循环访问在 UITest 操作的类对象并说明这些。

取决于 UITestActionInvoker 值的解释的结果。

命名空间:   Microsoft.VisualStudio.TestTools.UITest.CodeGeneration
程序集:  Microsoft.VisualStudio.TestTools.UITest.Common(Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)

继承层次结构

System.Object
  Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.UITestInterpreterCore
    Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.UITestInterpreter

语法

public class UITestInterpreterCore : IDisposable
public ref class UITestInterpreterCore : IDisposable
type UITestInterpreterCore = 
    class
        interface IDisposable
    end
Public Class UITestInterpreterCore
    Implements IDisposable

构造函数

名称 说明
System_CAPS_pubmethod UITestInterpreterCore(UITest)

创建给定 UITest 的 UITestInterpreter 的实例。

属性

名称 说明
System_CAPS_pubproperty ActionInvoker

获取或设置要用于在 UITest 中执行操作的 UITestActionInvoker。

System_CAPS_protproperty CurrentAction

当前正执行的操作。

System_CAPS_protproperty PlaybackInProgress

进度,则播放中,则为 true。

System_CAPS_pubproperty PlaybackUITest

获取正在执行的 UI 测试。

方法

名称 说明
System_CAPS_pubmethod Cancel()

取消执行 (也就是说解释)。阶跃当前或测试。此调用将进行阻止,直到 UITest 执行取消和播放返回。必须从 UITest 执行的线程的其他线程调用此操作。

System_CAPS_pubmethod Dispose()

处置此对象。

System_CAPS_protmethod Dispose(Boolean)

实际请配置实现。

System_CAPS_pubmethod Equals(Object)

(从 Object 继承。)

System_CAPS_protmethod ExecuteAction(UITestAction, UIMap)

执行特定操作。

System_CAPS_pubmethod ExecuteStep()

执行 (也就是说解释) 在当前选择的 ActionList 的当前阶跃。

System_CAPS_pubmethod ExecuteTest()

执行 (也就是说解释) 当前 UITest 对象。

System_CAPS_pubmethod ExecuteTest(Int64, Int64)

执行 (即) 解释操作的当前 UITest 对象中指定的范围。

System_CAPS_pubmethodSystem_CAPS_static ExecuteTest(UITest)

执行 (即) 解释特定 UITest 对象。

System_CAPS_pubmethodSystem_CAPS_static ExecuteTest(UITest, Int64, Int64)

执行 (即) 解释特定 UITest 操作的对象中指定的范围。

System_CAPS_protmethod Finalize()

(从 Object 继承。)

System_CAPS_pubmethod GetHashCode()

(从 Object 继承。)

System_CAPS_pubmethod GetType()

(从 Object 继承。)

System_CAPS_protmethod IsExpectedExceptionFromActionExecution(Exception)

如果给定异常从操作执行中是预期的则返回 true。

System_CAPS_protmethod LogActionExecutionException(Exception)

操作执行异常的日志数据。

System_CAPS_protmethod MemberwiseClone()

(从 Object 继承。)

System_CAPS_pubmethod MoveToFirstStep()

将当前操作指针移动至当前所选操作列表中的第一个操作。

System_CAPS_pubmethod MoveToLastStep()

将当前操作指针移动至当前所选操作列表中的最后一个操作。

System_CAPS_pubmethod MoveToNextStep()

将操作指针移动至当前所选操作列表中的下一个操作。

System_CAPS_pubmethod MoveToPreviousStep()

将操作指针移动至当前所选操作列表中的上一个操作。

System_CAPS_pubmethod MoveToStepNumber(Int32)

将当前操作指针移动至当前所选操作列表中给定操作索引处。

System_CAPS_protmethod OnErrorHandledByUser(UITestErrorEventArgs)

在用户调用后处理操作执行错误。

这可以用于跟踪类似的日志。

System_CAPS_protmethod RaisePlaybackProgressEvent(UITestProgressEventArgs)

引发播放进度事件。

System_CAPS_pubmethod ToString()

(从 Object 继承。)

事件

名称 说明
System_CAPS_pubevent ActionCompleted

执行 UITestAction 后引发事件。

System_CAPS_pubevent ActionListCompleted

每个 ActionList 执行完后引发事件。

System_CAPS_pubevent ActionListStarted

在每个 ActionList 之前执行引发的事件启动。

System_CAPS_pubevent ActionStarted

UITestAction 执行前引发事件。

System_CAPS_pubevent InterpreterError

解读 UITest 时出现错误的事件引发。

System_CAPS_pubevent InterpreterProgress

解读 UITest 时更新进度的事件引发。

System_CAPS_pubevent InterpreterWarning

解读 UITest 时出现警告的事件引发。

System_CAPS_pubevent UITestCompleted

UItest 执行完后引发事件。

System_CAPS_pubevent UITestStarted

在 UITest 开始之前执行引发的事件。

线程安全

此类型的任何公共静态(Visual Basic 中为 Shared)成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

Microsoft.VisualStudio.TestTools.UITest.CodeGeneration 命名空间

返回页首