yanne / api-test

0 stars 0 forks source link

Tildes should be expanded to the user's home directory #71

Closed yanne closed 10 years ago

yanne commented 10 years ago

It should be possible to say e.g.:

Put File my_test_file ~${username}/my_test_file

instead of saying:

Put File my_test_file /home/username/my_test_file

and similarly when using Get File keyword.

On OS X, the home directories are in /Users. This makes it hard to write tests work both on Linux and OS X, if there is no common way to reference to the user's home directory, by using tilde.

This issue was originally opened at Google Code on Jun 17, 2013.

yanne commented 10 years ago

Original comment by robotframework@gmail.com on Jul 31, 2013.

This would only work with local files and thus has limited usability and could also be confusing. If tilde expansion is needed with local files, OperatingSystem.Normalize Path can be used already now.