A TCX file is a script extension package used by SmartBear TestComplete, a program used to automate the testing of the UI of an application. It contains files used by a script extension, which include an .XML file, .VBS and/or .JS files, a .CHM file, .PNG, and .BMP files. TCX files are compressed in Zip format and may store files for multiple script extensions.
Script extensions add customized functionality to TestComplete similarly to plugins but are easier to create in TestComplete. They allow you to customize automated tests that can be performed on your application. The script extensions can be used for creating custom record-time actions, scripting objects, design-time actions, keyword test operations, and operations on test results.
TCX files typically store the following files:
- A description.xml file that contains metadata about the script extensions included in the TCX package.
- VBS or JS script files that contain the actions, operations, and objects that make up the extension.
- AQFRM files that contain form information for forms used by the extension.
- A CHM help file that is placed in the same folder as the extension when installed in TestComplete.
- PNG or BMP files that contain icons for the operations and actions.
TCX files are primarily opened in TestComplete when a user imports it into the application. However, you can also manually open TCX files since they are renamed ZIP files.
To manually open a TCX file, rename the ".tcx" file extension to ".zip" then expand the archive with a Zip decompression program, such as Corel WinZip, Apple Archive Utility, or 7-Zip.
To create a TCX file, simply reverse the aforementioned process. Compress your extension files as a ZIP file with a Zip compression program, then rename the ".zip" extension to ".tcx".