Share via


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 IDataCollector interface, which you use to create custom diagnostic data adapters to automatically execute tasks within test runs, and the ITestExecutionEnvironmentSpecifier, which lets you specify the environment settings for tests on remote machines.

Classes

  Class Description
Public class AgentContext Encapsulates the context of the agent environment.
Public class BasicTransferInformation Collects information that is required to request a file or stream transfer from a diagnostic data adapter.
Public class ControllerContext Represents the current context for a test controller.
Public class CustomCollectorData
Public class CustomCollectorGenericErrorData
Public class CustomNotificationEventArgs Provides a base class for event argument classes that are used in custom diagnostic data adapters.
Public class DataCollectionContext Represents the context in which data collection occurs.
Public class DataCollectionEnvironmentContext Encapsulates the environment where a diagnostic data adapter is hosted.
Public class DataCollectionEventArgs The base class for all execution event arguments.
Public class DataCollectionEvents Defines the execution events that diagnostic data adapters can register.
Public class 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.
Public class DataCollectionSink Diagnostic data adapters use a DataCollectionSink to store files and XML data for later attachment to bugs and test reports.
Public class DataCollector Provides a base class for custom diagnostic data adapters.
Public class DataCollectorConfigurationEditorAttribute Specifies the configuration editor that the testing framework should use to configure the diagnostic data adapter.
Public class DataCollectorConfigurationEditorTypeUriAttribute Identifies a diagnostic data adapter configuration editor in the form of a uniform resource identifier (URI).
Public class DataCollectorDescriptionAttribute Attaches a description to a custom diagnostic data adapter.
Public class DataCollectorEnabledByDefaultAttribute Designates that the diagnostic data adapter class is enabled by default when the adapter is listed in the Test Manager user interface (UI).
Public class DataCollectorFriendlyNameAttribute Defines a friendly name for the diagnostic data adapter.
Public class DataCollectorNotifications Used by custom test adapters to raise events for diagnostic data adapters.
Public class DataCollectorSettings Reads and updates the configuration settings and static data for a diagnostic data adapter.
Public class DataCollectorSupportsTailoredApplicationsAttribute
Public class DataCollectorTypeUriAttribute Uses a URI to uniquely identify the type of a diagnostic data adapter.
Public class DataCollectorVersionObsoleteAttribute
Public class DataRequestEventArgs Event arguments class for DataRequest events.
Public class ExecutionUtilities Provides utility methods to help execute and debug tests.
Public class FileTransferInformation Represents information that is required to request a file transfer.
Public class MediaRecorderCommandEventArgs
Public class MediaRecorderCustomData
Public class MediaRecorderVolumeLevelData
Public class RequestId Uniquely identifies a request and can be used with messages and events.
Public class RoleContext Encapsulates context information about the role in which a diagnostic data adapter is being configured.
Public class RunConfiguration Class to manage test run configuration data and objects.
Public class SessionEndEventArgs Represents the event arguments for the SessionEnd event.
Public class SessionPauseEventArgs Represents the event arguments for the SessionPause event.
Public class SessionResumeEventArgs Represents the event arguments for the SessionResume event.
Public class SessionStartEventArgs Represents the event arguments for the SessionStart event.
Public class StreamTransferInformation Represents information that is required to request a stream transfer.
Public class TestCaseEndEventArgs Represents the event arguments for the TestCaseEnd event.
Public class TestCaseEventArgs Provides a base class for all event argument classes that are used in test case events.
Public class TestCaseFailedEventArgs Represents the arguments that are provided for a TestCaseFailed event.
Public class TestCasePauseEventArgs Represents the event arguments for the TestCasePause event.
Public class TestCaseResetEventArgs Represents the event arguments for the TestCaseReset event.
Public class TestCaseResumeEventArgs Represents the event arguments for the TestCaseResume event.
Public class TestCaseStartEventArgs Represents the event arguments for the TestCaseStart event.
Public class TestExecutionSection Represents the configuration settings for the execution section of the app.config configuration file.
Public class TestStepEndEventArgs Represents the event arguments for the TestStepEnd event.
Public class TestStepEventArgs Base class for all test step event arguments.
Public class TestStepStartEventArgs Represents the event arguments for the TestStepStart event.

Interfaces

  Interface Description
Public interface IBaseAdapter Provides an interface to use as a base for a custom test adapter.
Public interface IBaseRunContext Provides an interface that the test adapter uses to communicate with the test execution framework.
Public interface IContextAccessor Interface to use to build a helper class to store and retrieve values from contexts.
Public interface IDataCollectionAwareTestAdapter Provides an interface that adds the ability to raise events for diagnostic data adapters to custom test adapters.
Public interface IDataCollectionRunContext Interface for an object that encapsulates the current environment for custom diagnostic data adapters.
Public interface IDataCollectorConfigurationConverter
Public interface IDataCollectorConfigurationEditor Provides an interface that creates custom configuration editors of diagnostic data adapters.
Public interface IExecutionRunConfiguration Interface for test run information.
Public interface IHostAdapter Interface to provide support for test execution in a host application.
Public interface IRegisterHostAdapter Provides an interface for a host adapter agent to publish on a remoting channel.
Public interface IResultSink Interface to send messages, results, and notifications.
Public interface IRunContext Provides an interface for test adapters to retrieve information about a test run.
Public interface ITestContext A context interface definition for a test context that is passed to a method during the test run process.
Public interface ITestExecutionPlugin Pluggable interface that is used to execute code in the test execution framework.
Public interface 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.

Delegates

  Delegate Description
Public delegate TestMessageReceiverDelegate

Enumerations

  Enumeration Description
Public enumeration AdapterRunResult The AdapterRunResult enumeration is used by the testing framework to indicate the success or failure of a test run.
Public enumeration MediaRecorderCommand
Public enumeration NotificationBroadcastLevel Enumerates the scope of diagnostic data adapters to which test adapters can broadcast custom notification events.
Public enumeration TestCaseFailureType This enumeration represents the types of failure for a test case as used in the TestCaseFailedEventArgs class.