UITest Class
Represents a coded UI test in Visual Studio.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.TestTools.UITest.Common.UITest
Namespace: Microsoft.VisualStudio.TestTools.UITest.Common
Assembly: Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)
Syntax
'Declaration
Public Class UITest
public class UITest
public ref class UITest
type UITest = class end
public class UITest
The UITest type exposes the following members.
Constructors
Name | Description | |
---|---|---|
UITest() | Initializes a new instance of the UITest class. | |
UITest(IEnumerable<UITestAction>) | Initializes a new instance of the UITest class by using the provided test actions. | |
UITest(IEnumerable<UITestAction>, UIMap) | Initializes a new instance of the UITest class. |
Top
Properties
Name | Description | |
---|---|---|
AssemblyVersion | Gets or sets the version for the assembly. | |
CleanupActions | Gets or sets the actions for the cleanup process. | |
Configuration | Gets or sets the XML environment configuration file for this coded UI test. | |
CurrentActionList | Gets or sets the list of current coded UI test actions. | |
ExecuteActions | Gets or sets the test actions to be executed as part of the coded UI test. | |
Id | Gets or sets the unique identifier for this coded UI test. | |
InitializeActions | Gets or sets a list of actions to execute as part of the coded UI test initialization process. | |
Maps | Gets a collection of UIMap objects for this coded UI test. | |
Name | Gets or sets the name of this coded UI test. | |
OnErrorActions | Gets or sets a list of test actions to execute if the test execution encounters an error. | |
ValueMap | Gets or sets the value map for this UI test object. | |
Version | Gets or sets the version for this UI test. |
Top
Methods
Name | Description | |
---|---|---|
Append(IEnumerable<UITestAction>) | Appends the provided list of test actions to this UI test. | |
Append(IEnumerable<UITestAction>, UIMap) | Appends the test actions and objects from the provided UI map to this UI test. | |
Append(UITest, Int64, Int64) | Appends the test actions from the provided UI test into this UI test at the provided range. | |
BindWithCurrentValues | Binds the parameters that are used in this UI test that have currently loaded values. | |
CompareEnvironments | Compares the two given UITestEnvironment objects and returns a collection of mismatches. | |
CompareStoredEnvironmentWithCurrentEnvironment | Compares the recorder configuration, if it exists, with the system environment that was captured at startup, and returns a collection of mismatches. | |
Create(Stream) | Creates a UI test by using the provided stream. | |
Create(String) | Creates a UI test by using the specified file. | |
CreateAndAddParameter(UITestAction, String) | Parameterizes an action and creates the parameter by using the provided test action and parameter name. | |
CreateAndAddParameter(UIObject, String, String) | Parameterizes an action and creates the parameter by using the provided UI test object, property name, and parameter name. | |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Overrides Object.Equals(Object).) | |
Equals(UITest) | Determines whether the provided UI test object is equal to this UI test object. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetActionList | Gets the UI test action list that corresponds to a given UI test action section. | |
GetHashCode | Serves as a hash function for a particular type. (Overrides Object.GetHashCode().) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Save(Stream) | Saves this UI test to a stream. | |
Save(String) | Saves this UI test to a file. | |
SetAndBindParameterValues | Binds the parameters that are used in this UI test to the values in a data row. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
Executing | Occurs when the framework starts to execute this UI test. | |
Saving | Occurs when the framework starts to save this UI test. |
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.Common Namespace