In order to automate testing of QuantumGrid (TcxGrid) controls in your application via the DevExpressQuantumGrid
object, the Delphi and C++Builder Application Support and VCL Control Support plugins must be installed and enabled in TestComplete, and the tested application must be compiled with debug information included. This topic explains how to include debug information into your Delphi or C++Builder application.
First, you need to re-compile the QuantumGrid package with debug information. This means that you own the ExpressQuantumGrid suite with full source code. If you do not own the library’s sources, you will not be able to work with QuantumGrid controls using the DevExpressQuantumGrid
object. In this case, you can handle grid controls in black-box mode, by simulating mouse clicks and keystrokes. See Interacting With Non-Compatible Application Objects to learn more ways to obtain the controls’ data.
To include debug information in QuantumGrid controls, do the following:
-
Open the QuantumGrid package project that corresponds to your development tool in the IDE. The projects can be found in the <Developer Express.VCL>\<ExpressQuantumGrid>\Packages\ folder. They have the cxGridNNN.dpk or cxGridNNN.bpk file name, where the NNN postfix designates the development tool for which the package is designed. For instance, the QuantumGrid package for Delphi 7 has the cxGridD7.dpk file name.
-
Change the compiler settings to generate debug information for the QuantumGrid control. The detailed instructions for various versions of Delphi and C++Builder are provided in the following topics:
Compiling Delphi XE6, XE7, XE8 and 10 Applications With Debug Information
Compiling Delphi XE2 – XE5 Applications With Debug Information
Compiling Delphi XE Applications With Debug Information
Compiling Delphi 2010 Applications With Debug Information
Compiling Delphi 2009 Applications With Debug Information
Compiling Delphi 2007 Applications With Debug Information
Compiling Delphi 2006 Applications With Debug Information
Compiling Delphi 7 and 2005 Applications With Debug Information
Compiling C++Builder XE2 – XE8 and 10 Applications With Debug Information
Compiling C++Builder XE Applications With Debug Information
Compiling C++Builder 2010 Applications With Debug Information
Compiling C++Builder 2009 Applications With Debug Information
Compiling C++Builder 2007 Applications With Debug Information
Compiling C++Builder 2006 Applications With Debug Information
-
Rebuild the package.
Then, you need to modify your project in order to include debug information in the tested application, and re-build the application. See the links above for instructions on settings for the required compiler options.
After you have performed the mentioned steps, TestComplete will be able to access internal objects, methods and properties and recognize QuantumGrid controls in the application under test.
Note: | Before delivering the release version of your application, remember to compile the QuantumGrid package and your project without debug info to reduce the application size. |
See Also
Working With Developer Express QuantumGrid
Object-Specific Tasks
Testing Delphi Applications - Overview
Testing C++Builder Applications - Overview