In the same fashion that we can use the GUI to enable/disable extensions, it would be nice to be able to choose which extensions are active when TestComplete starts up.
/EnableExtension:[AllCommon | AllDesktop | AllWeb | AllMobile | extensionName]*[:force][:verbose]
- AllCommon | AllDesktop | AllWeb | AllMobile - shorthand for all extensions in the category
- extensionName - Extension to enable. Unknown extensions are ignored.
- force - By default, conflicts (missing required extensions) are resolved by including the required extensions. If force is present, missing required extensions are not included. This may result in undefined behavior. Used for debugging purposes.
- verbose - The full list of available extensions, any conflict messages, and the resulting list of extension/category/status (enabled or disabled) are written to the error log (if defined)
/DisableExtension:[AllCommon | AllDesktop | AllWeb | AllMobile | extensionName]*[:force][:verbose]
- AllCommon | AllDesktop | AllWeb | AllMobile - shorthand for all extensions in the category
- extensionName - Extension to disable. Unknown extensions are ignored.
- force - By default, conflicts (dependent extensions which rely on a missing extension) are resolved by removing the dependent extensions. If force is present, the dependent extensions are not removed. This may result in undefined behavior. Used for debugging purposes.
- verbose - The full list of available extensions, any conflict messages, and the resulting list of extension/category/status (enabled or disabled) are written to the error log (if defined)
Example:
TestComplete.exe /DisableExtension:AllWeb:MSAA:OCR
Considerations:
- The enable/disable settings will be saved (just as if we had used the GUI to make the changes).
- Multiple flags are processed in order.
This can be used as a method for preventing the need for certain licenses. For example, if you have only a few Web licenses, you can use a command line which always disables the Web extensions, and then use a different command line which enables the Web extensions.