jeans
15 years agoOccasional Contributor
Best way to keep custom settings in TestComplete
Hi,
I presume we're not the only ones who use some custom settings to prevent hard-coded paths, usernames, timeouts etc.
At the moment we keep a set of public constants in a central script.
This approach works, but user access to the settings is limited and I'd like to have a user-editable text file, in xml or ini format - this also has a benefit of adding at least one dimension to the settings to make them more robust (at the moment we use prefixes, e.g. FN_ for file names)
Bottom line I want to be able to access the data from VBScript using something like MyPath = CustomSettings.MyPathValue
Is there a recommended way to handle this?
Thanks,
Jean
I presume we're not the only ones who use some custom settings to prevent hard-coded paths, usernames, timeouts etc.
At the moment we keep a set of public constants in a central script.
This approach works, but user access to the settings is limited and I'd like to have a user-editable text file, in xml or ini format - this also has a benefit of adding at least one dimension to the settings to make them more robust (at the moment we use prefixes, e.g. FN_ for file names)
Bottom line I want to be able to access the data from VBScript using something like MyPath = CustomSettings.MyPathValue
Is there a recommended way to handle this?
Thanks,
Jean