UITestInterpreter Class

Executes each test action in a user interface (UI) test and interprets the results of each action by using the value of the ActionInvoker property.

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class UITestInterpreter _
    Implements IDisposable
public class UITestInterpreter : IDisposable
public ref class UITestInterpreter : IDisposable
type UITestInterpreter =  
    class
        interface IDisposable
    end
public class UITestInterpreter implements IDisposable

The UITestInterpreter type exposes the following members.

Constructors

  Name Description
Public method UITestInterpreter Initializes a new instance of the UITestInterpreter class.

Top

Properties

  Name Description
Public property ActionInvoker Gets or sets the UITestActionInvoker to interpret this test.
Public property PlaybackUITest Gets the test that is being interpreted.

Top

Methods

  Name Description
Public method Cancel Cancels the interpretation of the current step or test.
Public method Dispose() Releases resources.
Protected method Dispose(Boolean) Optionally releases resources.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method ExecuteStep Executes the current step in the currently selected action list.
Public method ExecuteTest() Executes the current test.
Public methodStatic member ExecuteTest(UITest) Executes the given test.
Public method ExecuteTest(Int64, Int64) Executes the current test for the specified range of actions.
Public methodStatic member ExecuteTest(UITest, Int64, Int64) Executes the given test for the specified range of actions.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method HighlightElement Highlights the UI element that is associated with the current action.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method MoveToFirstStep Sets the current action to the first action in the currently selected action list.
Public method MoveToLastStep Sets the current action to the last action in the currently selected action list.
Public method MoveToNextStep Sets the current action to the next action in the currently selected action list.
Public method MoveToPreviousStep Sets the current action to the previous action in the currently selected action list.
Public method MoveToStepNumber Sets the current action to the action at the given index in the currently selected action list.
Public method RaiseWaitForThinkTimeEvent Raises the InterpreterProgress event.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Unhighlight Removes highlighting from the UI element that is associated with the current action.

Top

Events

  Name Description
Public event ActionCompleted Raised when the execution of an action has completed.
Public event ActionListCompleted Raised when all actions in an action list have completed.
Public event ActionListStarted Raised before the start of the execution of the actions in an action list.
Public event ActionStarted Raised before the start of the execution of an action.
Public event InterpreterError Raised when an error occurs during execution.
Public event InterpreterProgress Raised to report progress of the test execution.
Public event InterpreterWarning Raised when a warning occurs during execution.
Public event UITestCompleted Raised after the associated test has been completed.
Public event UITestStarted Raised just before the test starts to execute.

Top

Remarks

To use this class, you must add a reference to the Codegeneration.dll file, which is located in the %ProgramFiles%\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies folder.

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

ActionLogInvoker