Export (0) Print
Expand All

DataCollector.Initialize Method

Called by the testing framework to initialize the internal objects and data for a custom diagnostic data adapter.

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

public abstract void Initialize(
	XmlElement configurationElement,
	DataCollectionEvents events,
	DataCollectionSink dataSink,
	DataCollectionLogger logger,
	DataCollectionEnvironmentContext environmentContext
)

Parameters

configurationElement
Type: System.Xml.XmlElement
An XmlElement that has test configuration data.
events
Type: Microsoft.VisualStudio.TestTools.Execution.DataCollectionEvents
A DataCollectionEvents object that has the events for which your custom diagnostic data adapter can register.
dataSink
Type: Microsoft.VisualStudio.TestTools.Execution.DataCollectionSink
A DataCollectionSink object that your custom diagnostic data adapter can use to save files and data.
logger
Type: Microsoft.VisualStudio.TestTools.Execution.DataCollectionLogger
A DataCollectionLogger object that your custom diagnostic data adapter can use to log information during a test.
environmentContext
Type: Microsoft.VisualStudio.TestTools.Execution.DataCollectionEnvironmentContext
A DataCollectionEnvironmentContext that has information about the context of the current test.

When you create a custom diagnostic data adapter, you must implement this Initialize method, where you will register the events that you want to use.

Community Additions

ADD
Show:
© 2014 Microsoft