This documentation is archived and is not being maintained.

IRunContext Interface

Provides an interface for test adapters to retrieve information about a test run.

Namespace:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

public interface IRunContext : IBaseRunContext

The IRunContext type exposes the following members.

Public propertyAgentNameGets the name of the computer that is running the test.
Public propertyResultSinkGets an object used to send test results to the test execution framework. (Inherited from IBaseRunContext.)
Public propertyRunConfigGets information about the test run. (Inherited from IBaseRunContext.)
Public propertyRunContextVariablesGets the run context variables.
Public propertyTestRunnerProvides an interface that the test adapter uses to run one or more inner tests. (Inherited from IBaseRunContext.)

Public methodPauseTestRunSends a request to pause the test run. (Inherited from IBaseRunContext.)
Public methodStopTestRunSends a request to stop the test run. (Inherited from IBaseRunContext.)