Option elements are used in the description.xml files to specify script extension options.
An Option element must be a child of the Script element.
An Option element does not have child elements.
The element has the following attributes:
Required. Specifies the option’s name.
Optional. Specifies a script extension option’s default value. If the DefaultValue attribute is not specified for the option in the description file, the option value remains empty until a new value is assigned. The new value is saved automatically between TestComplete sessions to make it available when a new TestComplete session starts.
|Note:||Script extension options are account-dependable. Changes made to options under one account are not available under another account.|
To access options from the script extension code, use the
Options program object:
Options.TestOption = "New Value";
Options.TestOption = "New Value"
Note that the option value must be enclosed in quotes.