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:
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.