Environment variable in persistent variables declaration
I want to use a Windows environment variable in the persistent variables section of a keyword test.
E.g. Something line InstallFolder is %TEMP%\MyAppLocation.
Using the variable InstallFolder works fine when defining the tested apps. E.g MyApp is $(InstallFolder)\MyApp.exe. The application starts as expected.
E.g. aqFileSystem.Exists(Project.Variables.InstallFolder) returns false because Project.Variables.InstallFolder returns the string %TEMP%\MyAppLocation and not <Where ever my temp folder is>\MyAppLocation.
How can I fix this?
I'm new to TestComplete. So if my question may be a little bit unprecise. Hope it is not too confusing ...
Re: Environment variable in persistent variables declaration
the solution Benoit suggested was not exactly what I'm looking for. Using the %TEMP% variable was an example only. But anyway - I'm using C:\Test now for my tests. Works fine on all my windows machines.