UITestInterpreterCore Class

 

The class to iterate the actions in an UITest object and interpret those.

The result of interpretation depends on the UITestActionInvoker value.

Namespace:   Microsoft.VisualStudio.TestTools.UITest.CodeGeneration
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)

Inheritance Hierarchy

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

Syntax

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

Constructors

Name Description
System_CAPS_pubmethod UITestInterpreterCore(UITest)

Creates an instance of UITestInterpreter for a given UITest

Properties

Name Description
System_CAPS_pubproperty ActionInvoker

Gets or sets the UITestActionInvoker to use to execute actions in the UITest.

System_CAPS_protproperty CurrentAction

Current action being executed.

System_CAPS_protproperty PlaybackInProgress

True if playback is in progress.

System_CAPS_pubproperty PlaybackUITest

Gets the UITest that is being executed.

Methods

Name Description
System_CAPS_pubmethod Cancel()

Cancels the execution (that is, interpretation) of the current step or test. This call blocks until the UITest execution is canceled and playback returns. This must be called from a different thread from the thread that is executing the UITest.

System_CAPS_pubmethod Dispose()

Disposes the object.

System_CAPS_protmethod Dispose(Boolean)

Actual dispose implementation.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod ExecuteAction(UITestAction, UIMap)

Executes the given action.

System_CAPS_pubmethod ExecuteStep()

Executes (that is, interprets) the current step in the currently selected ActionList.

System_CAPS_pubmethod ExecuteTest()

Executes (that is, interprets) the current UITest object.

System_CAPS_pubmethod ExecuteTest(Int64, Int64)

Executes (that is, interprets) the current UITest object for the actions in the specified range.

System_CAPS_pubmethodSystem_CAPS_static ExecuteTest(UITest)

Executes (that is, interprets) the given UITest object.

System_CAPS_pubmethodSystem_CAPS_static ExecuteTest(UITest, Int64, Int64)

Executes (that is, interprets) the given UITest object for the actions in the specified range.

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod IsExpectedExceptionFromActionExecution(Exception)

Returns true if the given exception is expected from the execution of an action.

System_CAPS_protmethod LogActionExecutionException(Exception)

Logs data for action execution exception.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod MoveToFirstStep()

Moves the current action pointer to the first action of the currently selected ActionList.

System_CAPS_pubmethod MoveToLastStep()

Moves the current action pointer to the last action of the currently selected ActionList.

System_CAPS_pubmethod MoveToNextStep()

Moves the action pointer to the next action of the currently selected ActionList.

System_CAPS_pubmethod MoveToPreviousStep()

Moves the action pointer to the previous action of the currently selected ActionList.

System_CAPS_pubmethod MoveToStepNumber(Int32)

Moves the current action pointer to the given action index in the currently selected ActionList.

System_CAPS_protmethod OnErrorHandledByUser(UITestErrorEventArgs)

Called after the user handles the action execution error.

This can be used to trace log something.

System_CAPS_protmethod RaisePlaybackProgressEvent(UITestProgressEventArgs)

Raise playback progress event.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Events

Name Description
System_CAPS_pubevent ActionCompleted

Event raised after an UITestAction is executed.

System_CAPS_pubevent ActionListCompleted

Event raised after execution of each ActionList is completed.

System_CAPS_pubevent ActionListStarted

Event raised before execution of each ActionList is started.

System_CAPS_pubevent ActionStarted

Event raised before an UITestAction is executed.

System_CAPS_pubevent InterpreterError

Event raised when an error occurs when interpreting the UITest.

System_CAPS_pubevent InterpreterProgress

Event raised to update progress when interpreting the UITest.

System_CAPS_pubevent InterpreterWarning

Event raised when a warning occurs when interpreting the UITest.

System_CAPS_pubevent UITestCompleted

Event raised after execution of UITest is completed.

System_CAPS_pubevent UITestStarted

Event raised before execution of UITest starts.

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.

See Also

Microsoft.VisualStudio.TestTools.UITest.CodeGeneration Namespace

Return to top