Actually, you can test your C++Builder applications without any specific preparations. But in some cases you may need to perform some preliminary operations in order to get better access to your application’s internals.
You need to prepare your C++Builder application for testing in the following cases:
-
When you need to get access to internal properties, methods and fields of your C++Builder application. Compiling it with debug information makes all of the application’s internal members accessible for your tests. Once you compile your application with debug information, TestComplete enables you to get access to its public, protected and private members, that is, you can address them from your tests.
Note: Some native methods and properties of C++Builder applications still may remain unavailable for TestComplete. For more information, see Object Properties, Fields and Methods That Are Unavailable to TestComplete. You can find detailed instructions on how to compile your C++Builder application with debug information using different versions of C++Builder compilers in the following topics:
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
- When you use Developer Express VCL controls in your C++Builder application. By default, these components are distributed without debug information. In other words, by default, TestComplete cannot access the internals of these components used in a C++Builder application. For a detailed description of how you can prepare Developer Express VCL components for testing, see Preparing Developer Express VCL Components for C++Builder Applications.
- When you use TMS Software VCL controls in your C++Builder application. To make TestComplete recognize these VCL controls properly and obtain access to their properties and methods, you must recompile the components with full debug information. For detailed information on how you can prepare your TMS Software VCL controls, see Preparing TMS Software VCL Components for C++Builder Applications.