Using TestComplete script extension technology, you can easily create custom scripting objects. The objects will be added to the TestComplete object model when the extension is installed. The added object is displayed in the Code Completion window and it can be used not only in TestComplete scripts, but also in other script extensions.
The following topics describe the step-by-step procedure of creating custom objects using the script extension technology:
1. Planning Object's Functionality, Methods and Properties
3. Creating the Description File
4. Creating Code for Properties
5. Creating Initialization Code
6. Adding Property Definitions to the Description File
The code created in tutorial is 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:
- wmiCode.vbs - Script unit.
- description.xml - Used to install the extension in TestComplete.
See Also
Script Extensions Tutorials
Script Extensions
Creating Runtime Objects