Export (0) Print
Expand All

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.

System.Object
  Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.UITestInterpreterCore
    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)

public class UITestInterpreter : UITestInterpreterCore

The UITestInterpreter type exposes the following members.

  NameDescription
Public methodUITestInterpreterInitializes a new instance of the UITestInterpreter class.
Top

  NameDescription
Public propertyActionInvokerGets or sets the UITestActionInvoker to interpret this test. (Overrides UITestInterpreterCore.ActionInvoker.)
Protected propertyCurrentActionCurrent action being executed. (Inherited from UITestInterpreterCore.)
Protected propertyPlaybackInProgressTrue if playback is in progress. (Inherited from UITestInterpreterCore.)
Public propertyPlaybackUITestGets the UITest that is being executed. (Inherited from UITestInterpreterCore.)
Top

  NameDescription
Public methodCancelCancels the interpretation of the current step or test. (Overrides UITestInterpreterCore.Cancel().)
Public methodDispose()Disposes the object. (Inherited from UITestInterpreterCore.)
Protected methodDispose(Boolean)Optionally releases resources. (Overrides UITestInterpreterCore.Dispose(Boolean).)
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodExecuteActionExecutes the given action. The action contains an ID for the UIObject on which it acts. This ID is used to get a queryid for the object and this is passed to the invoke method of the input action object. The Invoke method also requires an object of the UITestActionInvoker interface type. In this case the default is the UITestPlayback type that implements the UITestActionInvoker. (Overrides UITestInterpreterCore.ExecuteAction(UITestAction, UIMap).)
Public methodExecuteStepExecutes (that is, interprets) the current step in the currently selected ActionList. (Inherited from UITestInterpreterCore.)
Public methodExecuteTest()Executes (that is, interprets) the current UITest object. (Inherited from UITestInterpreterCore.)
Public methodStatic memberExecuteTest(UITest)Executes the given test.
Public methodExecuteTest(Int64, Int64)Executes (that is, interprets) the current UITest object for the actions in the specified range. (Inherited from UITestInterpreterCore.)
Public methodStatic memberExecuteTest(UITest, Int64, Int64)Executes the given test for the specified range of actions.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodHighlightElementHighlights the UI element that is associated with the current action.
Protected methodIsExpectedExceptionFromActionExecutionReturns true if the given exception is expected from the execution of an action. (Overrides UITestInterpreterCore.IsExpectedExceptionFromActionExecution(Exception).)
Protected methodLogActionExecutionExceptionLogs SQM Data for Playback Exception. (Overrides UITestInterpreterCore.LogActionExecutionException(Exception).)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodMoveToFirstStepMoves the current action pointer to the first action of the currently selected ActionList. (Inherited from UITestInterpreterCore.)
Public methodMoveToLastStepMoves the current action pointer to the last action of the currently selected ActionList. (Inherited from UITestInterpreterCore.)
Public methodMoveToNextStepMoves the action pointer to the next action of the currently selected ActionList. (Inherited from UITestInterpreterCore.)
Public methodMoveToPreviousStepMoves the action pointer to the previous action of the currently selected ActionList. (Inherited from UITestInterpreterCore.)
Public methodMoveToStepNumberMoves the current action pointer to the given action index in the currently selected ActionList. (Inherited from UITestInterpreterCore.)
Protected methodOnErrorHandledByUserCalled after user handles the action execution error. This can be used to trace log something. (Overrides UITestInterpreterCore.OnErrorHandledByUser(UITestErrorEventArgs).)
Protected methodRaisePlaybackProgressEventRaise playback progress event. (Inherited from UITestInterpreterCore.)
Public methodRaiseWaitForThinkTimeEventRaises the InterpreterProgress event.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodUnhighlightRemoves highlighting from the UI element that is associated with the current action.
Top

  NameDescription
Public eventActionCompletedEvent raised after an UITestAction is executed. (Inherited from UITestInterpreterCore.)
Public eventActionListCompletedEvent raised after execution of each ActionList is completed. (Inherited from UITestInterpreterCore.)
Public eventActionListStartedEvent raised before execution of each ActionList is started. (Inherited from UITestInterpreterCore.)
Public eventActionStartedEvent raised before an UITestAction is executed. (Inherited from UITestInterpreterCore.)
Public eventInterpreterErrorEvent raised when an error occurs when interpreting the UITest. (Inherited from UITestInterpreterCore.)
Public eventInterpreterProgressEvent raised to update progress when interpreting the UITest. (Inherited from UITestInterpreterCore.)
Public eventInterpreterWarningEvent raised when a warning occurs when interpreting the UITest. (Inherited from UITestInterpreterCore.)
Public eventUITestCompletedEvent raised after execution of UITest is completed. (Inherited from UITestInterpreterCore.)
Public eventUITestStartedEvent raised before execution of UITest starts. (Inherited from UITestInterpreterCore.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft