Forum Discussion
AlexKaras wrote:
The real advantage of project variables in the projects opened in the shared mode was that variables' values were personalized and the same variable could be used concurrently by the same test running at the same time on two different machines. Unfortunately, this great feature seems to be broken in the past versions of TestComplete and I am not sure if it is going to be fixed.
Actually, doesn't that still "live" with persistent variables? It's not present for temporary variables, but persistent it is. You need to explicitly create the variable as persistent to get that localized value.
As for the inability to set variable values on TestExecute machines... yeah, not convenient, but we solved that in the past by creating an INI file that resided on each workstation that, on project startup, we would read the values in from there into the appropriate persistent variables. Worked pretty well for quite a number of years, actually. :)
These days, I don't use project or project suite level variables so much. If I need something passed between projects, usually it's something necessary for the overall framework in which I'm functioning.. and since the framework is all in ScriptExtensions, I just make my "global" variables properties on my RuntimeObjects.
Hi Robert,
> Actually, doesn't that still "live" with persistent variables?
Not sure and probably need to double-check. According to what I remember, I found this problem exactly for persistent variables (after I did not use shared mode for a year or more).
Finally, I also ended-up with some sort of INI file (actually, .csv assessed via SQL ;) ) that is used to populate project variables with data. The only difference is that for this I prefer temporary variables more because a) I do not need their values to be preserved between test runs (when this is needed, the same INI file is used); and b) When the value of persistent variable is changed, the project is marked as modified and, when using version control system, you need either explicitly discard changes or accept them. Also, when in shared mode, other users receive message that the project was changed and needs to be reloaded. This does not happen for temporary variables.
Related Content
- 2 months agoStoplight
- 5 years agoKrishna_Kumar
- 2 years agoTestQA1