Microsoft.VisualStudio.TestTools.Execution Namespace
The Microsoft.VisualStudio.TestTools.Execution namespace provides classes and interfaces that enable, manage, and coordinate the execution of tests in Visual Studio Test Professional. This namespace includes the T:Microsoft.VisualStudio.TestTools.Execution.IDataCollector interface, which you use to create custom diagnostic data adapters to automatically execute tasks within test runs, and the T:Microsoft.VisualStudio.TestTools.Execution.ITestExecutionEnvironmentSpecifier, which lets you specify the environment settings for tests on remote machines.
| Class | Description | |
|---|---|---|
![]() | AgentContext | Encapsulates the context of the agent environment. |
![]() | BasicTransferInformation | Collects information that is required to request a file or stream transfer from a diagnostic data adapter. |
![]() | ControllerContext | Represents the current context for a test controller. |
![]() | CustomCollectorData | |
![]() | CustomCollectorGenericErrorData | |
![]() | CustomNotificationEventArgs | Provides a base class for event argument classes that are used in custom diagnostic data adapters. |
![]() | DataCollectionContext | Represents the context in which data collection occurs. |
![]() | DataCollectionEnvironmentContext | Encapsulates the environment where a diagnostic data adapter is hosted. |
![]() | DataCollectionEventArgs | The base class for all execution event arguments. |
![]() | DataCollectionEvents | Defines the execution events that diagnostic data adapters can register. |
![]() | DataCollectionLogger | Sends error messages for diagnostic data adapters to the client, which can be the test runner, Visual Studio IDE, or Visual Studio Test Professional. |
![]() | DataCollectionSink | Diagnostic data adapters use a DataCollectionSink to store files and XML data for later attachment to bugs and test reports. |
![]() | DataCollector | Provides a base class for custom diagnostic data adapters. |
![]() | DataCollectorConfigurationEditorAttribute | Specifies the configuration editor that the testing framework should use to configure the diagnostic data adapter. |
![]() | DataCollectorConfigurationEditorTypeUriAttribute | Identifies a diagnostic data adapter configuration editor in the form of a uniform resource identifier (URI). |
![]() | DataCollectorDescriptionAttribute | Attaches a description to a custom diagnostic data adapter. |
![]() | DataCollectorEnabledByDefaultAttribute | Designates that the diagnostic data adapter class is enabled by default when the adapter is listed in the Test Manager user interface (UI). |
![]() | DataCollectorFriendlyNameAttribute | Defines a friendly name for the diagnostic data adapter. |
![]() | DataCollectorNotifications | Used by custom test adapters to raise events for diagnostic data adapters. |
![]() | DataCollectorSettings | Reads and updates the configuration settings and static data for a diagnostic data adapter. |
![]() | DataCollectorSupportsTailoredApplicationsAttribute | |
![]() | DataCollectorTypeUriAttribute | Uses a URI to uniquely identify the type of a diagnostic data adapter. |
![]() | DataCollectorVersionObsoleteAttribute | |
![]() | DataRequestEventArgs | Event arguments class for DataRequest events. |
![]() | ExecutionUtilities | Provides utility methods to help execute and debug tests. |
![]() | FileTransferInformation | Represents information that is required to request a file transfer. |
![]() | MediaRecorderCommandEventArgs | |
![]() | MediaRecorderCustomData | |
![]() | MediaRecorderVolumeLevelData | |
![]() | RequestId | Uniquely identifies a request and can be used with messages and events. |
![]() | RoleContext | Encapsulates context information about the role in which a diagnostic data adapter is being configured. |
![]() | RunConfiguration | Class to manage test run configuration data and objects. |
![]() | SessionEndEventArgs | Represents the event arguments for the SessionEnd event. |
![]() | SessionPauseEventArgs | Represents the event arguments for the SessionPause event. |
![]() | SessionResumeEventArgs | Represents the event arguments for the SessionResume event. |
![]() | SessionStartEventArgs | Represents the event arguments for the SessionStart event. |
![]() | StreamTransferInformation | Represents information that is required to request a stream transfer. |
![]() | TestCaseEndEventArgs | Represents the event arguments for the TestCaseEnd event. |
![]() | TestCaseEventArgs | Provides a base class for all event argument classes that are used in test case events. |
![]() | TestCaseFailedEventArgs | Represents the arguments that are provided for a TestCaseFailed event. |
![]() | TestCasePauseEventArgs | Represents the event arguments for the TestCasePause event. |
![]() | TestCaseResetEventArgs | Represents the event arguments for the TestCaseReset event. |
![]() | TestCaseResumeEventArgs | Represents the event arguments for the TestCaseResume event. |
![]() | TestCaseStartEventArgs | Represents the event arguments for the TestCaseStart event. |
![]() | TestExecutionSection | Represents the configuration settings for the execution section of the app.config configuration file. |
![]() | TestStepEndEventArgs | Represents the event arguments for the TestStepEnd event. |
![]() | TestStepEventArgs | Base class for all test step event arguments. |
![]() | TestStepStartEventArgs | Represents the event arguments for the TestStepStart event. |
| Interface | Description | |
|---|---|---|
![]() | IBaseAdapter | Provides an interface to use as a base for a custom test adapter. |
![]() | IBaseRunContext | Provides an interface that the test adapter uses to communicate with the test execution framework. |
![]() | IContextAccessor | Interface to use to build a helper class to store and retrieve values from contexts. |
![]() | IDataCollectionAwareTestAdapter | Provides an interface that adds the ability to raise events for diagnostic data adapters to custom test adapters. |
![]() | IDataCollectionRunContext | Interface for an object that encapsulates the current environment for custom diagnostic data adapters. |
![]() | IDataCollectorConfigurationConverter | |
![]() | IDataCollectorConfigurationEditor | Provides an interface that creates custom configuration editors of diagnostic data adapters. |
![]() | IExecutionRunConfiguration | Interface for test run information. |
![]() | IHostAdapter | Interface to provide support for test execution in a host application. |
![]() | IRegisterHostAdapter | Provides an interface for a host adapter agent to publish on a remoting channel. |
![]() | IResultSink | Interface to send messages, results, and notifications. |
![]() | IRunContext | Provides an interface for test adapters to retrieve information about a test run. |
![]() | ITestContext | A context interface definition for a test context that is passed to a method during the test run process. |
![]() | ITestExecutionPlugin | Pluggable interface that is used to execute code in the test execution framework. |
![]() | ITestRunner | Provides an interface between the controller and the agent to enable a suite adapter to call back and execute a list of test cases. |
| Delegate | Description | |
|---|---|---|
![]() | TestMessageReceiverDelegate |
| Enumeration | Description | |
|---|---|---|
![]() | AdapterRunResult | The AdapterRunResult enumeration is used by the testing framework to indicate the success or failure of a test run. |
![]() | MediaRecorderCommand | |
![]() | NotificationBroadcastLevel | Enumerates the scope of diagnostic data adapters to which test adapters can broadcast custom notification events. |
![]() | TestCaseFailureType | This enumeration represents the types of failure for a test case as used in the TestCaseFailedEventArgs class. |



