Applies to TestComplete 14.20, last modified on September 11, 2019

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

About Supported VCL and CLX Controls

TestComplete can work with any VCL and CLX controls via a graphical user interface. It checks a control’s class name and automatically associates it with the appropriate scripting object.

Most VCL and CLX controls are supported as standard Windows controls (see Supported Standard Windows Controls). Besides that, TestComplete provides extended support for some specific Delphi and C++Builder controls (see below). These controls are automatically associated with special program objects that extend the controls’ functionality with a number of supplementary methods and properties. These extended methods and properties let you perform various operations over the controls, for example, select individual items or retrieve the item text.

Requirements

  • A license for TestComplete Desktop module.

  • The VCL 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

The table below contains VCL and CLX controls for which TestComplete provides extended support.

Controls Library Classes
Button, edit box, list box and other standard Windows controls Borland Delphi 7,
Borland C++Builder 6,
Borland Developer Studio 2006,
CodeGear RAD Studio 2007 and 2009,
Embarcadero RAD Studio 2010, XE - XE8
See Supported Standard Windows Controls
DBGrid VCL TDBGrid component of Borland Delphi 7,
Borland Developer Studio 2006,
CodeGear RAD Studio 2007 and 2009,
Embarcadero RAD Studio 2010, XE - XE8
TDBGrid
Main menus VCL TActionMainMenuBar component of Borland Delphi 7,
Borland Developer Studio 2006,
CodeGear RAD Studio 2007 and 2009,
Embarcadero RAD Studio 2010, XE - XE8
 
StringGrid VCL TStringGrid controls of Borland Delphi 7 and C++Builder 6,
CLX TStringGrid controls of Borland Delphi 7 and C++Builder 6,
CodeGear RAD Studio 2007 and 2009,
Embarcadero RAD Studio 2010, XE - XE8
TStringGrid

Supported Third-Party VCL Controls

Besides standard VCL controls included in Delphi and C++Builder, TestComplete supports controls of other vendors, such as Developer Express or TMS Software. For a list of supported third-party VCL controls, see the following topics:

Recognizing Custom Controls

To command TestComplete to recognize your custom VCL and CLX controls, open your project’s Object Mapping options and add the control’s class name to the corresponding subgroup of the Borland 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 VCL and CLX 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
Supported Standard Windows Controls
Supported Developer Express Controls
Supported TMS Controls
Testing Delphi Applications
Testing C++Builder Applications

Highlight search results