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 includes the Developer Express Control Support plugin that expands TestComplete abilities to interact with Developer Explorer QuantumGrid (TcxGrid) controls from scripts. If this plugin is installed and enabled, TestComplete extends the QuantumGrid control functionality with methods, properties and actions of the
DevExpressQuantumGrid object. These supplementary members let you perform specific operations over the QuantumGrid control, for example, simulate clicks on grid cells, obtains and set values in grid cells, expand and collapse rows and so on.
Since the QuantumGrid is a VCL control and can be used within VCL (Delphi or C++Builder) applications, which are always “open” to TestComplete, the internal methods and properties of the QuantumGrid control are also visible to TestComplete. This “openness” means that you can use the QuantumGrid’s “native” methods and properties to perform the needed actions as well.
By default, Developer Express VCL components for C++Builder are compiled and distributed without debug information. Therefore, TestComplete cannot obtain access to properties and methods of such VCL controls used in the tested C++Builder Open Application. However, you can re-compile Developer Express VCL components for C++Builder with debug information and then use them in C++Builder Open Applications tested by TestComplete. To learn how to prepare these components for C++Builder applications, see Preparing Developer Express VCL Components for C++Builder Applications.
Finally, you can work with the QuantumGrid controls as a black-box application windows, that is, you can simulate various mouse actions and keystrokes, record and play back low-level procedures, and so on. For more information, see Simulating User Actions.
The topics of this section provide detailed information and sample code for performing various operations with the QuantumGrid control.
TestComplete includes a sample project that demonstrates how you can work with Developer Express QuantumGrid controls from scripts:
<TestComplete Samples>\Desktop\Working With Grids\DevExpress QuantumGrid
|Note:||If you do not have the sample, download the TestComplete Samples installation package from the support.smartbear.com/downloads/testcomplete/samples/; page of our website and run it.|
The script requires the sample application which is part of the Developer Express ExpressQuantumGrid package that is available at http://www.devexpress.com/Products/VCL/ExQuantumGrid/Index.xml. The script assumes that by default, the application under test has the following path: <Developer Express.VCL>\ExpressQuantumGrid\Demos\Delphi\MasterDetailDemo\MasterDetailDemo.exe. Before running the script, make sure that the TestComplete Tested Applications project item contains a valid link to the application to be tested (MasterDetailDemo.exe).