e_sommer
11 years agoNew Contributor
Strange Behaviour with environment variables
I set a up a complete new project for a colleague and me. We decided to use the project in shared mode on a shared network drive.
For the Tested Apps we introduce environment variables. So I set up: "%pathToApp%\applicationName.exe"
The environment variable is mapped to the drive "C:" drive on both of our computers. The project is located in "H:".
When I save the project and my colleague open it the entry of the Tested App had changed mysteriously. Infront of "%pathToApp%\applicationName.exe" is now another "\", which TC interprets as "H:\". So the path to the application on his computer is now: "\%pathToApp%\applicationName.exe" or according "H:\C:\pathToApp\applicationName.exe" ... and that is garbage. As long as he doesn't save the file "TestedApps.tcTAs" again the additional "\" doesn't appear there. When I open the project again the error doesn't occure at my computer.
Thanks in advance
Erik
For the Tested Apps we introduce environment variables. So I set up: "%pathToApp%\applicationName.exe"
The environment variable is mapped to the drive "C:" drive on both of our computers. The project is located in "H:".
When I save the project and my colleague open it the entry of the Tested App had changed mysteriously. Infront of "%pathToApp%\applicationName.exe" is now another "\", which TC interprets as "H:\". So the path to the application on his computer is now: "\%pathToApp%\applicationName.exe" or according "H:\C:\pathToApp\applicationName.exe" ... and that is garbage. As long as he doesn't save the file "TestedApps.tcTAs" again the additional "\" doesn't appear there. When I open the project again the error doesn't occure at my computer.
Thanks in advance
Erik