TestComplete samples (both built-in and additional) are located in the <Users>\Public\Public Documents\TestComplete 14 Samples folder.
Some file managers display the Public Documents folder as Documents.
TestComplete can recognize TMS TAdvStringGrid controls in Delphi and C++Builder applications. It provides special properties and methods that let you retrieve the controls data and simulate user actions on the controls (see below).
Supported component versions: TMS AdvStringGrid ver. 4.6, 6.0.2, 18.104.22.168.
A license for TestComplete Desktop module.
If you experience issues when working with the controls, select File | Install Extensions from the TestComplete main menu to check whether the plugins are active. If the plugins are not available, run the TestComplete installation in the Repair mode.
The tested application must be compiled with debug information. For information on required compiler settings, see Implementing Debug Info Agent™ Support in Applications. Contact your development team to learn whether your application is compiled with debug information.To make TestComplete recognize TMS Software VCL controls in the tested C++Builder Open Application properly and obtain access to their properties and methods, we recommend that you re-compile the utilized TMS components with full debug information before including them in your C++Builder application. To learn how to prepare these components for C++Builder applications, see Preparing TMS Software VCL Components for C++Builder Applications.
Recognizing Custom Controls
To command TestComplete to recognize your custom controls as TMS TAdvStringGrid controls:
Open your project’s Object Mapping options.
Add the control’s class name to the TMS Software | AdvStringGrid group.
If you do not know the control’s name, you can ask the control’s developers, or you can view the control’s
ClassNameproperty in the Object Browser panel. As an alternative, you can click Add From Screen and select your custom control on screen. TestComplete will retrieve the control’s class name and add it to the selected mapping group automatically. For detailed information, see Object Mapping.
Once the control is mapped, it gets all the properties, methods and actions specific to the TMS TAdvStringGrid control.
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.
When testing TMS TAdvStringGrid controls, you can use properties and methods specific to these controls, as well as properties and methods that TestComplete applies to tested objects, onscreen objects and window objects. For the full list of available properties and methods, see the following topics:
TestComplete includes a sample that demonstrates how to work with TMS TAdvStringGrid controls:
<TestComplete Samples>\Desktop\Working With Grids\TMS TAdvStringGrid
|Note:||If you do not have the sample, download the TestComplete Samples installation package from the support.smartbear.com/testcomplete/downloads/samples page of our website and run it.|