ory_z
15 years agoContributor
Working with Project Suite variables from scripts - limitations
Hi there,
According to the TestComplete documentation (to the best of my understanding) the following cannot be done from scripts:
1. Setting a variable's Default Value
2. Setting a variable's Description
3. Adding a variable and specifying whether it should be temporary or persistant
4. Setting a variable's Category
These limitations are causing us a few issues:
In our projects, we are trying to work with a common library + a project specific library. The common library makes use of some ProjectSuite variables (as good global variables), and therefore wherever we use the common library, we need to add all the ProjectSuite variables used by the common library to the new project. Easiest way to do this is implement a script that simply adds all the variables required (already done).
However due to the limitations mentioned above:
- We cannot add temporary Variables with default values (for example a flag that always initialises as False)
- We canot automatically set variable descriptions making this a manual cut and paste job
Is there any workaround?
Thanks
According to the TestComplete documentation (to the best of my understanding) the following cannot be done from scripts:
1. Setting a variable's Default Value
2. Setting a variable's Description
3. Adding a variable and specifying whether it should be temporary or persistant
4. Setting a variable's Category
These limitations are causing us a few issues:
In our projects, we are trying to work with a common library + a project specific library. The common library makes use of some ProjectSuite variables (as good global variables), and therefore wherever we use the common library, we need to add all the ProjectSuite variables used by the common library to the new project. Easiest way to do this is implement a script that simply adds all the variables required (already done).
However due to the limitations mentioned above:
- We cannot add temporary Variables with default values (for example a flag that always initialises as False)
- We canot automatically set variable descriptions making this a manual cut and paste job
Is there any workaround?
Thanks