Supported Microsoft Controls

Applies to TestComplete 15.70, last modified on December 17, 2024

TestComplete supports testing of various Microsoft controls. You can also modify project properties so that TestComplete recognizes your custom Microsoft controls. The sections below describe how you can test Microsoft controls in detail.

About Supported Microsoft Controls

TestComplete can work with any Microsoft control via a graphical user interface. Besides, TestComplete provides extended support for most of Microsoft controls. It automatically associates them with special scripting test objects that contain supplementary methods and properties for working with the controls, for example, for selecting individual items and retrieving the item text.

Requirements

  • A license for TestComplete Desktop module.

  • The Microsoft Control Support plugin. It provides access to controls via special program objects. It also enables creating table checkpoints for controls that display data in a tabular form. For the full list of these controls, see About Tables Collection.

This plugin is installed and enabled automatically.

If you experience issues when working with the controls, select File | Install Extensions from the TestComplete main menu to check whether the plugin is active. If the plugin is not available, run the TestComplete installation in the Repair mode.

Supported Controls

Below is the full list of the Microsoft controls for which TestComplete provides extended support.

Note that TestComplete provides support for the listed controls as well as for their descendants. However, to make this possible, you need to specify the class name of your inherited control in the corresponding group of the project’s Object Mapping options. For more information, see Object Mapping.

Windows Forms
Controls Library Classes
CheckBox .NET Framework v. 2.0 - 4.8 System.Windows.Forms.CheckBox
DataGrid .NET Framework v. 2.0 - 4.8 System.Windows.Forms.DataGrid
DataGridView .NET Framework v. 2.0 - 4.8 System.Windows.Forms.DataGridView
DomainUpDown .NET Framework v. 2.0 - 4.8 System.Windows.Forms.DomainUpDown
LinkLabel .NET Framework v. 2.0 - 4.8 System.Windows.Forms.LinkLabel
Main menus and context menus .NET Framework v. 2.0 - 4.8 System.Windows.Forms.ContextMenuStrip
System.Windows.Forms.MenuStrip
NumericUpDown .NET Framework v. 2.0 - 4.8 System.Windows.Forms.NumericUpDown
PropertyGrid .NET Framework v. 2.0 - 4.8 System.Windows.Forms.PropertyGrid
RadioButton .NET Framework v. 2.0 - 4.8 System.Windows.Forms.RadioButton
Strip StatusBar (StatusStrip) .NET Framework v. 2.0 - 4.8 System.Windows.Forms.StatusStrip
Strip Toolbar (ToolStrip) .NET Framework v. 2.0 - 4.8 System.Windows.Forms.ToolStrip
WPF
Controls Library Classes
WPFRibbon WPF Toolkit, .NET Framework v. 4.5.x - 4.8 Microsoft.Windows.Controls.Ribbon.Ribbon
System.Windows.Controls.Ribbon.Ribbon
WPFToolkitCalendar WPF Toolkit, .NET Framework v. 4.0 - 4.8 Microsoft.Windows.Controls.Calendar
WPFToolkitDataGrid WPF Toolkit, .NET Framework v. 4.0 - 4.8 Microsoft.Windows.Controls.DataGrid
WPFToolkitDatePicker WPF Toolkit, .NET Framework v. 4.0 - 4.8 Microsoft.Windows.Controls.DatePicker
MFC
Controls Library Classes
MFCEditBrowseCtrl MFC Feature Pack for Visual C++ 2008, Visual C++ 2010, 2012, 2013, 2015 CMFCEditBrowseCtrl
MFCGridCtrl CGridCtrl ver. 2.26, 2.27 CGridCtrl
MFCMenuBar MFC Feature Pack for Visual C++ 2008, Visual C++ 2010, 2012, 2013, 2015 CMFCMenuBar
MFCMenuButton MFC Feature Pack for Visual C++ 2008, Visual C++ 2010, 2012, 2013, 2015 CMFCMenuButton
MFCPropertyGridCtrl MFC Feature Pack for Visual C++ 2008, Visual C++ 2010, 2012, 2013, 2015 CMFCPropertyGridCtrl
MFCRibbonBar MFC Feature Pack for Visual C++ 2008, Visual C++ 2010, 2012, 2013, 2015 CMFCRibbonBar
MFCStatusBar MFC Feature Pack for Visual C++ 2008, Visual C++ 2010, 2012, 2013, 2015 CMFCStatusBar
MFCTabCtrl MFC Feature Pack for Visual C++ 2008, Visual C++ 2010, 2012, 2013, 2015 CMFCTabCtrl
CMFCOutlookBarTabCtrl
MFCToolBar MFC Feature Pack for Visual C++ 2008, Visual C++ 2010, 2012, 2013, 2015 CMFCToolBar
Silverlight
Controls Library Classes
AutoCompleteBox Microsoft Silverlight 4 and 5 System.Windows.Controls.AutoCompleteBox
Button Microsoft Silverlight 4 and 5 System.Windows.Controls.Button
System.Windows.Controls.HyperlinkButton
Calendar Microsoft Silverlight 4 and 5 System.Windows.Controls.Calendar
CheckBox Microsoft Silverlight 4 and 5 System.Windows.Controls.CheckBox
ComboBox Microsoft Silverlight 4 and 5 System.Windows.Controls.ComboBox
DataGrid Microsoft Silverlight 4 and 5 System.Windows.Controls.DataGrid
DatePicker Microsoft Silverlight 4 and 5 System.Windows.Controls.DatePicker
ListBox Microsoft Silverlight 4 and 5 System.Windows.Controls.ListBox
PasswordBox Microsoft Silverlight 4 and 5 System.Windows.Controls.PasswordBox
RadioButton Microsoft Silverlight 4 and 5 System.Windows.Controls.RadioButton
RichTextBox Microsoft Silverlight 4 and 5 System.Windows.Controls.RichTextBox
ScrollBar Microsoft Silverlight 4 and 5 System.Windows.Controls.ScrollBar
ScrollViewer Microsoft Silverlight 4 and 5 System.Windows.Controls.ScrollViewer
Slider Microsoft Silverlight 4 and 5 System.Windows.Controls.Slider
TabControl Microsoft Silverlight 4 and 5 System.Windows.Controls.TabControl
TextBox Microsoft Silverlight 4 and 5 System.Windows.Controls.TextBox
ToggleButton Microsoft Silverlight 4 and 5 System.Windows.Controls.Primitives.ToggleButton
TreeView Microsoft Silverlight 4 and 5 System.Windows.Controls.TreeView

Recognizing Custom Controls

To command TestComplete to recognize your custom Microsoft controls, open your project’s Object Mapping options and add the control’s class name to the corresponding subgroup of the Microsoft Controls group. The subgroup name corresponds to your custom control’s type. Once the control is mapped, it gets all the properties, methods and actions specific to the Microsoft control of the corresponding type.

If the specified custom control does not fit the control’s type, then it may not properly respond to commands that TestComplete sends, so recording or playing back user actions over the tested control will cause errors.

See Also

Supported Controls

Highlight search results