Using the TestComplete script extensions technology, you can easily add new items to the Recording or Tools toolbars. These items can perform various tasks. For instance, they can bring the tested application to an initial state or assist a tester in creating checkpoints.
The following topics describe the step-by-step procedures for creating custom record-time and design-time actions using the script extension technology:
3. Creating the Description File
4. Creating the Record-Time Action's Code
6. Adding the Record-Time Action's Info to the Description File
8. Creating the Design-Time Action's Code
9. Adding the Design-Time Action's Info to the Description File
The code created in tutorials are part of the AQAScriptExtensions.tcx file that is distributed with TestComplete. You can find it in the <TestComplete>\Bin\Extensions\ScriptExtensions folder. The AQAScriptExtensions package contains several extensions. The following files relate to our tutorial:
- clcCode.js - Script unit.
- clc-icon.bmp - The image of toolbar items.
- ctcForm.aqfrm - The form that is displayed by the extension’s code.
- description.xml - Describes the extension.
We will also use the AQAScriptExtensions.chm file that is located in the <TestComplete>\Bin\Extensions\ScriptExtensions folder.
See Also
Script Extensions Tutorials
Script Extensions
Creating Custom Actions