IRunConfigurationCustomHostEditor Interface
To display a new page in the test run configuration editor, implement the methods of the IRunConfigurationCustomHostEditor interface. The class that implements this interface must inherit from the UserControl class. This UserControl is displayed on the Hosts page in the test run configuration editor. For more information about the test run configuration editor, see Configuring Test Execution.
Namespace: Microsoft.VisualStudio.TestTools.Vsip
Assembly: Microsoft.VisualStudio.QualityTools.Vsip (in Microsoft.VisualStudio.QualityTools.Vsip.dll)
Syntax
'Declaration
Public Interface IRunConfigurationCustomHostEditor _
Inherits IRunConfigurationEditor
'Usage
Dim instance As IRunConfigurationCustomHostEditor
public interface IRunConfigurationCustomHostEditor : IRunConfigurationEditor
public interface class IRunConfigurationCustomHostEditor : IRunConfigurationEditor
public interface IRunConfigurationCustomHostEditor extends IRunConfigurationEditor
Remarks
This implementation of IRunConfigurationCustomHostEditor can be empty. This means that the implementations of all members other than the HostType property can be empty methods.
If the UserControl class that implements the IRunConfigurationCustomHostEditor interface contains UI components, testers will see your user control when they take the following steps:
1. Open the Hosts page of the test run configuration editor.
2. In the Host type list box, select the value returned by IRunConfigurationCustomHostEditor.HostType.
Examples
For the complete code of the following example, see the MyHostAdapterRunConfigControl.cs file in the test extensibility sample in the Visual Studio SDK.
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.VisualStudio.TestTools.Common;
using Microsoft.VisualStudio.TestTools.Vsip;
namespace Microsoft.VisualStudio.TestTools.Samples
{
/// <summary>
/// UI control for my host adapter configuartion. Hosted inside test run config editor.
/// It contains a data grid view where you could define environment variables.
/// </summary>
public partial class MyHostAdapterRunConfigControl : UserControl, IRunConfigurationCustomHostEditor
{
/// See the MyHostAdapterRunConfigControl.cs file in the test extensibility sample.
}
}
See Also
Reference
IRunConfigurationCustomHostEditor Members
Microsoft.VisualStudio.TestTools.Vsip Namespace