Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.UITestInterpreter

Namespace:  Microsoft.VisualStudio.TestTools.UITest.CodeGeneration
Assembly:  Microsoft.VisualStudio.TestTools.UITest.CodeGeneration (in Microsoft.VisualStudio.TestTools.UITest.CodeGeneration.dll)
public class UITestInterpreter : IDisposable

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.
Public propertyPlaybackUITestGets the test that is being interpreted.
Top
  NameDescription
Public methodCancelCancels the interpretation of the current step or test.
Public methodDispose()Releases resources.
Protected methodDispose(Boolean)Optionally releases resources.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodExecuteStepExecutes the current step in the currently selected action list.
Public methodExecuteTest()Executes the current test.
Public methodStatic memberExecuteTest(UITest)Executes the given test.
Public methodExecuteTest(Int64, Int64)Executes the current test for the specified range of actions.
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 a hash function for a particular type. (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 methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodMoveToFirstStepSets the current action to the first action in the currently selected action list.
Public methodMoveToLastStepSets the current action to the last action in the currently selected action list.
Public methodMoveToNextStepSets the current action to the next action in the currently selected action list.
Public methodMoveToPreviousStepSets the current action to the previous action in the currently selected action list.
Public methodMoveToStepNumberSets the current action to the action at the given index in the currently selected action list.
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 eventActionCompletedRaised when the execution of an action has completed.
Public eventActionListCompletedRaised when all actions in an action list have completed.
Public eventActionListStartedRaised before the start of the execution of the actions in an action list.
Public eventActionStartedRaised before the start of the execution of an action.
Public eventInterpreterErrorRaised when an error occurs during execution.
Public eventInterpreterProgressRaised to report progress of the test execution.
Public eventInterpreterWarningRaised when a warning occurs during execution.
Public eventUITestCompletedRaised after the associated test has been completed.
Public eventUITestStartedRaised just before the test starts to execute.
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.