UITestInterpreterCore Class
The class to iterate the actions in an UITest object and interpret those.
The result of interpretation depends on the UITestActionInvoker value.
Inheritance Hierarchy
Object
Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.UITestInterpreterCore
Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.UITestInterpreter
Namespace: Microsoft.VisualStudio.TestTools.UITest.CodeGeneration
Assembly: Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)
Syntax
'Declaration
Public Class UITestInterpreterCore _
Implements IDisposable
public class UITestInterpreterCore : IDisposable
public ref class UITestInterpreterCore : IDisposable
type UITestInterpreterCore =
class
interface IDisposable
end
public class UITestInterpreterCore implements IDisposable
The UITestInterpreterCore type exposes the following members.
Constructors
Name | Description | |
---|---|---|
UITestInterpreterCore | Creates an instance of UITestInterpreter for a given UITest |
Top
Properties
Name | Description | |
---|---|---|
ActionInvoker | Gets or sets the UITestActionInvoker to use to execute actions in the UITest. | |
CurrentAction | Current action being executed. | |
PlaybackInProgress | True if playback is in progress. | |
PlaybackUITest | Gets the UITest that is being executed. |
Top
Methods
Name | Description | |
---|---|---|
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. | |
Dispose() | Disposes the object. | |
Dispose(Boolean) | Actual dispose implementation. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
ExecuteAction | Executes the given action. | |
ExecuteStep | Executes (that is, interprets) the current step in the currently selected ActionList. | |
ExecuteTest() | Executes (that is, interprets) the current UITest object. | |
ExecuteTest(UITest) | Executes (that is, interprets) the given UITest object. | |
ExecuteTest(Int64, Int64) | Executes (that is, interprets) the current UITest object for the actions in the specified range. | |
ExecuteTest(UITest, Int64, Int64) | Executes (that is, interprets) the given UITest object for the actions in the specified range. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsExpectedExceptionFromActionExecution | Returns true if the given exception is expected from the execution of an action. | |
LogActionExecutionException | Logs data for action execution exception. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MoveToFirstStep | Moves the current action pointer to the first action of the currently selected ActionList. | |
MoveToLastStep | Moves the current action pointer to the last action of the currently selected ActionList. | |
MoveToNextStep | Moves the action pointer to the next action of the currently selected ActionList. | |
MoveToPreviousStep | Moves the action pointer to the previous action of the currently selected ActionList. | |
MoveToStepNumber | Moves the current action pointer to the given action index in the currently selected ActionList. | |
OnErrorHandledByUser | Called after the user handles the action execution error. This can be used to trace log something. | |
RaisePlaybackProgressEvent | Raise playback progress event. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
ActionCompleted | Event raised after an UITestAction is executed. | |
ActionListCompleted | Event raised after execution of each ActionList is completed. | |
ActionListStarted | Event raised before execution of each ActionList is started. | |
ActionStarted | Event raised before an UITestAction is executed. | |
InterpreterError | Event raised when an error occurs when interpreting the UITest. | |
InterpreterProgress | Event raised to update progress when interpreting the UITest. | |
InterpreterWarning | Event raised when a warning occurs when interpreting the UITest. | |
UITestCompleted | Event raised after execution of UITest is completed. | |
UITestStarted | Event raised before execution of UITest starts. |
Top
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
Reference
Microsoft.VisualStudio.TestTools.UITest.CodeGeneration Namespace