Re: How to access the value of a Project Variable programmatically?
When you talk "Persistent" versus "Temporary", are you using the TestComplete monikers where a persistent variable preserves the content of the variable between test runs or is it "Persistent" in that TestComplete creates a variable that is always associated with the project?
1) If you want to use a ProjectSuite Variable in your project suite, you don't (and probably shouldn't) add it as part of your automation code. Consider it the same sort of declaration that you would do if it was a variable in code. You declare before you use. So, add your variable to your project suite manually.
2) If you do #1, the you shouldn't have to worry about "VariableByName" at all. You should be able to get the variable easily just by going
Robert Martin [Hall of Fame] Please consider giving a Kudo if I write good stuff ----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group. I love good food, good books, good friends, and good fun.