Share via


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)

Syntax

'Declaration
Public Interface IRunContext _
    Inherits IBaseRunContext
public interface IRunContext : IBaseRunContext
public interface class IRunContext : IBaseRunContext
type IRunContext =  
    interface 
        interface IBaseRunContext 
    end
public interface IRunContext extends IBaseRunContext

The IRunContext type exposes the following members.

Properties

  Name Description
Public property AgentName Gets the name of the computer that is running the test.
Public property ResultSink Gets an object used to send test results to the test execution framework. (Inherited from IBaseRunContext.)
Public property RunConfig Gets information about the test run. (Inherited from IBaseRunContext.)
Public property RunContextVariables Gets the run context variables.
Public property TestRunner Provides an interface that the test adapter uses to run one or more inner tests. (Inherited from IBaseRunContext.)

Top

Methods

  Name Description
Public method PauseTestRun Sends a request to pause the test run. (Inherited from IBaseRunContext.)
Public method StopTestRun Sends a request to stop the test run. (Inherited from IBaseRunContext.)

Top

See Also

Reference

Microsoft.VisualStudio.TestTools.Execution Namespace

IBaseRunContext