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 | |
---|---|---|
UITestInterpreter | Initializes a new instance of the UITestInterpreter class. |
Top
Properties
Name | Description | |
---|---|---|
ActionInvoker | Gets or sets the UITestActionInvoker to interpret this test. | |
PlaybackUITest | Gets the test that is being interpreted. |
Top
Methods
Name | Description | |
---|---|---|
Cancel | Cancels the interpretation of the current step or test. | |
Dispose() | Releases resources. | |
Dispose(Boolean) | Optionally releases resources. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
ExecuteStep | Executes the current step in the currently selected action list. | |
ExecuteTest() | Executes the current test. | |
ExecuteTest(UITest) | Executes the given test. | |
ExecuteTest(Int64, Int64) | Executes the current test for the specified range of actions. | |
ExecuteTest(UITest, Int64, Int64) | Executes the given test for the specified range of actions. | |
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.) | |
HighlightElement | Highlights the UI element that is associated with the current action. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MoveToFirstStep | Sets the current action to the first action in the currently selected action list. | |
MoveToLastStep | Sets the current action to the last action in the currently selected action list. | |
MoveToNextStep | Sets the current action to the next action in the currently selected action list. | |
MoveToPreviousStep | Sets the current action to the previous action in the currently selected action list. | |
MoveToStepNumber | Sets the current action to the action at the given index in the currently selected action list. | |
RaiseWaitForThinkTimeEvent | Raises the InterpreterProgress event. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Unhighlight | Removes highlighting from the UI element that is associated with the current action. |
Top
Events
Name | Description | |
---|---|---|
ActionCompleted | Raised when the execution of an action has completed. | |
ActionListCompleted | Raised when all actions in an action list have completed. | |
ActionListStarted | Raised before the start of the execution of the actions in an action list. | |
ActionStarted | Raised before the start of the execution of an action. | |
InterpreterError | Raised when an error occurs during execution. | |
InterpreterProgress | Raised to report progress of the test execution. | |
InterpreterWarning | Raised when a warning occurs during execution. | |
UITestCompleted | Raised after the associated test has been completed. | |
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